Skip to content

Commit

Permalink
chore: try new key visual for hero
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhojang6 committed Jan 29, 2024
1 parent caea099 commit 0298466
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ html {
}
}

.mdx-hero-picture {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
position: relative;
flex-grow: 1;

.mdx-hero-image {
display: flex;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}
pointer-events: none;
}
9 changes: 5 additions & 4 deletions src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
LogoCarousel,
Hero,
HeroInfo,
HeroVideo,
} from '../components/mdx'


Expand All @@ -37,10 +38,10 @@ import {
</HeroAction>
</HeroActions>
</HeroInfo>
<picture>
<source srcSet="/hero/key-visual.png" media="(min-width: 100px)" className="mdx-hero-image" />
<img src="/hero/key-visual.webp" alt="key-visual" className="mdx-hero-image" />
</picture>
<HeroVideo
placeholderSrc="/hero/key-visual2.webp"
mobile={{ height: "100%", minHeight: "80vh" }}
/>
</Hero>

<FeatureList
Expand Down
Binary file modified static/hero/key-visual.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/hero/key-visual.webp
Binary file not shown.
Binary file added static/hero/key-visual2.webp
Binary file not shown.

0 comments on commit 0298466

Please sign in to comment.