File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ html {
1515 }
1616}
1717
18+ .mdx-hero-picture {
19+ display : grid ;
20+ grid-template-rows : 1fr ;
21+ grid-template-columns : 1fr ;
22+ position : relative ;
23+ flex-grow : 1 ;
1824
19- .mdx-hero-image {
20- display : flex ;
21- position : absolute ;
22- left : 0 ;
23- right : 0 ;
24- margin-left : auto ;
25- margin-right : auto ;
26- }
25+ pointer-events : none ;
26+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {
2020 LogoCarousel ,
2121 Hero ,
2222 HeroInfo ,
23+ HeroVideo ,
2324} from ' ../components/mdx'
2425
2526
@@ -37,10 +38,10 @@ import {
3738 </HeroAction >
3839 </HeroActions >
3940 </HeroInfo >
40- <picture >
41- < source srcSet = " /hero/key-visual.png " media = " (min-width: 100px) " className = " mdx-hero-image " />
42- < img src = " /hero/key-visual.webp " alt = " key-visual " className = " mdx-hero-image " />
43- </ picture >
41+ <HeroVideo
42+ placeholderSrc = " /hero/key-visual2.webp "
43+ mobile = { { height: " 100% " , minHeight: " 80vh " } }
44+ / >
4445 </Hero >
4546
4647<FeatureList
You can’t perform that action at this time.
0 commit comments