Skip to content

Commit 0d50b24

Browse files
committed
feat: MemeQuizResult 컴포넌트의 위치 및 크기를 조정하여 반응형 디자인 개선
1 parent 10f5bed commit 0d50b24

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

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

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ 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;
1312
`;
1413

1514
const ResultCard = styled(motion.div)`
@@ -18,8 +17,8 @@ const ResultCard = styled(motion.div)`
1817
max-width: ${({ theme }) => theme.breakpoints.mobile};
1918
height: 45vh;
2019
min-height: 400px;
21-
max-height: 450px;
22-
margin-top: 6vh;
20+
max-height: 481px;
21+
margin-top: 10vh;
2322
border-radius: 14px;
2423
background: linear-gradient(
2524
135deg,
@@ -31,22 +30,21 @@ const ResultCard = styled(motion.div)`
3130
align-items: center;
3231
overflow: hidden;
3332
34-
@media screen and (max-width: ${({ theme }) => theme.breakpoints.mobile}) {
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}) {
3545
height: 35vh;
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-
}
46+
margin-top: 8vh;
47+
max-height: 450px;
5048
}
5149
`;
5250

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

138136
const ShareButton = styled(motion.button)`

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,10 @@ const MemeQuizResult = ({ rightCount }: MemeQuizResultPageProps) => {
9393
<motion.div
9494
style={{
9595
position: 'fixed',
96-
top: '50%',
97-
left: '50%',
98-
transform: 'translate(-50%, -50%)',
96+
inset: 0,
9997
width: '100%',
10098
maxWidth: '425px',
101-
height: '100vh',
99+
margin: '0 auto',
102100
background: 'black',
103101
display: 'flex',
104102
flexDirection: 'column',

0 commit comments

Comments
 (0)