feat: implement hero-image at high-level

This commit is contained in:
jinhojang6 2024-03-13 04:13:31 +09:00
parent e4c1497396
commit 510ec0b1e7
3 changed files with 110 additions and 1 deletions

View File

@ -10,6 +10,10 @@ html {
overflow-x: hidden; overflow-x: hidden;
} }
#__docusaurus {
overflow: hidden;
}
@include utils.responsive('lg', 'up') { @include utils.responsive('lg', 'up') {
.mdx-cta-section-heading-large { .mdx-cta-section-heading-large {
@include lsd.typography('h1', false); @include lsd.typography('h1', false);
@ -29,6 +33,72 @@ html[data-theme='light'] {
margin-bottom: 96px !important; margin-bottom: 96px !important;
} }
#hero-image-container {
button {
display: none !important;
}
}
.hero-image {
position: absolute;
right: 0;
top: 0;
margin-top: -65%;
}
.mdx-hero {
h1 {
font-size: 48px !important;
line-height: 56px !important;
}
}
@include utils.responsive('xl', 'up') {
.hero-image {
position: absolute;
right: 0;
top: 0;
margin-right: calc(-1 * ((100vw - var(--container-max-width)) / 2 + 300px));
}
}
@media screen and (max-width: 1200px) {
.hero-image {
margin-right: calc(-1 * ((100vw - var(--container-max-width)) / 2 + 400px));
}
}
@media screen and (max-width: 1000px) {
.hero-image {
margin-right: calc(-1 * ((100vw - var(--container-max-width)) / 2 + 450px));
}
}
@media screen and (max-width: 900px) {
.hero-image {
margin-right: -32px;
margin-left: 0;
scale: 1;
margin-top: -30%;
}
}
@media screen and (max-width: 768px) {
.hero-image {
margin-right: 48px;
scale: 1.4;
margin-top: -10%;
}
}
@media screen and (max-width: 450px) {
.hero-image {
margin-right: 32px;
scale: 1.36;
margin-top: -20%;
}
}
.buttons-row { .buttons-row {
display: flex; display: flex;
gap: 16px; gap: 16px;
@ -85,3 +155,40 @@ h2 {
} }
} }
} }
@media screen and (max-width: 1000px) {
.mdx-hero {
margin-bottom: 200px;
}
.mdx-section-header {
h2 {
font-size: 28px !important;
line-height: 36px !important;
}
}
.mdx-feature-list__header {
h2 {
font-size: 28px !important;
line-height: 36px !important;
}
}
}
@media screen and (max-width: 768px) {
.mdx-hero {
margin-bottom: 210px;
h1 {
font-size: 32px !important;
line-height: 40px !important;
}
}
}
@media screen and (max-width: 450px) {
.mdx-hero {
margin-bottom: 40px;
}
}

View File

@ -24,7 +24,6 @@ import {
import { Button } from '@acid-info/lsd-react' import { Button } from '@acid-info/lsd-react'
<Hero size="large" verticalAlign="center"> <Hero size="large" verticalAlign="center">
<HeroInfo hideScrollToBottom> <HeroInfo hideScrollToBottom>
<HeroTitle uppercase={false}> <HeroTitle uppercase={false}>
@ -39,6 +38,9 @@ import { Button } from '@acid-info/lsd-react'
</HeroAction> </HeroAction>
</HeroActions> </HeroActions>
</HeroInfo> </HeroInfo>
<div id="hero-image-container">
<img src="/hero/hero-image.png" alt="hero-image" className="hero-image"/>
</div>
</Hero> </Hero>
<Box> <Box>

BIN
static/hero/hero-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB