File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
app/frontend/src/pages/Main Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import { style } from '@vanilla-extract/css';
3
3
import { vars , fontStyle } from '@/styles' ;
4
4
5
5
export const container = style ( {
6
- position : 'relative' ,
7
6
display : 'flex' ,
7
+ flexDirection : 'column' ,
8
8
margin : '0 auto' ,
9
- width : '104rem' ,
9
+ maxWidth : '104rem' ,
10
10
height : '81.7rem' ,
11
11
color : vars . color . grayscale400 ,
12
12
background : vars . color . grayscaleWhite ,
@@ -19,9 +19,9 @@ export const login = style({
19
19
} ) ;
20
20
21
21
export const mainImage = style ( {
22
- width : '69.7rem ' ,
23
- height : '69.7rem' ,
24
- alignSelf : 'flex-end ' ,
22
+ width : '100% ' ,
23
+ maxWidth : '69.7rem' ,
24
+ maxHeight : '69.7rem ' ,
25
25
objectFit : 'contain' ,
26
26
} ) ;
27
27
@@ -31,12 +31,16 @@ export const text = style([
31
31
color : vars . color . grayscale400 ,
32
32
textAlign : 'right' ,
33
33
lineHeight : '3.5rem' ,
34
+
35
+ '@media' : {
36
+ 'screen and (max-width:768px)' : {
37
+ fontSize : '1.8rem' ,
38
+ } ,
39
+ } ,
34
40
} ,
35
41
] ) ;
36
42
37
43
export const textArea = style ( {
38
- position : 'absolute' ,
39
- right : '0' ,
40
44
display : 'flex' ,
41
45
flexDirection : 'column' ,
42
46
alignItems : 'flex-end' ,
@@ -50,5 +54,11 @@ export const title = style([
50
54
justifyContent : 'center' ,
51
55
textAlign : 'center' ,
52
56
color : vars . color . morakGreen ,
57
+
58
+ '@media' : {
59
+ 'screen and (max-width:768px)' : {
60
+ fontSize : '4.8rem' ,
61
+ } ,
62
+ } ,
53
63
} ,
54
64
] ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export function MainPage() {
15
15
16
16
return (
17
17
< div className = { styles . container } >
18
- < img src = { MAIN_IMAGE } alt = "main" className = { styles . mainImage } />
19
18
< div className = { styles . textArea } >
20
19
< div className = { styles . title } > morak</ div >
21
20
< div className = { styles . text } >
@@ -38,6 +37,7 @@ export function MainPage() {
38
37
) }
39
38
</ div >
40
39
</ div >
40
+ < img src = { MAIN_IMAGE } alt = "main" className = { styles . mainImage } />
41
41
</ div >
42
42
) ;
43
43
}
You can’t perform that action at this time.
0 commit comments