feat: use mp4 hero

This commit is contained in:
jinhojang6 2024-04-25 20:11:05 +09:00
parent bde9294871
commit 4540fc132a
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
3 changed files with 15 additions and 12 deletions

View File

@ -67,7 +67,7 @@ div:has(.community-container) > .container {
text-decoration: none !important;
}
.mdx-hero > .mdx-hero-asset img {
.mdx-hero > .mdx-hero-asset video {
position: absolute;
right: 0;
top: 0;
@ -75,18 +75,18 @@ div:has(.community-container) > .container {
}
@media screen and (min-width: 996px) {
.mdx-hero > .mdx-hero-asset img {
.mdx-hero > .mdx-hero-asset video {
position: absolute;
right: 0;
top: 0;
margin-right: -250px;
margin-right: -280px;
margin-top: -55%;
scale: 0.95;
}
}
@media screen and (max-width: 996px) {
.mdx-hero > .mdx-hero-asset img {
.mdx-hero > .mdx-hero-asset video {
margin-right: -200px;
margin-left: 0;
scale: 0.9;
@ -103,10 +103,12 @@ div:has(.community-container) > .container {
margin-bottom: 280px;
}
.mdx-hero > .mdx-hero-asset img {
margin-right: 0;
scale: 0.9;
margin-top: -15%;
.mdx-hero > .mdx-hero-asset video {
margin-right: unset;
margin-left: unset;
margin: 0 auto;
width: -webkit-fill-available;
margin-top: -10%;
}
}
@ -121,9 +123,7 @@ div:has(.community-container) > .container {
margin-bottom: -20px;
}
.mdx-hero > .mdx-hero-asset img {
.mdx-hero > .mdx-hero-asset video {
margin-top: -5%;
margin-right: -20px;
scale: 0.95;
}
}

View File

@ -40,7 +40,10 @@ import Link from '@docusaurus/Link'
</HeroActions>
</HeroInfo>
<HeroAsset>
<img src="/hero/hero-image.gif" alt="hero-image" />
<video autoPlay loop muted autoPlay playsInline>
<source src="/hero/hero-video.mov" type='video/mp4; codecs="hvc1"' />
<source src="/hero/hero-video.webm" type="video/webm" />
</video>
</HeroAsset>
</Hero>

Binary file not shown.