release: v0.9.1 (신규 쇼케이스 3종 정식 출시, CSS 변수 및 경로 무결성 게이트 강화)
This commit is contained in:
parent
e26b00a825
commit
225c1d9f42
75 changed files with 7406 additions and 224 deletions
64
apps/site/src/components/ShowcaseHeroCanvas.astro
Normal file
64
apps/site/src/components/ShowcaseHeroCanvas.astro
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
---
|
||||
interface Props {
|
||||
class?: string;
|
||||
}
|
||||
const { class: className } = Astro.props;
|
||||
---
|
||||
|
||||
<div class:list={["hero-gl-wrap", className]} aria-hidden="true">
|
||||
<div class="hero-gl-fallback"></div>
|
||||
<canvas id="showcase-gl" class="hero-gl-canvas" style="opacity: 0;"></canvas>
|
||||
<div class="hero-gl-scrim"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
import { boot } from "../gl/boot.ts";
|
||||
|
||||
const canvas = document.getElementById("showcase-gl") as HTMLCanvasElement | null;
|
||||
if (canvas) {
|
||||
boot(canvas, () => import("../gl/scenes/showcase-hero.ts"));
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.hero-gl-wrap {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
|
||||
-webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
|
||||
}
|
||||
|
||||
.hero-gl-fallback {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(85% 60% at 50% -10%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 70%),
|
||||
radial-gradient(60% 50% at 85% 20%, rgba(217, 155, 56, 0.12) 0%, transparent 60%),
|
||||
linear-gradient(180deg, var(--surface-sunken) 0%, var(--surface) 100%);
|
||||
}
|
||||
|
||||
.hero-gl-canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
max-width: none !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero-gl-scrim {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: radial-gradient(circle at 50% 30%, rgba(12, 16, 23, 0.35) 0%, rgba(12, 16, 23, 0.8) 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero-gl-canvas {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue