File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
apps/web/src/pages/MemeQuizPage/components/MemeQuizStart Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,18 @@ const Container = styled(motion.div)`
1616` ;
1717
1818const TextSection = styled ( motion . div ) `
19- margin-top: 9.875rem ;
19+ margin-top: 15vh ;
2020 text-align: center;
2121 width: 100%;
2222 padding: 0 24px;
23+
24+ @media screen and (max-height: 700px) {
25+ margin-top: 10vh;
26+ }
27+
28+ @media screen and (min-height: 800px) {
29+ margin-top: 20vh;
30+ }
2331` ;
2432
2533const Title = styled . h1 `
@@ -35,20 +43,27 @@ const Subtitle = styled.p`
3543` ;
3644
3745const IconSection = styled ( motion . div ) `
38- margin-top: 61px;
46+ margin-top: 5vh; // 뷰포트 높이의 5%
3947 width: 100%;
40- height: 240px;
48+ height: 25vh; // 뷰포트 높이의 25%
49+ min-height: 160px; // 최소 높이 설정
50+ max-height: 240px; // 최대 높이 설정
4151 display: flex;
4252 justify-content: center;
4353 align-items: center;
54+
55+ @media screen and (max-height: 700px) {
56+ margin-top: 3vh;
57+ height: 20vh;
58+ }
4459` ;
4560
4661const ButtonWrapper = styled ( motion . div ) `
4762 position: fixed;
4863 bottom: 0;
4964 left: 0;
5065 right: 0;
51- padding: 0 20px 40px;
66+ padding: 0 20px min( 40px, 5vh); // 하단 패딩을 뷰포트 높이의 5% 또는 40px 중 작은 값으로 설정
5267 max-width: ${ ( { theme } ) => theme . breakpoints . mobile } ;
5368 margin: 0 auto;
5469` ;
You can’t perform that action at this time.
0 commit comments