11import styled from '@emotion/styled' ;
2- import { theme , themeColor } from '@styles/themes' ;
2+ import { media , theme , themeColor } from '@styles/themes' ;
33
44const PopUpContainer = styled ( 'div' ) ( {
55 display : 'flex' ,
@@ -16,6 +16,13 @@ const PopUpContainer = styled('div')({
1616 boxShadow : '0 4px 10px rgba(0, 0, 0, 0.2)' ,
1717 zIndex : 1000 ,
1818 fontFamily : 'Pretendard' ,
19+
20+ [ media [ 0 ] ] : {
21+ width : '90%' ,
22+ [ 'svg' ] : {
23+ width : '30%' ,
24+ } ,
25+ } ,
1926} ) ;
2027
2128const PopUpTitle = styled ( 'div' ) ( {
@@ -30,10 +37,15 @@ const PopUpTitle = styled('div')({
3037 height : '36px' ,
3138 width : 'auto' ,
3239 } ,
40+
41+ [ media [ 0 ] ] : {
42+ fontSize : '24px' ,
43+ padding : '32px 32px 0 32px' ,
44+ } ,
3345} ) ;
3446
3547const PopUpContent = styled ( 'div' ) ( {
36- padding : '0 48px 32px 32px' ,
48+ padding : '0 32px 32px 32px' ,
3749 display : 'flex' ,
3850 flexDirection : 'column' ,
3951 gap : '16px' ,
@@ -46,7 +58,6 @@ const PopUpImage = styled('ul')({
4658 display : 'flex' ,
4759 justifyContent : 'space-between' ,
4860 alignItems : 'center' ,
49- // gap: '8px',
5061 padding : 0 ,
5162 listStyle : 'none' ,
5263
@@ -73,6 +84,50 @@ const PopUpImage = styled('ul')({
7384 width : '100%' ,
7485 } ,
7586 } ,
87+ [ media [ 0 ] ] : {
88+ [ 'div' ] : {
89+ height : '120px' ,
90+ [ 'img' ] : {
91+ height : '100%' ,
92+ width : '100%' ,
93+ borderRadius : '8px' ,
94+ } ,
95+ } ,
96+ } ,
97+ } ) ;
98+
99+ const PopUpDetailWord = styled ( 'p' ) ( {
100+ display : 'flex' ,
101+ flexDirection : 'column' ,
102+ alignItems : 'center' ,
103+ margin : 0 ,
104+
105+ [ 'span:first-of-type' ] : {
106+ fontSize : '1.5em' ,
107+ textAlign : 'center' ,
108+ lineHeight : '1.4' ,
109+ } ,
110+
111+ [ 'span:last-of-type' ] : {
112+ color : theme . colors . grayscale60 ,
113+ fontSize : '0.8em' ,
114+ textAlign : 'center' ,
115+ lineHeight : '1.2' ,
116+ } ,
117+ [ media [ 0 ] ] : {
118+ [ 'span:first-of-type' ] : {
119+ fontSize : '1em' ,
120+ textAlign : 'center' ,
121+ lineHeight : '1.4' ,
122+ } ,
123+
124+ [ 'span:last-of-type' ] : {
125+ color : theme . colors . grayscale60 ,
126+ fontSize : '0.6em' ,
127+ textAlign : 'center' ,
128+ lineHeight : '1.2' ,
129+ } ,
130+ } ,
76131} ) ;
77132
78133const PopUpDetailContainer = styled ( 'div' ) ( {
@@ -83,6 +138,11 @@ const PopUpDetailContainer = styled('div')({
83138 borderRadius : '8px' ,
84139 padding : '16px' ,
85140 marginTop : '12px' ,
141+
142+ [ media [ 0 ] ] : {
143+ padding : '12px' ,
144+ marginTop : '8px' ,
145+ } ,
86146} ) ;
87147
88148const PopUpDetail = styled ( 'div' ) ( {
@@ -107,6 +167,11 @@ const PopUpDetailNumber = styled.div(({ color }: { color?: themeColor }) => ({
107167 borderRadius : '4px' ,
108168 background : color ? theme . colors [ color ] : theme . colors . primary40 ,
109169 color : theme . colors . primary0 ,
170+ [ media [ 0 ] ] : {
171+ width : '20px' , // 모바일 크기 축소
172+ height : '20px' ,
173+ fontSize : '12px' ,
174+ } ,
110175} ) ) ;
111176
112177const ConfirmButton = styled ( 'div' ) ( {
@@ -118,6 +183,11 @@ const ConfirmButton = styled('div')({
118183 color : theme . colors . primary0 ,
119184 borderRadius : '0 0 12px 12px' ,
120185 padding : '27px 0' ,
186+
187+ [ media [ 0 ] ] : {
188+ fontSize : '14px' ,
189+ padding : '16px 0' ,
190+ } ,
121191} ) ;
122192
123193const Backdrop = styled ( 'div' ) ( {
@@ -139,13 +209,19 @@ const CloseButton = styled('button')({
139209 fontSize : '18px' ,
140210 cursor : 'pointer' ,
141211 color : theme . colors . grayscale100 ,
212+
213+ [ media [ 0 ] ] : {
214+ top : '12px' ,
215+ right : '0px' ,
216+ } ,
142217} ) ;
143218
144219export {
145220 PopUpContainer ,
146221 PopUpTitle ,
147222 PopUpContent ,
148223 PopUpImage ,
224+ PopUpDetailWord ,
149225 PopUpDetailContainer ,
150226 PopUpDetail ,
151227 PopUpDetailNumber ,
0 commit comments