Toggle navigation
Toggle navigation
This project
Loading...
Sign in
khusat
/
khusat-front
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이준호
2020-12-10 00:27:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa14c1f6c1951132dddf2ed79815946235d951c2
fa14c1f6
1 parent
0cad49e7
[UPDATE] MainPage 반응형 구현 완료
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
src/pages/MainPage.js
src/pages/MainPage.js
View file @
fa14c1f
...
...
@@ -24,13 +24,12 @@ const Container = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
width: 100vw;
height: 100vh;
background-image: url(
${
pattern
}
);
background-repeat: none;
// background-image가 컨테이너를 가득 채우지 못할 경우에도 반복하지 않는다.
background-size: cover;
// 사이즈가 container에 맞지 않아도 꽉 차도록 채운다.
background-position: center;
// background-image가 컨테이너에 가운데로 오도록 한다.
background-repeat: none;
background-size: cover;
background-position: center;
color: #ffffff;
`
;
...
...
@@ -50,11 +49,9 @@ const MainTitle = styled.div`
margin-top: 3rem;
font-size: 5rem;
font-weight: bold;
${
media
.
tablet
`
font-size: 4rem;
`
}
${
media
.
phone
`
font-size: 3rem;
margin-top: 2rem;
`
}
`
;
...
...
@@ -63,6 +60,7 @@ const MainDesc = styled.div`
margin-bottom: 2rem;
font-size: 1.5rem;
${
media
.
tablet
`
margin-top: 0.5rem;
font-size: 1.1rem;
`
}
`
;
...
...
@@ -89,7 +87,7 @@ const MainBtn = styled.div`
color: #010101;
}
${
media
.
phone
`
width:
20
rem;
width:
16
rem;
height: 4rem;
font-size: 1.2rem;
`
}
...
...
@@ -106,7 +104,6 @@ function MainPage({ history }) {
},
[]);
return
(
<>
<
Container
>
<
MainTitle
>
KHUSAT
<
/MainTitle
>
<
MainDesc
>
...
...
@@ -116,7 +113,6 @@ function MainPage({ history }) {
<
MainImg
src
=
{
soldier
}
/
>
<
MainBtn
onClick
=
{
onClick
}
>
시작하기
<
/MainBtn
>
<
/Container
>
<
/
>
);
}
...
...
Please
register
or
login
to post a comment