designpaca/apps/site/src/components/HeroSystemGraphic.astro

454 lines
15 KiB
Text

---
interface Props {
lang?: "ko" | "en";
}
const { lang = "ko" } = Astro.props;
const suffix = lang === "en" ? "en" : "ko";
const title = lang === "en"
? "The designpaca process, assembled as a seven-stage design compiler"
: "브리프부터 실화면 검증까지 이어지는 디자인파카 7단계 파이프라인 다이어그램";
const description = lang === "en"
? "Seven aligned plates turn a brief into references, direction, tokens, implementation, preflight checks, and a verified result."
: "브리프에서 시작해 레퍼런스 실측, 방향 결정, 디자인 토큰, 반응형 구현, 프리플라이트 감사를 거쳐 검증된 결과물이 되기까지 일곱 단계를 보여 줍니다.";
const caption = lang === "en"
? "Brief · References · Direction · Tokens · Build · Preflight · Proof"
: "00 브리프 · 01 레퍼런스 · 02 방향 결정 · 03 토큰 · 04 구현 · 05 프리플라이트 · 06 검증 완료";
---
<figure class="system-graphic">
<svg
viewBox="0 0 650 560"
role="img"
aria-labelledby={`system-title-${suffix} system-desc-${suffix}`}
preserveAspectRatio="xMidYMid meet"
>
<title id={`system-title-${suffix}`}>{title}</title>
<desc id={`system-desc-${suffix}`}>{description}</desc>
<defs>
<pattern id={`system-grid-${suffix}`} width="24" height="24" patternUnits="userSpaceOnUse">
<path d="M24 0H0V24" class="field-grid" />
</pattern>
<filter id={`system-field-${suffix}`} x="-8%" y="-8%" width="116%" height="116%" color-interpolation-filters="sRGB">
<feTurbulence type="fractalNoise" baseFrequency="0.012 0.026" numOctaves="2" seed="7" result="field" />
<feDisplacementMap in="SourceGraphic" in2="field" scale="3.5" xChannelSelector="R" yChannelSelector="G" />
</filter>
<filter id={`system-grain-${suffix}`} x="0" y="0" width="100%" height="100%" color-interpolation-filters="sRGB">
<feTurbulence type="fractalNoise" baseFrequency="0.72" numOctaves="2" seed="19" />
<feColorMatrix type="matrix" values="
0 0 0 0 0.09
0 0 0 0 0.11
0 0 0 0 0.10
0 0 0 0.16 0
" />
</filter>
</defs>
<g aria-hidden="true">
<rect x="29" y="29" width="592" height="502" class="field" />
<rect x="29" y="29" width="592" height="502" fill={`url(#system-grid-${suffix})`} />
<rect x="29" y="29" width="592" height="502" class="field-grain" filter={`url(#system-grain-${suffix})`} />
<g class="crop-marks">
<path d="M29 61V29h32M589 29h32v32M621 499v32h-32M61 531H29v-32" />
<path d="M313 29h24M313 531h24M29 268v24M621 268v24" />
</g>
<g class="contours" filter={`url(#system-field-${suffix})`}>
<path d="M69 442c59-47 90-32 131-73 41-42 28-91 79-119 47-25 91-4 136-45 38-34 60-66 130-84" />
<path d="M82 470c64-37 102-24 147-67 44-42 36-89 82-113 51-27 97 1 147-38 34-27 54-60 111-75" />
<path d="M95 496c72-31 112-16 163-60 47-41 44-83 88-105 49-24 94 10 148-27 27-19 47-43 74-53" />
</g>
<g class="datum">
<path d="M93 448 485 103" />
<path d="m93 448 21-5-10-20" />
<circle cx="93" cy="448" r="4" />
</g>
<!-- Seven plates share one datum. The process is one system, not seven unrelated cards. -->
<g class="compiler-stack">
<g class="stage-layer stage-01">
<polygon class="plate-edge" points="103,423 348,349 526,421 280,496 103,480" />
<polygon class="plate plate-dark" points="103,408 348,334 526,405 280,480" />
<path class="plate-rule inverse" d="m127 414 221-66 153 61-221 67Z" />
<circle class="target inverse" cx="205" cy="417" r="19" />
<path class="target inverse" d="M205 390v54M178 417h54" />
<path class="micro inverse" d="m323 381 93-28M338 398l120-36M355 415l81-24" />
<text class="index inverse" x="121" y="457">01</text>
</g>
<g class="stage-layer stage-02">
<polygon class="plate-edge" points="123,359 368,285 546,357 300,432 123,416" />
<polygon class="plate" points="123,344 368,270 546,341 300,416" />
<path class="plate-rule" d="m147 350 221-66 153 61-221 67Z" />
<path class="sample" d="m183 351 75-22 48 19-75 23Zm91-27 75-22 48 19-75 23Z" />
<path class="micro" d="m365 351 91-27M379 367l57-17" />
<text class="index" x="141" y="393">02</text>
</g>
<g class="stage-layer stage-03">
<polygon class="plate-edge" points="143,295 388,221 566,293 320,368 143,352" />
<polygon class="plate plate-soft" points="143,280 388,206 566,277 320,352" />
<path class="plate-rule" d="m167 286 221-66 153 61-221 67Z" />
<circle class="target" cx="258" cy="290" r="24" />
<path class="decision" d="m258 290 93-28m-15-8 15 8-8 15" />
<path class="micro" d="m390 278 87-26M405 295l52-16" />
<text class="index" x="161" y="329">03</text>
</g>
<g class="stage-layer stage-04">
<polygon class="plate-edge" points="163,231 408,157 586,229 340,304 163,288" />
<polygon class="plate" points="163,216 408,142 586,213 340,288" />
<path class="plate-rule" d="m187 222 221-66 153 61-221 67Z" />
<g class="token-set">
<path d="m222 224 35-11 23 9-36 11Zm44-13 35-10 23 9-35 10Zm44-13 36-10 22 9-35 10Zm44-13 36-11 22 9-35 11Z" />
<path d="m247 245 121-36M265 256l83-24" />
</g>
<text class="index" x="181" y="265">04</text>
</g>
<g class="stage-layer stage-05">
<polygon class="plate-edge" points="183,167 428,93 606,165 360,240 183,224" />
<polygon class="plate plate-dark" points="183,152 428,78 606,149 360,224" />
<path class="plate-rule inverse" d="m207 158 221-66 153 61-221 67Z" />
<path class="wireframe inverse" d="m245 164 78-24 48 19-78 24Zm78-24 74-22 48 19-74 22Zm-30 43 78-24v35l-78 24Zm78-24 74-22v35l-74 22" />
<path class="micro inverse" d="m466 139 69-21M481 156l35-11" />
<text class="index inverse" x="201" y="201">05</text>
</g>
<g class="stage-layer stage-06">
<polygon class="plate-edge" points="203,103 448,29 626,101 380,176 203,160" />
<polygon class="plate plate-soft" points="203,88 448,14 626,85 380,160" />
<path class="plate-rule" d="m227 94 221-66 153 61-221 67Z" />
<path class="scan" d="m278 102 160-48 102 41-160 48Z" />
<path class="scan-line" d="m307 93 160-48" />
<path class="check" d="m479 103 11 10 27-36" />
<text class="index" x="221" y="137">06</text>
</g>
<!-- The verified result exits the stack: the only red surface in the scene. -->
<g class="stage-layer stage-07">
<polygon class="output-shadow" points="362,66 495,26 607,70 473,111" />
<polygon class="output" points="350,50 483,10 595,54 461,95" />
<path class="output-rule" d="m374 54 109-32 87 35-109 33Z" />
<circle class="proof-mark" cx="476" cy="54" r="19" />
<path class="proof-mark" d="m466 54 7 7 14-19" />
<text class="index output-index" x="371" y="73">07</text>
</g>
</g>
<g class="registration-pins">
<g class="registration-pin pin-01">
<path d="M280 496V480" />
<circle cx="280" cy="496" r="3" />
</g>
<g class="registration-pin pin-02">
<path d="M300 432v-16" />
<circle cx="300" cy="432" r="3" />
</g>
<g class="registration-pin pin-03">
<path d="M320 368v-16" />
<circle cx="320" cy="368" r="3" />
</g>
<g class="registration-pin pin-04">
<path d="M340 304v-16" />
<circle cx="340" cy="304" r="3" />
</g>
<g class="registration-pin pin-05">
<path d="M360 240v-16" />
<circle cx="360" cy="240" r="3" />
</g>
<g class="registration-pin pin-06">
<path d="M380 176v-16" />
<circle cx="380" cy="176" r="3" />
</g>
</g>
<g class="signal-path signal-path-open">
<path fill="none" d="M91 451 116 443 136 379 156 315 176 251 196 187 216 123 365 78" />
<circle class="signal-node" cx="116" cy="443" r="4" />
<circle class="signal-node" cx="136" cy="379" r="4" />
<circle class="signal-node" cx="156" cy="315" r="4" />
<circle class="signal-node" cx="176" cy="251" r="4" />
<circle class="signal-node" cx="196" cy="187" r="4" />
<circle class="signal-node" cx="216" cy="123" r="4" />
</g>
<!-- The compact signal is a second exact path. Crossfading avoids an SVG d morph and keeps every node registered. -->
<g class="signal-path signal-path-compact">
<path fill="none" d="M126 310 151 302 157 288 163 274 169 260 175 246 181 232 278 207.5" />
<circle class="signal-node" cx="151" cy="302" r="4" />
<circle class="signal-node" cx="157" cy="288" r="4" />
<circle class="signal-node" cx="163" cy="274" r="4" />
<circle class="signal-node" cx="169" cy="260" r="4" />
<circle class="signal-node" cx="175" cy="246" r="4" />
<circle class="signal-node" cx="181" cy="232" r="4" />
</g>
<g class="scale-marks">
<path d="M558 478h38M558 466v24M575 471v14M593 466v24" />
<path d="M67 94V66h28M67 66l10 10M67 66l-10 10" />
</g>
</g>
</svg>
<figcaption>{caption}</figcaption>
</figure>
<style>
.system-graphic {
width: 100%;
max-width: 40.625rem;
margin: 0;
color: var(--ink);
}
.system-graphic svg {
display: block;
width: 100%;
height: auto;
aspect-ratio: 65 / 56;
overflow: visible;
}
.system-graphic figcaption {
padding: var(--space-3) var(--space-4);
border-top: var(--line-width) solid var(--line-strong);
color: var(--ink-muted);
font-family: var(--font-mono);
font-size: var(--step--1);
line-height: 1.5;
}
.field {
fill: var(--surface-raised);
stroke: var(--line);
}
.field-grid {
fill: none;
stroke: var(--line);
stroke-width: 0.65;
opacity: 0.38;
}
.field-grain { opacity: 0.19; }
.crop-marks,
.scale-marks {
fill: none;
stroke: var(--ink);
stroke-width: 1.1;
vector-effect: non-scaling-stroke;
}
.contours {
fill: none;
stroke: var(--line-strong);
stroke-width: 0.8;
opacity: 0.42;
vector-effect: non-scaling-stroke;
}
.datum {
fill: var(--surface-raised);
stroke: var(--ink-muted);
stroke-width: 1;
stroke-dasharray: 3 6;
opacity: 0.72;
vector-effect: non-scaling-stroke;
}
.plate-edge {
fill: var(--line-strong);
stroke: var(--ink);
stroke-width: 1;
}
.plate {
fill: var(--surface-raised);
stroke: var(--ink);
stroke-width: 1.15;
}
.plate-soft { fill: var(--surface-soft); }
.plate-dark { fill: var(--surface-inverse); }
.plate-rule {
fill: none;
stroke: var(--ink-muted);
stroke-width: 0.9;
opacity: 0.62;
}
.inverse { stroke: var(--ink-muted-inverse); }
.target,
.decision,
.sample,
.token-set,
.wireframe,
.scan,
.scan-line,
.check {
fill: none;
stroke: var(--ink);
stroke-width: 1.35;
stroke-linecap: square;
stroke-linejoin: miter;
}
.sample,
.token-set { fill: var(--surface-soft); }
.wireframe.inverse { stroke: var(--ink-inverse); }
.scan { stroke-dasharray: 3 4; }
.scan-line { stroke: var(--accent); stroke-width: 2; }
.check { stroke: var(--accent); stroke-width: 2.8; }
.micro {
fill: none;
stroke: var(--ink-muted);
stroke-width: 1;
}
.micro.inverse { stroke: var(--ink-muted-inverse); }
.index {
fill: var(--ink-muted);
font-family: var(--font-mono);
font-size: 11px;
font-weight: var(--weight-medium);
letter-spacing: 0.04em;
}
.index.inverse { fill: var(--ink-muted-inverse); }
.output-shadow { fill: var(--ink); opacity: 0.16; }
.output {
fill: var(--accent);
stroke: var(--ink);
stroke-width: 1.15;
}
.output-rule {
fill: none;
stroke: var(--accent-ink);
stroke-width: 0.85;
opacity: 0.58;
}
.proof-mark {
fill: none;
stroke: var(--accent-ink);
stroke-width: 2;
stroke-linecap: square;
stroke-linejoin: miter;
}
.output-index { fill: var(--accent-ink); }
.registration-pins {
fill: var(--surface-raised);
stroke: var(--ink);
stroke-width: 1;
}
.signal-path {
fill: none;
stroke: var(--accent);
stroke-width: 1.8;
stroke-linecap: square;
stroke-linejoin: miter;
}
.signal-node { fill: var(--accent); }
.stage-layer,
.registration-pin {
--stack-x: 0px;
--stack-y: 0px;
transform: translate(var(--stack-x), var(--stack-y));
transform-box: fill-box;
transform-origin: center;
}
.stage-01,
.pin-01 { --stack-x: 35px; --stack-y: -141px; }
.stage-02,
.pin-02 { --stack-x: 21px; --stack-y: -91px; }
.stage-03,
.pin-03 { --stack-x: 7px; --stack-y: -41px; }
.stage-04,
.pin-04 { --stack-x: -7px; --stack-y: 9px; }
.stage-05,
.pin-05 { --stack-x: -21px; --stack-y: 59px; }
.stage-06,
.pin-06 { --stack-x: -35px; --stack-y: 109px; }
.stage-07 { --stack-x: -87px; --stack-y: 129.5px; }
.signal-path-open { opacity: 0; }
.signal-path-compact { opacity: 1; }
@supports (animation-timeline: scroll()) {
@media (prefers-reduced-motion: no-preference) {
.stage-layer,
.registration-pin {
animation: system-stack-scroll linear both;
animation-timeline: scroll(root block);
animation-range: 0 18vh;
}
.signal-path-open { animation: system-signal-open linear both; }
.signal-path-compact { animation: system-signal-compact linear both; }
.signal-path-open,
.signal-path-compact {
animation-timeline: scroll(root block);
animation-range: 0 18vh;
}
@media (max-width: 68rem) {
.stage-layer,
.registration-pin,
.signal-path-open,
.signal-path-compact { animation-range: 0 58vh; }
}
@keyframes system-stack-scroll {
from { transform: translate(0, 0); }
to { transform: translate(var(--stack-x), var(--stack-y)); }
}
@keyframes system-signal-open {
0%, 10% { opacity: 1; }
14%, 100% { opacity: 0; }
}
@keyframes system-signal-compact {
0%, 86% { opacity: 0; }
90%, 100% { opacity: 1; }
}
}
}
@media (max-width: 34rem) {
.system-graphic {
width: calc(100% + var(--space-2));
margin-inline: calc(var(--space-1) * -1);
}
.contours,
.scale-marks { opacity: 0.62; }
.index { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
.stage-layer,
.registration-pin,
.signal-path { animation: none; }
}
</style>