phanpy/src/pages/welcome.css

137 lines
2.6 KiB
CSS
Raw Normal View History

2022-12-10 09:14:48 +00:00
#welcome {
text-align: center;
2022-12-19 16:16:45 +00:00
background-image: radial-gradient(
2023-06-10 11:20:32 +00:00
circle at center,
var(--bg-color),
transparent 16em
),
radial-gradient(circle at center, var(--bg-color), transparent 8em);
background-repeat: no-repeat;
background-attachment: fixed;
padding: 16px;
2023-06-10 11:20:32 +00:00
cursor: default;
}
#welcome .hero-container {
padding-block: 60px;
height: 100vh;
2023-07-13 12:10:53 +00:00
height: 100svh;
2023-06-10 11:20:32 +00:00
display: flex;
flex-direction: column;
2022-12-10 09:14:48 +00:00
}
2022-12-19 16:16:45 +00:00
#welcome h1 {
margin: 0;
padding: 0;
2023-06-10 11:20:32 +00:00
font-size: 5em;
line-height: 1;
letter-spacing: -1px;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
mix-blend-mode: multiply;
2022-12-19 16:16:45 +00:00
}
2023-06-10 11:20:32 +00:00
@keyframes shine2 {
0% {
left: -100%;
}
20% {
left: 100%;
}
100% {
left: 100%;
}
2022-12-19 16:16:45 +00:00
}
2023-06-10 11:20:32 +00:00
#welcome h1:before {
content: '';
position: absolute;
z-index: 2;
width: 100%;
height: 100%;
background-image: linear-gradient(
100deg,
rgba(255, 255, 255, 0) 30%,
rgba(255, 255, 255, 0.4),
rgba(255, 255, 255, 0) 70%
2023-01-01 09:19:07 +00:00
);
2023-06-10 11:20:32 +00:00
top: 0;
left: -100%;
pointer-events: none;
animation: shine2 5s ease-in-out 1s infinite;
2022-12-10 09:14:48 +00:00
}
2023-06-10 11:20:32 +00:00
@media (prefers-color-scheme: dark) {
#welcome {
background-image: none;
2022-12-10 09:14:48 +00:00
}
2023-06-10 11:20:32 +00:00
#welcome h1 {
mix-blend-mode: normal;
2022-12-10 09:14:48 +00:00
}
2023-06-10 11:20:32 +00:00
#welcome h1:before {
content: none;
}
}
#welcome img {
vertical-align: top;
transition: transform 0.3s ease-out;
}
#welcome h1 img {
filter: drop-shadow(-1px -1px var(--bg-blur-color))
drop-shadow(0 -1px 1px #fff)
drop-shadow(0 16px 32px var(--drop-shadow-color));
2022-12-10 09:14:48 +00:00
}
2023-06-10 11:20:32 +00:00
@media (prefers-color-scheme: dark) {
#welcome h1 img {
filter: none;
}
2022-12-10 09:14:48 +00:00
}
2023-04-24 14:58:14 +00:00
2023-06-10 11:20:32 +00:00
#welcome h1:hover img {
transform: scale(1.05);
2023-04-24 14:58:14 +00:00
}
2023-06-10 11:20:32 +00:00
#welcome .desc {
font-size: 1.4em;
text-wrap: balance;
opacity: 0.7;
}
#welcome .hero-container > p {
margin-top: 0;
2023-04-24 14:58:14 +00:00
}
2023-06-10 11:20:32 +00:00
#why-container .sections {
padding-inline: 16px;
}
2023-04-24 14:58:14 +00:00
#why-container .sections section {
text-align: start;
max-width: 480px;
background-color: var(--bg-color);
2023-06-10 11:20:32 +00:00
border-radius: 16px;
2023-04-24 14:58:14 +00:00
overflow: hidden;
2023-06-10 11:20:32 +00:00
box-shadow: 17px 20px 40px var(--drop-shadow-color);
margin-bottom: 48px;
2023-04-24 14:58:14 +00:00
}
#why-container .sections section h4 {
margin: 0;
padding: 30px 30px 0;
2023-06-10 11:20:32 +00:00
font-size: 1.4em;
2023-04-24 14:58:14 +00:00
font-weight: 600;
}
#why-container .sections section p {
margin-inline: 30px;
margin-bottom: 30px;
2023-06-10 11:20:32 +00:00
opacity: 0.7;
text-wrap: balance;
2023-04-24 14:58:14 +00:00
}
#why-container .sections section img {
width: 100%;
height: auto;
2023-06-10 11:20:32 +00:00
border-bottom: 1px solid var(--outline-color);
}
@media (prefers-color-scheme: dark) {
#why-container .sections section img {
filter: invert(0.85) hue-rotate(180deg);
}
2023-04-24 14:58:14 +00:00
}