Skip to content

Commit 10f5bed

Browse files
committed
feat: MemeQuizResult 컴포넌트의 위치 및 크기 조정으로 반응형 디자인 개선
1 parent 9cb95cc commit 10f5bed

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

apps/web/src/pages/MemeQuizPage/components/MemeQuizResult/MemeQuizResult.styles.ts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Container = styled(motion.div)`
99
flex-direction: column;
1010
align-items: center;
1111
background-color: ${({ theme }) => theme.palette.common.black};
12+
padding-bottom: 120px;
1213
`;
1314

1415
const ResultCard = styled(motion.div)`
@@ -17,8 +18,8 @@ const ResultCard = styled(motion.div)`
1718
max-width: ${({ theme }) => theme.breakpoints.mobile};
1819
height: 45vh;
1920
min-height: 400px;
20-
max-height: 481px;
21-
margin-top: 10vh;
21+
max-height: 450px;
22+
margin-top: 6vh;
2223
border-radius: 14px;
2324
background: linear-gradient(
2425
135deg,
@@ -30,21 +31,22 @@ const ResultCard = styled(motion.div)`
3031
align-items: center;
3132
overflow: hidden;
3233
33-
@media screen and (max-height: 700px) {
34-
height: 50vh;
35-
margin-top: 8vh;
36-
min-height: 350px;
37-
}
38-
39-
@media screen and (min-height: 800px) {
40-
height: 40vh;
41-
margin-top: 12vh;
42-
}
43-
44-
@media screen and (min-width: ${({ theme }) => theme.breakpoints.tablet}) {
34+
@media screen and (max-width: ${({ theme }) => theme.breakpoints.mobile}) {
4535
height: 35vh;
46-
margin-top: 8vh;
47-
max-height: 450px;
36+
min-height: 320px;
37+
max-height: 400px;
38+
margin-top: 15vh;
39+
40+
@media screen and (max-height: 700px) {
41+
height: 40vh;
42+
margin-top: 10vh;
43+
min-height: 300px;
44+
}
45+
46+
@media screen and (min-height: 800px) {
47+
height: 30vh;
48+
margin-top: 20vh;
49+
}
4850
}
4951
`;
5052

@@ -129,8 +131,8 @@ const ButtonContainer = styled.div`
129131
flex-direction: column;
130132
gap: 14px;
131133
z-index: 10;
132-
background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
133-
padding-top: 20px;
134+
background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
135+
padding-top: 40px;
134136
`;
135137

136138
const ShareButton = styled(motion.button)`

apps/web/src/pages/MemeQuizPage/components/MemeQuizResult/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ const MemeQuizResult = ({ rightCount }: MemeQuizResultPageProps) => {
9393
<motion.div
9494
style={{
9595
position: 'fixed',
96-
top: 0,
96+
top: '50%',
9797
left: '50%',
98-
transform: 'translateX(-50%)',
98+
transform: 'translate(-50%, -50%)',
9999
width: '100%',
100100
maxWidth: '425px',
101-
height: '100%',
101+
height: '100vh',
102102
background: 'black',
103103
display: 'flex',
104104
flexDirection: 'column',

0 commit comments

Comments
 (0)