mirror of
https://github.com/sendevia/website.git
synced 2026-03-08 08:44:15 +08:00
208 lines
4.1 KiB
SCSS
208 lines
4.1 KiB
SCSS
@use "../mixin";
|
|
|
|
header {
|
|
grid-column: span 12;
|
|
|
|
position: relative;
|
|
|
|
height: 540px;
|
|
|
|
word-break: break-word;
|
|
|
|
svg {
|
|
display: none;
|
|
}
|
|
|
|
#header-hero-container {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
padding: 54px;
|
|
|
|
color: var(--md-ref-palette-secondary100);
|
|
|
|
border-radius: var(--md-sys-shape-corner-medium);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
|
|
overflow: hidden;
|
|
transition: var(--md-sys-motion-duration-extra-long4) var(--md-sys-motion-easing-standard);
|
|
z-index: 1;
|
|
|
|
#header-hero-headline {
|
|
@include mixin.typescale-style(
|
|
"display-large",
|
|
$font-size: 90rem,
|
|
$line-height: 90rem,
|
|
$font-variation-settings: "wght" 700
|
|
);
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
mix-blend-mode: hard-light;
|
|
transition: var(--md-sys-motion-duration-short1) var(--md-sys-motion-easing-standard);
|
|
}
|
|
|
|
#header-hero-subtitle {
|
|
@include mixin.typescale-style("headline-large", $font-size: 22rem, $line-height: 22rem);
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
mix-blend-mode: hard-light;
|
|
transition: var(--md-sys-motion-duration-short1) var(--md-sys-motion-easing-standard);
|
|
}
|
|
|
|
#header-impression {
|
|
position: absolute;
|
|
left: 0px;
|
|
top: 0px;
|
|
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
background-color: var(--md-ref-palette-secondary48);
|
|
|
|
transition: background-color var(--md-sys-motion-duration-extra-long4) var(--md-sys-motion-easing-standard);
|
|
z-index: -1;
|
|
|
|
#header-impression-noise {
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
filter: url(#noise-filter);
|
|
mix-blend-mode: soft-light;
|
|
opacity: 0.2;
|
|
z-index: 2;
|
|
}
|
|
|
|
#header-impression-image {
|
|
position: absolute;
|
|
left: 0px;
|
|
top: 0px;
|
|
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
background: center/cover no-repeat;
|
|
|
|
opacity: 0.8;
|
|
z-index: 1;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
background-color: var(--md-ref-palette-secondary10);
|
|
|
|
#header-impression-noise {
|
|
opacity: 0.1;
|
|
}
|
|
|
|
#header-impression-image {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1600px) {
|
|
header {
|
|
grid-column: span 12;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
header {
|
|
grid-column: span 8;
|
|
|
|
height: 45vh;
|
|
min-height: 360px;
|
|
|
|
#header-hero-container {
|
|
padding: 5vw;
|
|
|
|
#header-hero-headline {
|
|
@include mixin.typescale-style(
|
|
"display-large",
|
|
$font-size: 7vw,
|
|
$line-height: 7vw,
|
|
$font-variation-settings: "wght" 500
|
|
);
|
|
}
|
|
|
|
#header-hero-subtitle {
|
|
@include mixin.typescale-style(
|
|
"display-small",
|
|
$font-size: 18rem,
|
|
$line-height: 20rem,
|
|
$font-variation-settings: "wght" 500
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 840px) {
|
|
header {
|
|
grid-column: span 6;
|
|
|
|
#header-hero-container {
|
|
width: 100%;
|
|
|
|
#header-hero-headline {
|
|
@include mixin.typescale-style(
|
|
"display-large",
|
|
$font-size: 8vw,
|
|
$line-height: 8vw,
|
|
$font-variation-settings: "wght" 600
|
|
);
|
|
}
|
|
|
|
#header-hero-subtitle {
|
|
@include mixin.typescale-style("headline-large", $font-size: 23rem, $line-height: 23rem);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
header {
|
|
grid-column: span 4;
|
|
|
|
#header-hero-container {
|
|
padding: 30px;
|
|
|
|
#header-hero-headline {
|
|
@include mixin.typescale-style(
|
|
"display-large",
|
|
$font-size: 40rem,
|
|
$line-height: 40rem,
|
|
$font-variation-settings: "wght" 700
|
|
);
|
|
|
|
word-break: break-word;
|
|
}
|
|
|
|
#header-hero-subtitle {
|
|
@include mixin.typescale-style(
|
|
"display-small",
|
|
$font-size: 15rem,
|
|
$line-height: 17rem,
|
|
$font-variation-settings: "wght" 400
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|