feat: render responsive low-poly hero landscape

This commit is contained in:
2026-09-05 17:16:22 +08:00
parent 1bfb78479a
commit 637da07c9e
7 changed files with 337 additions and 52 deletions

View File

@@ -0,0 +1,39 @@
.heroScene,
.aboutScene {
position: absolute;
inset: 0;
overflow: hidden;
background: var(--bg-page);
pointer-events: none;
}
.heroScene {
z-index: 0;
}
.heroScene::after {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(circle at 50% 42%, var(--bg-page) 0 14%, transparent 44%),
linear-gradient(to bottom, transparent 68%, var(--bg-page) 100%);
opacity: 0.42;
}
.heroScene canvas,
.aboutScene canvas {
display: block;
width: 100%;
height: 100%;
}
.aboutScene {
z-index: 0;
}
@media (max-width: 640px) {
.heroScene::after {
opacity: 0.62;
}
}