dashy/src/styles/Header.module.scss
2021-08-25 23:14:21 +01:00

59 lines
No EOL
1.2 KiB
SCSS

html {
&[data-theme='dark'] {
--heading-shadow: -5px 4px 0px #000000;
--sub-heading-shadow: -3px 3px 1px #000000;
}
&[data-theme='light'] {
--heading-shadow: -2px 3px 2px #a2a1a1;
--sub-heading-shadow: -1px 1px 1px #a2a1a1;
}
}
header.heroBanner {
padding: 4rem 1rem;
text-align: center;
position: relative;
overflow: hidden;
background: var(--hero-background);
min-height: calc(100vh - 4rem);
h1.heroTitle {
font-size: 8rem;
font-family: 'Racing Sans One', cursive;
text-shadow: var(--heading-shadow);
}
h3.heroSubTitle {
text-shadow: var(--sub-heading-shadow);
}
img.starButton {
position: absolute;
width: 12rem;
top: 1rem;
right: 1rem;
opacity: 0.85;
&:hover {
opacity: 1;
}
}
}
.buttons {
display: flex;
align-items: center;
justify-content: center;
margin: 1.5rem;
@media screen and (max-width: 966px) {
flex-direction: column;
}
}
.dashyDescription {
max-width: 680px;
margin: 1rem auto;
text-align: left;
font-size: 1.2rem;
}
.keepReading {
font-size: 1.2rem;
margin-left: 0.5rem;
cursor: pointer;
text-decoration: underline;
}