Skip to content

Commit caea099

Browse files
committed
feat: add new key visual to hero
1 parent f82c429 commit caea099

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

src/css/custom.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,13 @@ html {
1414
@include lsd.typography('h1', false);
1515
}
1616
}
17+
18+
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+
}

src/pages/index.mdx

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,30 @@ import {
1818
ProfileCard,
1919
ShowcaseCard,
2020
LogoCarousel,
21+
Hero,
22+
HeroInfo,
2123
} from '../components/mdx'
2224

2325

24-
<Box top={{ xs: 32 }} bottom={{ xs: 144, lg: 216 }}>
25-
<HeroTitle>
26-
{'LIGHT AND HIGH PERFORMING ETHEREUM CLIENTS'}
27-
</HeroTitle>
28-
<HeroDescription>
29-
{'Run Nimbus on lightweight devices or enterprise-grade servers with equal ease and peace of mind. Trusted by solo stakers and node operators alike.'}
30-
</HeroDescription>
31-
<HeroActions>
32-
<HeroAction variant="outlined" href="/about">
33-
Learn more
34-
</HeroAction>
35-
</HeroActions>
36-
</Box>
26+
<Hero size="large">
27+
<HeroInfo>
28+
<HeroTitle>
29+
{'LIGHT AND HIGH PERFORMING ETHEREUM CLIENTS'}
30+
</HeroTitle>
31+
<HeroDescription>
32+
{'Run Nimbus on lightweight devices or enterprise-grade servers with equal ease and peace of mind. Trusted by solo stakers and node operators alike.'}
33+
</HeroDescription>
34+
<HeroActions>
35+
<HeroAction variant="outlined" href="/about">
36+
Learn more
37+
</HeroAction>
38+
</HeroActions>
39+
</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>
44+
</Hero>
3745

3846
<FeatureList
3947
id="clients"

static/hero/key-visual.png

231 KB
Loading

static/hero/key-visual.webp

141 KB
Loading

0 commit comments

Comments
 (0)