-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add login check and responsive design #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f5ad833
7394f8f
51b68d9
0ffb986
1a6659f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,129 +1,16 @@ | ||
| 'use client'; | ||
|
|
||
| import Link from 'next/link'; | ||
| import EmailIcon from '/public/icons/email.svg'; | ||
| import FacebookIcon from '/public/icons/facebook.svg'; | ||
| import InstagramIcon from '/public/icons/instagram.svg'; | ||
| import CustomLogo from '@/components/root/CustomLogo'; | ||
| import ImageWrapper from '@/components/root/ImageWrapper'; | ||
| import styles from './page.module.css'; | ||
| import MainCard from '@/components/root/MainCard'; | ||
| import MiniCard from '@/components/root/MiniCard'; | ||
| import Layout from '@/components/landing/layout'; | ||
| import HeroSection from '@/components/landing/Section/HeroSection'; | ||
| import PrimarySection from '@/components/landing/Section/PrimarySection'; | ||
| import SecondarySection from '@/components/landing/Section/SecondarySection'; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <div className={styles.page}> | ||
| <header className={styles.header}> | ||
| <Link href="/" aria-label="ํ์ผ๋ก ์ด๋"> | ||
| <CustomLogo className={styles.logo} /> | ||
| </Link> | ||
| <nav className={styles.nav}> | ||
| <Link href="/login" className={styles.navLink}> | ||
| ๋ก๊ทธ์ธ | ||
| </Link> | ||
| <Link href="/signup" className={styles.navLink}> | ||
| ํ์๊ฐ์ | ||
| </Link> | ||
| </nav> | ||
| </header> | ||
| <main className={styles.main}> | ||
| <section className={styles.section}> | ||
| <ImageWrapper | ||
| src="/images/home.png" | ||
| alt="์ผ์ ๊ด๋ฆฌ ์น ์ดํ๋ฆฌ์ผ์ด์ " | ||
| className={styles.homeImg} | ||
| priority={true} | ||
| /> | ||
| <div className={styles.homeTitleWrapper}> | ||
| <div className={styles.homeTitle}>์๋ก์ด ์ผ์ ๊ด๋ฆฌ</div> | ||
| <div className={styles.homeBrand}>Taskify</div> | ||
| </div> | ||
| <Link href="/login" className={styles.homeLoginBtn}> | ||
| ๋ก๊ทธ์ธํ๊ธฐ | ||
| </Link> | ||
| </section> | ||
| <section className={styles.section}> | ||
| <MainCard | ||
| title="์ผ์ ์ฐ์ ์์๋ฅผ ๊ด๋ฆฌํ์ธ์" | ||
| subTitle="Point 1" | ||
| src="/images/landing_lg_1.png" | ||
| alt="์ฐ์ ์์ ์ค์ ๊ธฐ๋ฅ ์๊ฐ" | ||
| className={styles.cardLg1} | ||
| /> | ||
| <MainCard | ||
| title="ํด์ผ ํ ์ผ์ ๋ฑ๋กํ์ธ์" | ||
| subTitle="Point 2" | ||
| src="/images/landing_lg_2.png" | ||
| alt="ํ ์ผ ์นด๋ ์์ฑ ๊ธฐ๋ฅ ์๊ฐ" | ||
| className={styles.cardLg2} | ||
| imgFirst={true} | ||
| /> | ||
| </section> | ||
| <section> | ||
| <div className={styles.supplementTitle}> | ||
| ์์ฐ์ฑ์ ๋์ด๋ ๋ค์ํ ์ค์ โก | ||
| </div> | ||
| <div className={styles.cardSmalls}> | ||
| <MiniCard | ||
| src="/images/landing_sm_1.png" | ||
| alt="๋์๋ณด๋ ์ค์ ๊ธฐ๋ฅ ์๊ฐ" | ||
| title="๋์๋ณด๋ ์ค์ " | ||
| desc="๋์๋ณด๋ ์ฌ์ง๊ณผ ์ด๋ฆ์ ๋ณ๊ฒฝํ ์ ์์ด์." | ||
| className={styles.cardSm1} | ||
| /> | ||
| <MiniCard | ||
| src="/images/landing_sm_2.png" | ||
| alt="์ด๋ํ๊ธฐ ๊ธฐ๋ฅ ์๊ฐ" | ||
| title="์ด๋" | ||
| desc="์๋ก์ด ํ์์ ์ด๋ํ ์ ์์ด์." | ||
| className={styles.cardSm2} | ||
| /> | ||
| <MiniCard | ||
| src="/images/landing_sm_3.png" | ||
| alt="๊ตฌ์ฑ์ ๊ธฐ๋ฅ ์๊ฐ" | ||
| title="๊ตฌ์ฑ์" | ||
| desc="๊ตฌ์ฑ์์ ์ด๋ํ๊ณ ๋ด๋ณด๋ผ ์ ์์ด์." | ||
| className={styles.cardSm3} | ||
| /> | ||
| </div> | ||
| </section> | ||
| </main> | ||
| <footer className={styles.footer}> | ||
| <div>ยฉcodeit - 2023</div> | ||
| <div className={styles.legalLinks}> | ||
| <Link href="/privacy-policy">Privacy Policy</Link> | ||
| <Link href="/faq">FAQ</Link> | ||
| </div> | ||
| <div className={styles.socialLinks}> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="์ด๋ฉ์ผ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <EmailIcon aria-hidden="true" /> | ||
| </a> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="ํ์ด์ค๋ถ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <FacebookIcon aria-hidden="true" /> | ||
| </a> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="์ธ์คํ๊ทธ๋จ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <InstagramIcon aria-hidden="true" /> | ||
| </a> | ||
| </div> | ||
| </footer> | ||
| </div> | ||
| <Layout> | ||
| <HeroSection /> | ||
| <PrimarySection /> | ||
| <SecondarySection /> | ||
| </Layout> | ||
| ); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ body { | |
|
|
||
| body { | ||
| font-family: var(--font-pretendard), sans-serif; | ||
| height: 100vh; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ด๊ฑฐ @devmanta ๋์ด ์ถ๊ฐํ์ ๊ฑฐ ๊ฐ์๋ฐ
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ผ์ ใ ์ด๊ฑฐ ์์ด์ง๋ฉด ์๋๋๋ฐใ ใ
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๋ค์ ๋ฃ์์ด์ ๐ |
||
| } | ||
|
|
||
| ul, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| .footer { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| padding: 40px 140px; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| color: var(--gray-400); | ||
| } | ||
|
|
||
| .legalLinks { | ||
| display: flex; | ||
| gap: 32px; | ||
| } | ||
|
|
||
| .socialLinks { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 14px; | ||
| } | ||
|
|
||
| .socialLink:first-child { | ||
| width: 20px; | ||
| height: 20px; | ||
| } | ||
|
|
||
| .socialLink { | ||
| width: 22px; | ||
| height: 22px; | ||
| fill: white; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import Link from 'next/link'; | ||
| import EmailIcon from '/public/icons/email.svg'; | ||
| import FacebookIcon from '/public/icons/facebook.svg'; | ||
| import InstagramIcon from '/public/icons/instagram.svg'; | ||
| import styles from './Footer.module.css'; | ||
|
|
||
| export default function Footer() { | ||
| return ( | ||
| <footer className={styles.footer}> | ||
| <div>ยฉcodeit - 2023</div> | ||
| <div className={styles.legalLinks}> | ||
| <Link href="/privacy-policy">Privacy Policy</Link> | ||
| <Link href="/faq">FAQ</Link> | ||
| </div> | ||
| <div className={styles.socialLinks}> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="์ด๋ฉ์ผ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <EmailIcon aria-hidden="true" /> | ||
| </a> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="ํ์ด์ค๋ถ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <FacebookIcon aria-hidden="true" /> | ||
| </a> | ||
| <a | ||
| href="#" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className={styles.socialLink} | ||
| aria-label="์ธ์คํ๊ทธ๋จ ๋ฐ๋ก๊ฐ๊ธฐ" | ||
| > | ||
| <InstagramIcon aria-hidden="true" /> | ||
| </a> | ||
| </div> | ||
| </footer> | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋๋ฉํ์ด์ง๋ผ์ ๋ธ๋ผ์ฐ์ ์ธํฐ๋ ์ ์ด ์์ ๊ฒ ๊ฐ์๋ฐ
'use client';๋ ์ ์๋๊ฑด๊ฐ์???There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ถํ ์ถ๊ฐ๋ ๊ฒ ๊ฐ์์ ๋ฃ์ด๋๋๋ฐ ์ฐ์ ์ ๋ถํ์ํ๋๊น ์ ๊ฑฐํ๊ฒ ์ต๋๋ค ๐ซก