Skip to content

Commit 35cfe87

Browse files
authored
Merge pull request #29 from codeit-maso/feature/seoung
홈 화면 레이아웃 구성(단 공통컴포넌트인 버튼이랑 헤더는 빼고 한 상태)
2 parents 80844ff + 361a0b1 commit 35cfe87

File tree

5 files changed

+150
-0
lines changed

5 files changed

+150
-0
lines changed

src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import './assets/styles/base.scss';
22
import { Route, Routes } from 'react-router-dom';
33
import Header from './components/layout/Header/Header';
44
import Test from './pages/List-page/Test';
5+
import Home from './pages/Home/home';
56

67
export default function App() {
78
return (
89
<>
910
<Header />
1011
<Routes>
12+
<Route path="/" element={<Home />} />
1113
<Route path="/" element={<Test />} />
1214
</Routes>
1315
</>

src/assets/images/img_01.png

112 KB
Loading

src/assets/images/img_02.png

80 KB
Loading

src/pages/Home/Home.css

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
.header-box {
7+
width: 100%;
8+
max-width: 1920px;
9+
height: 64px;
10+
background-color: #f5f5f5;
11+
margin: 0 auto;
12+
}
13+
14+
.intro-box {
15+
display: flex;
16+
align-items: center;
17+
width: 1200px;
18+
height: 324px;
19+
background-color: #f6f8ff;
20+
border-radius: 16px;
21+
margin: 0 auto 30px;
22+
padding: 40px;
23+
box-sizing: border-box;
24+
justify-content: space-between;
25+
padding: 0;
26+
}
27+
28+
.first-section {
29+
margin-top: 60px;
30+
padding-left: 60px;
31+
}
32+
33+
.first-section .intro-left {
34+
display: flex;
35+
flex-direction: column;
36+
gap: 10px;
37+
margin-right: 152px;
38+
width: 268px;
39+
}
40+
41+
.second-section {
42+
flex-direction: row-reverse;
43+
padding-right: 192px;
44+
justify-content: flex-end;
45+
}
46+
47+
.second-section .intro-right {
48+
gap: 10px;
49+
}
50+
51+
.intro-image {
52+
width: 720px;
53+
height: 204px;
54+
object-fit: contain;
55+
margin-right: 0;
56+
}
57+
58+
.right-image {
59+
margin-right: 0;
60+
}
61+
62+
.intro-right {
63+
display: flex;
64+
flex-direction: column;
65+
gap: 10px;
66+
}
67+
68+
.point-badge {
69+
background-color: #9935ff;
70+
color: #ffffff;
71+
font-size: 14px;
72+
font-weight: 600;
73+
padding: 7px 12px;
74+
border-radius: 50px;
75+
width: fit-content;
76+
margin-bottom: 10px;
77+
}
78+
79+
.intro-title {
80+
font-family: 'Pretendard', sans-serif;
81+
font-size: 23px;
82+
font-weight: 700;
83+
line-height: 36px;
84+
color: #181818;
85+
margin: 0;
86+
}
87+
88+
.intro-subtext {
89+
font-family: 'Pretendard', sans-serif;
90+
font-size: 17px;
91+
font-weight: 400;
92+
line-height: 28px;
93+
color: #555555;
94+
margin: 0;
95+
}

src/pages/Home/Home.jsx

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import './Home.css';
2+
import '../../assets/images/img_01.png';
3+
import '../../assets/images/img_02.png';
4+
5+
export default function Home() {
6+
return (
7+
<>
8+
<div className="header-box"></div>
9+
<section>
10+
<div className="intro-box first-section">
11+
<div className="intro-left">
12+
<div className="point-badge">Point.01</div>
13+
<h2 className="intro-title">
14+
누구나 손쉽게, 온라인
15+
<br />
16+
롤링 페이퍼를 만들 수 있어요
17+
</h2>
18+
<p className="intro-subtext">로그인 없이 자유롭게 만들어요.</p>
19+
</div>
20+
<div>
21+
<img
22+
src="/src/assets/images/img_01.png"
23+
className="intro-image"
24+
alt="롤링 이미지"
25+
/>
26+
</div>
27+
</div>
28+
</section>
29+
<section>
30+
<div className="intro-box second-section">
31+
<div>
32+
<div className="point-badge">Point.02</div>
33+
<h2 className="intro-title">
34+
서로에게 이모지로 감정을
35+
<br />
36+
표현해주세요
37+
</h2>
38+
<p className="intro-subtext">
39+
롤링 페이퍼에 이모지를 추가할 수 있어요.
40+
</p>
41+
</div>
42+
<div>
43+
<img
44+
src="/src/assets/images/img_02.png"
45+
className="intro-image"
46+
alt="이모지 이미지"
47+
/>
48+
</div>
49+
</div>
50+
</section>
51+
</>
52+
);
53+
}

0 commit comments

Comments
 (0)