-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add layout for landing page #12
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
Conversation
devmanta
left a comment
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.
์ฒซPR ๊ณ ์ํ์
จ์ต๋๋ค~~!! ๐ค
๋๋ฆ ๋น ๋ฅด๊ฒ(?) ์ฌ๋ ค์ฃผ์
์ ๋ฆฌ๋ทฐ ์๋ฐ ๋ํ์ต๋๋ค~~!ใ
ใ
ใ
src/app/page.module.css
Outdated
| gap: 28px; | ||
| margin-bottom: 110px; | ||
| align-items: center; | ||
| line-height: 90px; |
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.
line-height๋ ์๋ง ์ํฅ์์ํ ๋ฐ ์์ด๋ ๋๋๊ฑฐ๋ฉด์ ์ญ์ ํด๋ ์ข์๊ฒ๊ฐ์ต๋๋ค~
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.
ํ ์คํธ ์์ญ์ด ๊ฐ๊ฐ ํฐํธ๊ฐ ๋ฌ๋ผ์ ์์ง ์ ๋ ฌ์ด ์ด๋ ต๋๋ผ๊ณ ์. ์์๋ก padding + line-height๋ก ๊ตฌํํ์ต๋๋ค.
| "lint:ci": "next lint --config .eslintrc.ci.json" | ||
| }, | ||
| "dependencies": { | ||
| "@svgr/webpack": "^8.1.0", |
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.
์ด๊ฑฐ๋ ๋จ์ svg ํ์ผ ์ฐ๋ ค๊ณ ์ถ๊ฐํ๊ฑด๊ฐ์..?!
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.
์ PR๋
ธํธ์ ๋์ ๋ก๊ณ ..?ํด๋ณด๊ณ ์ถ์ด์ ๋ฃ์ผ์ ๊ฑฐ๊ตฐ์ฌ..!
๊ทผ๋ฐ..๋ก๊ณ ๋์ ? ๊ทธ๊ฒ ๋ญ์์....(โขโข)(โขโข)?! ์ ๋ฐํ๊ฑด๊ฐ์
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.
svg fill ์์ฑ์ด ํ๋์ฝ๋ฉ ๋์ด์์ด์ fill ์์ฑ ๋ ๋ฆฌ๊ณ ๋์ ์ผ๋ก ์คํ์ผ๋ง ํด๋ณด๋ ค๊ณ ํจ ๋ฃ์ด๋ดค์ด์
src/app/page.tsx
Outdated
| @@ -1,5 +1,141 @@ | |||
| 'use client'; | |||
|
|
|||
| import styles from './page.module.css'; | |||
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.
์ด๊ฑฐ ์ ์ ๊ฐ์ ์ฝ์ง์ํฉ์ ๋ฐฉ์งํ๊ณ ์ ๋งจ๋ง์ง๋ง์ importํ๋๊ฒ์ ์ถ์ฒ๋๋ฆฝ๋๋ค..! feat. ์ง์๋ ๋ง์: styles import ๋งจ๋ง์ง๋ง ์ํํ
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.
ใ ใ ๋ฌด์จ ์ด์๊ฐ...๋ฐ์ํ ๊ฑฐ์ฃ ? ๊ฐ์ฌํฉ๋๋
src/app/page.tsx
Outdated
| <div className={styles.page}> | ||
| <header className={styles.header}> | ||
| <Link href="/" aria-label="ํ์ผ๋ก ์ด๋"> | ||
| <Logo className={styles.logo} alt="๋ก๊ณ " /> |
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.
์ด๋ฐ๊ฒ๋ next์์ ์ ๊ณตํด์ฃผ๋ Image ์ฌ์ฉํด์ ์จ๋ ๋ ๊ฒ๊ฐ์๋ฐ ๋ฐ๋ก Logo๋ก importํ์ ์ด์ ๊ฐ์์ผ์ ๊ฐ์~?
next์์ ์ ๊ณตํด์ฃผ๋ Image์ฐ๋ฉด ์๋ง ์ ๋ค์ด ์์์ ์ต์ ํ ํด์ฃผ๋๊ฑธ๋ก ์๊ณ ์์ต๋๋ค..!
src/app/page.tsx
Outdated
| width={722} | ||
| height={423} | ||
| alt="์ผ์ ๊ด๋ฆฌ ์น ์ดํ๋ฆฌ์ผ์ด์ " | ||
| loading="eager" |
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.
์๋ ๋ญํ๋์น๊ตฌ์ธ๊ฐ์..!?
Next/Image๋ฅผ ์ฌ์ฉํ๊ฒ ๋๋ฉด ์๋์ผ๋ก lazy loading์ด ์ ์ฉ๋ฉ๋๋ค. ๋ฌผ๋ก ์ค์ํ ์ด๋ฏธ์ง ์ผ๋ถ์ lazy loading์ ์ ์ฉํ๊ณ ์ถ์ง ์์ ๊ฒฝ์ฐ์๋ ํด๋น ๊ธฐ๋ฅ์ ๋ ์๋ ์์ต๋๋ค. Image ์ปดํฌ๋ํธ์ priority๋ผ๋ prop์ true๋ก ์ค์ ํ๊ฑฐ๋, loading prop์ โeagerโ ๊ฐ์ ์ค์ ํ๋ฉด ๋ฉ๋๋ค. priorty ๊ฐ์ ์ค์ ํ๋ ๊ฒ์ด ๋ ๊ถ์ฅ๋๋ ๋ฐฉ์์
๋๋ค.
๋ญ์ง ๋ชฐ๋ผ์ ์ ๊น ๊ฒ์ํด๋ดฃ๋๋ฐ ์ฌ๊ธฐ์ ์์ ๊ฐ์ ๋ด์ฉ์ด ์๋๋ผ๊ตฌ์ (์ ๋ ์๋ชฐ๋ผ์..)
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.
์ฒซ ํ๋ฉด์ ๋ณด์ด๋ ์น์ ์ด๋ผ์ eager๋ก lazy loading์ ๊ป์ต๋๋ค. ๊ทธ๋ฅ ์๋ฐ๋๋ ์์ฑ ๊ฐ์์. priorty๋ก ์ฐ์ ์์ ๋์ด๋ ๋ฐฉ์์ผ๋ก ๋ฐ๊ฟ๋ณผ๊ฒ์.
src/app/page.tsx
Outdated
| priority={true} | ||
| /> | ||
| </div> | ||
|
|
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.
์ด๋ฐ ์ํฐ๋ค์ ๊ธฐ์ค์ด ์ฃผ๊ด์ ์ด๋ผ์ ๊ฐ์ธ์ ์ผ๋ก ์ํฐ๋ ์์์ผ๋ฉด ์ข๊ฒ ์ง๋ง....๐
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.
์ด๊ฑด ํ๋ฉด์์ ๋ณด๋ฉด ํ์ ์์ด์ฝ์ธ๋ฐ ๊ฒ์์์ผ๋ก ๋ฐ๊พธ๊ณ ๋ฐ๋ก ์์์ฒ๋ฆฌ๋ฅผ ํ์ ...๊ฑธ๊น์?
najitwo
left a comment
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.
์ฒซ PR ๊ณ ์ํ์
จ์ต๋๋ค. ๐
@svgr/webpack ๋ก๋ ์ถ๊ฐํ์ ๊ฑฐ ์ข๋ค์
๋์ค์ hover ์ธํฐ๋ ์
๋ ์ถ๊ฐ ํ์๋ฉด ์ข์ ๊ฑฐ ๊ฐ์ต๋๋ค.
page ์ปดํฌ๋ํธ ์ค๊ฐ์ค๊ฐ์ ๋ถํ์ํ ๊ณต๋ฐฑ์ด ๋ณด์ด๋ ๊ฒ ๊ฐ์๋ฐ
์๋ํ๊ฒ ์๋์๋ผ๋ฉด ์ง์์ฃผ์
จ์ผ๋ฉด ํฉ๋๋ค..!
* โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page
* โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page
* โป๏ธ refactor: improve layout and components structure * โจ [feat] add layout for landing page (#12) * โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page * โป๏ธ refactor: improve layout and components structure
* โป๏ธ refactor: improve layout and components structure * โจ [feat] add layout for landing page (#12) * โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page * โป๏ธ refactor: improve layout and components structure
* โป๏ธ refactor: improve layout and components structure * โจ [feat] add layout for landing page (#12) * โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page * โป๏ธ refactor: improve layout and components structure
* โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page
* โป๏ธ refactor: improve layout and components structure * โจ [feat] add layout for landing page (#12) * โจ feat: add header, main and footer sections * โจ feat: add logo to header * โจ feat: add links to header * ๐ fix: resolve import error of SVG components * โจ feat: remove till attribute for dynamic styling of icon SVG * ๐ง chore: add PNG fallback for unoptimized SVG in Image component * โจ feat: add images for landing page * โจ feat: add header and footer layout * โจ feat: add part of the main section * ๐ fix: change any type to specific type in svg module * โป๏ธ refactor: add responsive image component * ๐ง chore: add montserrat font to main section * โจ feat: add custom logo svg component * โป๏ธ refactor: add card component * ๐ง chore: add images for landing page * โจ feat: add card components * โจ feat: add UI elements for landing page * โป๏ธ refactor: improve layout and components structure
๐ Related Issue
๐ Description
๐ธ Screenshot
)
๐ข Notes
+๋ก๊ณ ๋์ ์คํ์ผ๋ง ํด๋ณด๊ณ ์ถ์ด์ SVG ์ปดํฌ๋ํธ ๋ณํ > @svgr/webpack ์ถ๊ฐ
+๋๋ฉ ํ์ด์ง png ํ์ผ ์ผ๋ถ ์ถ๊ฐ
+Image ์ปดํฌ๋ํธ ์ฌ์ฉ์ผ๋ก png ํ์ผ ์ถ๊ฐ
-๋ฐ๋ณต ์ฝ๋ ์ปดํฌ๋ํธ ๋ถ๋ฆฌ ์์
-๋ก๊ทธ์ธ ๋ฒํผ ๊ธฐ๋ฅ ์ถ๊ฐ ์์
! ์ค๋ฐ๊ฟ ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ ์ฐพ๋ ์ค