-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 메인 페이지의 main section 부분을 마크업 작업 (#12)
* feat: 메인 페이지의 main section 부분을 구현하라 * refactor: sass 코드 잘못 띄어쓰기 되어있는 부분 수정
- Loading branch information
1 parent
8bc00df
commit 82d961f
Showing
11 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.main { | ||
width: 100%; | ||
max-width: 1156px; | ||
margin: 0 auto; | ||
padding: 0 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import "/src/styles/main"; | ||
|
||
.homeSection { | ||
display: flex; | ||
flex-direction: row; | ||
padding: 100px 0; | ||
justify-content: space-between; | ||
|
||
.contentsWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 72px; | ||
|
||
.description { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
|
||
.title { | ||
white-space: pre-line; | ||
font-size: 56px; | ||
font-weight: 700; | ||
line-height: 140%; | ||
} | ||
|
||
.subTitle { | ||
font-size: 20px; | ||
line-height: 140%; | ||
color: color('gray02'); | ||
} | ||
|
||
.counter { | ||
color: color('primary'); | ||
font-size: 20px; | ||
font-weight: 700; | ||
line-height: 140%; | ||
} | ||
} | ||
} | ||
|
||
.bannerWrapper { | ||
position: relative; | ||
max-width: 400px; | ||
width: 100%; | ||
|
||
.banner { | ||
object-fit: contain; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import Image from 'next/image'; | ||
|
||
import styles from './index.module.scss'; | ||
|
||
function HomePage() { | ||
return ( | ||
<section className={styles.homeSection}> | ||
<div className={styles.contentsWrapper}> | ||
<div className={styles.description}> | ||
<div>badge</div> | ||
<h1 className={styles.title}> | ||
{`프로젝트에 즐거움을 | ||
모두에게 기회를`} | ||
</h1> | ||
<div className={styles.subTitle}> | ||
<strong>DND</strong> | ||
는 | ||
<strong>개발자</strong> | ||
와 | ||
<strong>디자이너</strong> | ||
를 위한 | ||
<br /> | ||
계속해서 성장하는 | ||
<strong>IT비영리단체</strong> | ||
입니다. | ||
</div> | ||
<div className={styles.counter}>오늘까지 000명이 지원했어요!</div> | ||
</div> | ||
<button type="button">지원하기</button> | ||
</div> | ||
<div className={styles.bannerWrapper}> | ||
<Image | ||
src="https://dnd-academy-v3.s3.ap-northeast-2.amazonaws.com/images/banner/about.png" | ||
alt="main-banner" | ||
fill | ||
sizes="(max-width: 1156px) 50vw, 33vw" | ||
className={styles.banner} | ||
/> | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
export default HomePage; |