File tree 2 files changed +29
-7
lines changed
src/app/components/heroSection
2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 30
30
text-align : center;
31
31
font-weight : 700 ;
32
32
font-size : 2rem ;
33
- width : 17 rem ;
34
- height : 10 rem ;
35
- padding : 2 rem ;
33
+ width : 33 rem ;
34
+ height : 19 rem ;
35
+ padding : 0.25 rem ;
36
36
background-color : # 333 ;
37
37
color : white;
38
38
display : flex;
39
39
align-items : center;
40
40
justify-content : center;
41
41
border-radius : 10px ;
42
42
z-index : 2 ;
43
- margin-right : 1 rem ;
44
- max-width : 400 px ; /* Ensure the videoPlaceholder has a max width */
43
+ margin-left : 5 rem ;
44
+ max-width : 600 px ; /* Ensure the videoPlaceholder has a max width*/
45
45
}
46
46
47
47
.intro {
71
71
margin-right: 1rem;
72
72
} */
73
73
74
+ @media (max-width : 1350px ) {
75
+ .videoPlaceholder {
76
+ width : 39vw ;
77
+ height : auto;
78
+ }
79
+ }
80
+
81
+ @media (max-width : 1200px ) {
82
+ .videoPlaceholder {
83
+ width : 33vw ;
84
+ height : auto;
85
+ }
86
+ }
87
+
74
88
@media (max-width : 850px ) {
75
89
.hero {
76
90
background : var (
101
115
.videoPlaceholder {
102
116
width : 100% ;
103
117
max-width : none;
104
- margin-right : 0 ;
118
+ margin-right : 5 rem ;
105
119
margin-top : 1rem ;
106
120
max-width : 300px ;
107
121
height : auto;
122
+ padding : 1.5rem 1rem ;
123
+ }
124
+ }
125
+
126
+ @media (max-width : 480px ) {
127
+ .videoPlaceholder {
128
+ width : 60% ;
129
+ padding : 1rem 0.7rem ;
108
130
}
109
131
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default function HeroSection() {
11
11
</ div >
12
12
< div className = { styles . purpleShape } >
13
13
< div className = { styles . videoPlaceholder } >
14
- < video width = '320 ' loop autoPlay muted >
14
+ < video width = '100% ' loop autoPlay muted >
15
15
< source src = '/assets/MeetupIntro.mp4' type = 'video/mp4' />
16
16
Your browser does not support the video tag.
17
17
</ video >
You can’t perform that action at this time.
0 commit comments