File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 68
68
< div class ="hero ">
69
69
< img width ="2560 " height ="1440 " draggable ="false " src ="./assets/main/hero.webp " alt ="wedding couple under sakura trees ">
70
70
</ div >
71
+ < div class ="mobile-hero ">
72
+ < img width ="500 " height ="1080 " draggable ="false " src ="./assets/main/hero_mobile.webp " alt ="wedding couple under sakura trees ">
73
+ </ div >
71
74
<!-- content -->
72
75
< div class ="grid-container ">
73
76
<!-- venues -->
Original file line number Diff line number Diff line change @@ -190,16 +190,21 @@ nav {
190
190
transform : translateY (0 ) rotate (-45deg );
191
191
}
192
192
/* hero */
193
- .hero {
193
+ .hero ,
194
+ .mobile-hero {
194
195
position : relative;
195
196
}
196
- .hero img {
197
+ .hero img ,
198
+ .mobile-hero img {
197
199
width : 100% ;
198
200
height : auto;
199
201
mask-image : linear-gradient (180deg ,
200
202
rgba (0 , 0 , 0 , 1 ) 50% ,
201
203
transparent 90% );
202
204
}
205
+ .mobile-hero img {
206
+ display : none;
207
+ }
203
208
/* grid layout */
204
209
.grid-container {
205
210
display : grid;
@@ -548,6 +553,10 @@ footer .container .section.social i {
548
553
padding : 0 .5rem ;
549
554
}
550
555
.hero img {
556
+ display : none;
557
+ }
558
+ .mobile-hero img {
559
+ display : block;
551
560
height : 50vh ;
552
561
object-fit : cover;
553
562
}
You can’t perform that action at this time.
0 commit comments