forked from vyla-entertainment/home-frontend
Released New Website
This commit is contained in:
84
src/styles/sections/hero-content.css
Normal file
84
src/styles/sections/hero-content.css
Normal file
@@ -0,0 +1,84 @@
|
||||
.hero-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.logo-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: clamp(2rem, calc(2rem + 2 * ((100vw - 23.4375rem) / 66.5625)), 4rem);
|
||||
line-height: clamp(2.28rem, calc(2.28rem + 1.72 * ((100vw - 23.4375rem) / 66.5625)), 4rem);
|
||||
letter-spacing: -.03em;
|
||||
font-weight: 500;
|
||||
text-wrap: balance;
|
||||
color: var(--color-fg);
|
||||
margin-bottom: 1rem;
|
||||
min-width: 440px;
|
||||
}
|
||||
|
||||
.hero-title .char {
|
||||
display: inline-block;
|
||||
opacity: 0;
|
||||
filter: blur(10px);
|
||||
animation: char-in 0.4s ease forwards;
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
color: var(--color-fg-dim);
|
||||
font-size: 0.8rem;
|
||||
margin: 1rem auto 0;
|
||||
line-height: 1.5;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.hero-description a {
|
||||
color: var(--color-fg-dim);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
@keyframes char-in {
|
||||
to {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero-title .char {
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero-description {
|
||||
margin-top: 0rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (orientation: landscape) and (max-height: 600px) {
|
||||
.hero-title {
|
||||
margin-bottom: 0rem;
|
||||
font-size: 2.7rem;
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
padding-top: 0px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user