Skip to content

Commit 0298466

Browse files
committed
chore: try new key visual for hero
1 parent caea099 commit 0298466

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

src/css/custom.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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+
}

src/pages/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

static/hero/key-visual.png

1.94 MB
Loading

static/hero/key-visual.webp

77.8 KB
Loading

static/hero/key-visual2.webp

221 KB
Loading

0 commit comments

Comments
 (0)