소개 페이지 전면 재디자인 — Ethereal Glass

design-taste-frontend, high-end-visual-design, redesign-existing-projects 를
로드해 리디자인 모드로 진행했다. 이전 페이지는 디자인 스킬을 파는 자리가
문서처럼 생겼다는 지적을 받았다.

Design Read
- redesign-overhaul / 개발자 대상 / 정밀기기 언어
- DESIGN_VARIANCE 8 · MOTION_INTENSITY 6 · VISUAL_DENSITY 3

방향
- 다크 잉크 바탕에 three.js 셰이더 광원. 유리 패널이 그 위에 뜬다
- 리퀴드 글래스는 이 브리프에서 장식이 아니라 제품 시연이다.
  SVG 필터와 three.js 의 결합 그 자체이기 때문이다
- 밝은 밴드는 조판 섹션 하나뿐. 한글이 종이 위에 있어야 하는 자리다

제품 증명
- 히어로 배경에 셰이더(초기 번들 밖, 첫 페인트 후 지연 로드)
- 재료 섹션에 SVG 필터 3종을 실제로 먹인 타일: 그레인, 굴절, 듀오톤
- 도그푸딩 산출물 2개를 실제 스크린샷으로. 가짜 목업이 아니다

감사에서 걸려 고친 것
- backdrop-filter 에 SVG 를 얹으면 Chrome 이 선언 전체를 버린다.
  CSS.supports 는 참을 주면서 computed 는 none 이 된다
- main 에서 그리드 클래스가 빠져 subgrid 가 붕괴, 가로 444px 오버플로
- 진입 연출이 두 번 콘텐츠를 삼켰다. opacity 를 버리고 transform 만 남겼다
- eyebrow 4개, 제목 em-dash 2건

수치는 불리해진 것도 그대로 싣는다
- 반투명 패널 1개 -> 29개. 유리가 주제가 됐으므로
- three.js 185KB(gzip). 데모라서 JS 예산을 올렸고 그 사실을 페이지에 적었다
This commit is contained in:
Yun Chan 2026-08-20 11:45:38 +09:00
parent 6e05e69ca4
commit be343cdab5
22 changed files with 1695 additions and 439 deletions

View file

@ -8,51 +8,80 @@ interface Props {
const { command, copyLabel, copiedLabel, note } = Astro.props;
---
<div class="cmd">
<code class="cmd-text">{command}</code>
<button type="button" class="cmd-copy" data-copy={command} data-copied={copiedLabel}>
{copyLabel}
</button>
{/* 셸 안에 코어. 명령어는 기계의 부품처럼 앉는다 */}
<div class="cmd-shell shell">
<div class="cmd core">
<code class="cmd-text">{command}</code>
<button type="button" class="cmd-copy" data-copy={command} data-copied={copiedLabel}>
<span class="cmd-copy-label">{copyLabel}</span>
<span class="cmd-copy-icon" aria-hidden="true">
<svg viewBox="0 0 16 16" width="12" height="12" fill="none">
<path d="M5.5 10.5L10.5 5.5M10.5 5.5H6.5M10.5 5.5V9.5"
stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</span>
</button>
</div>
</div>
{note && <p class="cmd-note muted">{note}</p>}
<style>
.cmd-shell { max-width: 30em; min-width: 0; }
.cmd {
display: flex;
min-width: 0;
align-items: stretch;
gap: 0;
border: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
overflow: hidden;
max-width: 34em;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
}
.cmd-text {
flex: 1 1 0;
min-width: 0;
padding: var(--space-3);
overflow-x: auto;
white-space: nowrap;
color: var(--ink);
}
.cmd-text::before {
content: "$ ";
color: var(--ink-muted);
}
/* 버튼 안에 아이콘이 자기 원을 갖는다 */
.cmd-copy {
flex: 0 0 auto;
/* 독립 컨트롤이므로 44px 이상 */
min-width: 5.5em;
display: inline-flex;
align-items: center;
gap: var(--space-2);
min-height: 44px;
white-space: nowrap;
padding-inline: var(--space-3);
padding: 0 var(--space-2) 0 var(--space-3);
border: 0;
border-left: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
background: var(--accent);
color: var(--accent-ink);
font: inherit;
font-size: var(--step-0);
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: opacity var(--dur-instant) var(--ease-out);
transition:
transform var(--dur-instant) var(--ease-out),
filter var(--dur-instant) var(--ease-out);
}
.cmd-copy:hover {
opacity: 0.88;
.cmd-copy:hover { filter: brightness(1.08); }
.cmd-copy:active { transform: scale(0.975); }
.cmd-copy-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: var(--radius-sm);
background: color-mix(in oklab, var(--accent-ink) 18%, transparent);
transition: transform var(--dur-quick) var(--ease-out);
}
.cmd-copy:hover .cmd-copy-icon { transform: translate(2px, -2px); }
.cmd-note {
margin-top: var(--space-2);
font-size: var(--step-0);
@ -62,17 +91,19 @@ const { command, copyLabel, copiedLabel, note } = Astro.props;
<script>
// 이 페이지의 유일한 상호작용이다. 라이브러리를 쓰지 않는다.
document.querySelectorAll<HTMLButtonElement>(".cmd-copy").forEach((btn) => {
const label = btn.querySelector<HTMLSpanElement>(".cmd-copy-label");
if (!label) return;
btn.addEventListener("click", async () => {
const text = btn.dataset["copy"] ?? "";
const done = btn.dataset["copied"] ?? "OK";
const original = btn.textContent;
const original = label.textContent;
try {
await navigator.clipboard.writeText(text);
} catch {
// 클립보드 권한이 없으면 선택 상태로 만들어 사용자가 직접 복사하게 둔다
const range = document.createRange();
const code = btn.previousElementSibling;
const code = btn.parentElement?.querySelector(".cmd-text");
if (code) {
const range = document.createRange();
range.selectNodeContents(code);
const sel = getSelection();
sel?.removeAllRanges();
@ -80,11 +111,9 @@ const { command, copyLabel, copiedLabel, note } = Astro.props;
}
return;
}
btn.textContent = done;
btn.setAttribute("aria-live", "polite");
setTimeout(() => {
btn.textContent = original;
}, 1600);
label.textContent = done;
label.setAttribute("aria-live", "polite");
setTimeout(() => { label.textContent = original; }, 1600);
});
});
</script>

View file

@ -1,5 +1,7 @@
---
import { Image } from "astro:assets";
import CopyCommand from "./CopyCommand.astro";
import shotCoffee from "../assets/shots/shot-coffee.png";
import type { Content } from "../i18n/content";
interface Props {
@ -9,35 +11,115 @@ interface Props {
const { c, ui } = Astro.props;
---
{/* 다크 밴드 두 곳 중 하나. 3단계 토큰이 규칙으로 정의했다(게이트 #4) */}
<section class="full band-inverse hero">
<div class="hero-inner">
<h1>{c.h1}</h1>
<p class="lead hero-lead">{c.lead}</p>
<CopyCommand
command={c.install}
copyLabel={ui.copy}
copiedLabel={ui.copied}
note={c.installNote}
/>
<p class="hero-links">
{c.links.map((l) => (<a href={l.href}>{l.label}</a>))}
</p>
<section class="full hero">
{/* 배경. WebGL 이 없으면 아래 그라디언트가 그대로 결과물이다 */}
<div class="hero-bg" aria-hidden="true">
<div class="hero-fallback"></div>
<canvas id="hero-canvas" class="hero-canvas"></canvas>
</div>
<div class="hero-grid">
<div class="hero-copy">
<h1 class="hero-title">{c.h1}</h1>
<p class="lead hero-lead">{c.lead}</p>
<div class="hero-cta">
<CopyCommand
command={c.install}
copyLabel={ui.copy}
copiedLabel={ui.copied}
note={c.installNote}
/>
</div>
<p class="hero-links">
{c.links.map((l) => <a href={l.href}>{l.label}</a>)}
</p>
</div>
{/* 가짜 목업이 아니라 이 스킬로 실제로 만든 페이지다 */}
<figure class="hero-proof">
<div class="shell">
<div class="core">
<Image
src={shotCoffee}
alt={c.proofAlt}
widths={[520, 900, 1280]}
sizes="(max-width: 960px) 88vw, 44vw"
loading="eager"
fetchpriority="high"
/>
</div>
</div>
<figcaption>{c.proofCaption}</figcaption>
</figure>
</div>
</section>
<style>
.hero {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: subgrid;
padding-block: var(--space-7) var(--space-8);
min-height: min(92dvh, 60rem);
align-content: center;
overflow: clip;
}
.hero-inner {
grid-column: main;
.hero-bg {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
.hero-fallback,
.hero-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.hero-fallback {
/* 광원이 화면 밖으로 번지되 페이지 폭은 늘리지 않는다 */
transform: scale(1.15);
background:
radial-gradient(46vw 40vw at 22% 18%,
color-mix(in oklab, var(--accent) 40%, transparent), transparent 66%),
radial-gradient(40vw 38vw at 82% 30%,
color-mix(in oklab, #6E7BFF 32%, transparent), transparent 64%);
filter: blur(28px);
}
.hero-canvas { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.hero-canvas.is-live { opacity: 1; }
.hero-grid {
grid-column: full;
max-width: 1180px;
width: 100%;
margin-inline: auto;
padding-inline: var(--space-4);
display: grid;
gap: var(--space-6);
align-items: center;
grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.hero-title {
/* 히어로는 이 페이지에서 가장 큰 소리다 */
max-width: 11ch;
}
[lang="en"] .hero-title { max-width: 14ch; }
.hero-lead {
max-width: 30em;
max-width: 26em;
margin-block: var(--space-4) var(--space-5);
color: var(--ink);
opacity: 0.82;
}
.hero-cta { max-width: 32em; }
.hero-links {
display: flex;
gap: var(--space-4);
@ -45,4 +127,157 @@ const { c, ui } = Astro.props;
font-size: var(--step-0);
color: var(--ink-muted);
}
.hero-proof { margin: 0; }
.hero-proof .shell {
box-shadow: var(--glass-hi), var(--shadow-3);
transform: rotate(-1.1deg);
}
.hero-proof .core { overflow: hidden; line-height: 0; }
.hero-proof :global(img) {
width: 100%;
height: auto;
display: block;
aspect-ratio: 4 / 3;
object-fit: cover;
object-position: top center;
}
figcaption {
margin-top: var(--space-3);
font-size: var(--step-0);
color: var(--ink-muted);
}
@media (max-width: 960px) {
.hero-grid { grid-template-columns: 1fr; }
.hero-proof .shell { transform: none; }
.hero { min-height: 0; }
}
</style>
<script>
// 배경 셰이더. 이 페이지의 유일한 WebGL 컨텍스트다.
// 초기 번들에 three 를 넣지 않고, 첫 화면이 그려진 뒤에 받는다.
// LCP 는 h1 이 가져간다. 캔버스는 배경 레이어일 뿐이다.
const canvas = document.getElementById("hero-canvas") as HTMLCanvasElement | null;
const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
if (canvas && !reduce) {
const kick = () => void start();
if ("requestIdleCallback" in window) {
(window as unknown as { requestIdleCallback: (cb: () => void, o?: object) => void })
.requestIdleCallback(kick, { timeout: 1800 });
} else {
setTimeout(kick, 900);
}
}
async function start() {
if (!canvas) return;
let THREE: typeof import("three");
try {
THREE = await import("three");
} catch {
return; // 폴백 그라디언트로 남는다
}
let renderer: import("three").WebGLRenderer;
try {
renderer = new THREE.WebGLRenderer({ canvas, antialias: false, alpha: true });
} catch {
return; // WebGL 이 없으면 폴백으로 남는다
}
const css = getComputedStyle(document.documentElement);
const col = (name: string, fallback: string) =>
new THREE.Color((css.getPropertyValue(name).trim() || fallback) as string);
const scene = new THREE.Scene();
const camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0, 1);
const material = new THREE.ShaderMaterial({
transparent: true,
uniforms: {
uTime: { value: 0 },
uA: { value: col("--accent", "#4FD6C4") },
uB: { value: new THREE.Color("#6E7BFF") },
uAspect: { value: 1 },
},
vertexShader: `
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = vec4(position, 1.0);
}
`,
fragmentShader: `
precision mediump float;
varying vec2 vUv;
uniform float uTime;
uniform float uAspect;
uniform vec3 uA;
uniform vec3 uB;
// 값 노이즈. 라이브러리를 끌어오지 않는다
float hash(vec2 p) { return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }
float noise(vec2 p) {
vec2 i = floor(p), f = fract(p);
vec2 u = f * f * (3.0 - 2.0 * f);
return mix(mix(hash(i), hash(i + vec2(1, 0)), u.x),
mix(hash(i + vec2(0, 1)), hash(i + vec2(1, 1)), u.x), u.y);
}
float fbm(vec2 p) {
float v = 0.0, a = 0.5;
for (int i = 0; i < 4; i++) { v += a * noise(p); p *= 2.03; a *= 0.5; }
return v;
}
void main() {
vec2 p = vUv;
p.x *= uAspect;
float t = uTime * 0.035;
// 두 광원이 서로 다른 속도로 흐른다
float f1 = fbm(p * 1.9 + vec2(t, -t * 0.6));
float f2 = fbm(p * 2.4 - vec2(t * 0.8, t * 1.1) + f1 * 0.5);
float blobA = smoothstep(0.62, 0.16, distance(p, vec2(0.30 * uAspect, 0.34)) + f1 * 0.34);
float blobB = smoothstep(0.58, 0.14, distance(p, vec2(0.78 * uAspect, 0.52)) + f2 * 0.30);
vec3 col = uA * blobA + uB * blobB * 0.85;
float alpha = clamp(blobA + blobB, 0.0, 1.0) * 0.72;
gl_FragColor = vec4(col, alpha);
}
`,
});
scene.add(new THREE.Mesh(new THREE.PlaneGeometry(2, 2), material));
const fit = () => {
const r = canvas.getBoundingClientRect();
if (!r.width || !r.height) return;
// DPR 클램프. 3 을 그대로 쓰면 픽셀이 네 배가 된다
renderer.setPixelRatio(Math.min(devicePixelRatio, 1.5));
renderer.setSize(r.width, r.height, false);
material.uniforms["uAspect"]!.value = r.width / r.height;
};
fit();
addEventListener("resize", fit, { passive: true });
let visible = true;
document.addEventListener("visibilitychange", () => { visible = !document.hidden; });
// 히어로가 화면 밖으로 나가면 그리지 않는다
let onScreen = true;
new IntersectionObserver(
(es) => { onScreen = es.some((e) => e.isIntersecting); },
{ threshold: 0 },
).observe(canvas);
canvas.classList.add("is-live");
renderer.setAnimationLoop((ms) => {
if (!visible || !onScreen) return;
material.uniforms["uTime"]!.value = ms * 0.001;
renderer.render(scene, camera);
});
}
</script>

View file

@ -2,58 +2,80 @@
import CopyCommand from "./CopyCommand.astro";
import type { Content } from "../i18n/content";
interface Props {
c: Content["install"];
ui: Content["ui"];
}
interface Props { c: Content["install"]; ui: Content["ui"]; }
const { c, ui } = Astro.props;
---
{/* 다크 밴드 두 곳 중 둘째. 그 외에는 쓰지 않는다 */}
<section class="full band-inverse install" aria-labelledby="install-h">
<div class="install-inner">
<h2 id="install-h">{c.h2}</h2>
<p class="lead install-lead">{c.lead}</p>
<CopyCommand command={c.command} copyLabel={ui.copy} copiedLabel={ui.copied} />
<div class="table-scroll targets">
<table>
<tbody>
{
c.targets.map((t) => (
<tr>
<th scope="row">{t.name}</th>
<td class="mono">{t.path}</td>
</tr>
))
}
</tbody>
</table>
<section class="full install" aria-labelledby="install-h">
<div class="install-grid">
<div class="install-head">
<h2 id="install-h">{c.h2}</h2>
<p class="lead install-lead">{c.lead}</p>
<CopyCommand command={c.command} copyLabel={ui.copy} copiedLabel={ui.copied} />
</div>
<dl class="cmds">
{
c.commands.map((x) => (
<div class="cmd-row">
<dt class="mono">{x.cmd}</dt>
<dd class="muted">{x.what}</dd>
</div>
))
}
</dl>
<div class="install-body">
<ul class="targets">
{
c.targets.map((t) => (
<li>
<span class="t-name">{t.name}</span>
<span class="t-path mono muted">{t.path}</span>
</li>
))
}
</ul>
<dl class="cmds">
{
c.commands.map((x) => (
<div class="cmd-row glass">
<dt class="mono">{x.cmd}</dt>
<dd class="muted">{x.what}</dd>
</div>
))
}
</dl>
</div>
</div>
</section>
<style>
.install { display: grid; grid-template-columns: subgrid; }
.install-inner { grid-column: main; }
.install-lead { margin-block: var(--space-3) var(--space-5); }
.targets { margin-top: var(--space-6); }
.targets th[scope="row"] { font-weight: 400; color: var(--ink); letter-spacing: 0; }
.cmds { margin: var(--space-5) 0 0; }
.cmd-row { padding-block: var(--space-3); border-top: 1px solid var(--line); }
.cmd-row:last-child { border-bottom: 1px solid var(--line); }
dt { margin-bottom: var(--space-1); }
.install { padding-block: var(--space-8); }
.install-grid {
max-width: 1180px;
margin-inline: auto;
padding-inline: var(--space-4);
display: grid;
gap: var(--space-6);
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
align-items: start;
}
.install-lead { margin-block: var(--space-3) var(--space-5); max-width: 26em; }
.targets { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.targets li {
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-3);
justify-content: space-between;
padding-block: var(--space-2);
border-bottom: 1px solid var(--line);
}
.t-name { font-weight: 500; }
.t-path { font-size: var(--mono-size); }
.cmds { margin: 0; display: grid; gap: var(--space-3); }
.cmd-row {
display: grid;
gap: var(--space-1);
padding: var(--space-3);
}
dt { color: var(--accent); }
dd { margin: 0; font-size: var(--step-0); }
@media (max-width: 820px) {
.install-grid { grid-template-columns: 1fr; }
}
</style>

View file

@ -0,0 +1,158 @@
---
import type { Content } from "../i18n/content";
interface Props { c: Content["materials"]; }
const { c } = Astro.props;
---
{/*
레이아웃 패밀리: 레이어드 캔버스.
배경은 three.js 셰이더 플레인, 전경은 SVG 필터를 실제로 먹인 타일 3장.
둘 다 설명이 아니라 지금 이 화면에서 돌고 있는 것이다.
*/}
<section class="section materials" aria-labelledby="mat-h">
<h2 id="mat-h" class="reveal">{c.h2}</h2>
<p class="lead mat-lead reveal">{c.lead}</p>
<div class="full stage glass">
<div class="stage-fallback" aria-hidden="true"></div>
<ul class="tiles">
{
c.tiles.map((t, i) => (
<li class="tile reveal" style={`--reveal-delay:${i * 80}ms`}>
<div class="shell">
<div class="core">
<div class={`swatch swatch-${t.id}`} aria-hidden="true"></div>
</div>
</div>
<h3 class="tile-name">{t.name}</h3>
<p class="tile-how muted">{t.how}</p>
<p class="tile-cost mono">{t.cost}</p>
</li>
))
}
</ul>
</div>
<p class="mat-note muted reveal">{c.note}</p>
</section>
{/* 필터 정의. 화면에 그려지지 않고 참조만 된다 */}
<svg class="visually-hidden" aria-hidden="true" focusable="false">
<defs>
<!-- 종이: 미세한 프랙탈 노이즈를 표면에 얹는다 -->
<filter id="f-grain" x="0" y="0" width="100%" height="100%">
<feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" result="n" />
<feColorMatrix in="n" type="saturate" values="0" result="g" />
<feComponentTransfer in="g" result="soft">
<feFuncA type="linear" slope="0.42" />
</feComponentTransfer>
<feComposite in="SourceGraphic" in2="soft" operator="over" />
</filter>
<!-- 유리: 난류로 만든 변위 지도를 굴절에 쓴다. 필터 영역을 넓혀 가장자리 잘림을 막는다 -->
<filter id="f-glass" x="-12%" y="-12%" width="124%" height="124%"
color-interpolation-filters="sRGB">
<feTurbulence type="fractalNoise" baseFrequency="0.012 0.02" numOctaves="2" seed="7" result="warp" />
<feDisplacementMap in="SourceGraphic" in2="warp" scale="26"
xChannelSelector="R" yChannelSelector="G" result="bent" />
<feGaussianBlur in="bent" stdDeviation="0.4" />
</filter>
<!-- 인쇄: 명도를 두 색 사이로 다시 매핑한다 -->
<filter id="f-duotone" x="0" y="0" width="100%" height="100%"
color-interpolation-filters="sRGB">
<feColorMatrix type="matrix" result="mono"
values="0.33 0.33 0.33 0 0
0.33 0.33 0.33 0 0
0.33 0.33 0.33 0 0
0 0 0 1 0" />
<feComponentTransfer in="mono">
<feFuncR type="table" tableValues="0.05 0.06 0.42" />
<feFuncG type="table" tableValues="0.09 0.42 0.66" />
<feFuncB type="table" tableValues="0.08 0.39 0.60" />
</feComponentTransfer>
</filter>
</defs>
</svg>
<style>
.mat-lead { margin-block: var(--space-4) var(--space-6); }
.mat-note { margin-top: var(--space-5); font-size: var(--step-0); }
.stage {
position: relative;
isolation: isolate;
max-width: 1180px;
width: 100%;
margin-inline: auto;
padding: var(--space-6) var(--space-4);
border-radius: var(--radius-shell);
overflow: hidden;
}
.stage-fallback {
position: absolute;
inset: 0;
z-index: -1;
width: 100%;
height: 100%;
display: block;
}
.stage-fallback {
background:
radial-gradient(120% 90% at 12% 8%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
radial-gradient(90% 80% at 88% 92%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 62%),
var(--surface-raised);
}
/* 3개 항목에 3개 셀. 빈 칸이 생기지 않고 균등 3열도 아니다 */
.tiles {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: var(--space-4);
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
grid-template-areas:
"big top"
"big bottom";
}
.tile:nth-child(1) { grid-area: big; }
.tile:nth-child(2) { grid-area: top; }
.tile:nth-child(3) { grid-area: bottom; }
/* 큰 셀은 더 넓은 화면을 갖는다 */
.tile:nth-child(1) .swatch { aspect-ratio: 5 / 4; }
.tile:nth-child(n + 2) .swatch { aspect-ratio: 16 / 7; }
.tile { display: grid; gap: var(--space-2); align-content: start; }
.tile .shell { box-shadow: var(--glass-hi), var(--shadow-2); }
.tile .core { overflow: hidden; }
/* 필터를 먹일 대상. 같은 도형에 서로 다른 재질을 입힌다 */
.swatch {
aspect-ratio: 4 / 3;
background:
repeating-linear-gradient(
58deg,
var(--accent) 0 14px,
color-mix(in oklab, var(--accent) 55%, var(--surface)) 14px 28px
);
}
.swatch-grain { filter: url(#f-grain); }
.swatch-glass { filter: url(#f-glass); }
.swatch-duotone { filter: url(#f-duotone); }
/* 필터를 지원하지 않거나 저사양이면 줄무늬만 남는다. 그래도 성립한다 */
@supports not (filter: url(#f-grain)) {
.swatch-grain, .swatch-glass, .swatch-duotone { filter: none; }
}
.tile-name { font-size: var(--step-1); margin-top: var(--space-1); }
.tile-how { margin: 0; font-size: var(--step-0); }
.tile-cost { margin: 0; color: var(--accent); }
@media (max-width: 760px) {
.tiles { grid-template-columns: 1fr; grid-template-areas: "big" "top" "bottom"; }
.tile:nth-child(n + 2) .swatch { aspect-ratio: 5 / 4; }
}
</style>

View file

@ -1,40 +1,79 @@
---
import type { Content } from "../i18n/content";
interface Props {
c: Content["metrics"];
}
interface Props { c: Content["metrics"]; }
const { c } = Astro.props;
const feature = c.items.filter((m) => m.feature);
const rest = c.items.filter((m) => !m.feature);
---
<section class="section" aria-labelledby="metrics-h">
<p class="eyebrow">{c.eyebrow}</p>
<h2 id="metrics-h">{c.h2}</h2>
<p class="lead metrics-lead">{c.lead}</p>
{/* 레이아웃 패밀리: 벤토. 항목 수만큼 셀이 있고 빈 칸이 없다 */}
<section class="section metrics" aria-labelledby="metrics-h">
<p class="eyebrow reveal">{c.eyebrow}</p>
<h2 id="metrics-h" class="reveal">{c.h2}</h2>
<p class="lead metrics-lead reveal">{c.lead}</p>
<div class="table-scroll">
<table>
<tbody>
{
c.items.map((m) => (
<tr>
<th scope="row">{m.label}</th>
<td class="metric-value mono">{m.value}</td>
<td class="metric-note muted">{m.note}</td>
</tr>
))
}
</tbody>
</table>
<div class="full bento">
{
feature.map((m, i) => (
<div class="cell cell-lg glass glass-2 reveal" style={`--reveal-delay:${i * 70}ms`}>
<span class="cell-value nums">{m.value}</span>
<span class="cell-label">{m.label}</span>
<span class="cell-note muted">{m.note}</span>
</div>
))
}
{
rest.map((m, i) => (
<div class="cell glass reveal" style={`--reveal-delay:${(i + 2) * 70}ms`}>
<span class="cell-value nums">{m.value}</span>
<span class="cell-label">{m.label}</span>
<span class="cell-note muted">{m.note}</span>
</div>
))
}
</div>
<p class="caveat muted">{c.caveat}</p>
<p class="caveat muted reveal">{c.caveat}</p>
</section>
<style>
.metrics-lead { margin-bottom: var(--space-5); }
.metric-value { white-space: nowrap; }
.metric-note { font-size: var(--step-0); }
.caveat { margin-top: var(--space-4); font-size: var(--step-0); }
th[scope="row"] { font-weight: 400; color: var(--ink); letter-spacing: 0; }
.metrics-lead { margin-block: var(--space-4) var(--space-6); }
.bento {
display: grid;
gap: var(--space-3);
grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
max-width: 1180px;
margin-inline: auto;
padding-inline: var(--space-4);
}
.cell {
display: grid;
align-content: start;
gap: var(--space-1);
padding: var(--space-4);
}
/* 두 항목만 크게. 나머지는 조용히 받친다 */
.cell-lg {
grid-column: span 2;
box-shadow: var(--glass-hi), var(--shadow-3);
}
.cell-lg .cell-value { color: var(--accent); }
.cell-value {
font-size: var(--step-3);
font-weight: 600;
line-height: 1.1;
letter-spacing: var(--tracking-display);
}
.cell-lg .cell-value { font-size: var(--step-4); }
.cell-label { font-weight: 500; }
.cell-note { font-size: var(--step-0); }
.caveat { margin-top: var(--space-5); font-size: var(--step-0); }
@media (max-width: 700px) {
.cell-lg { grid-column: span 1; }
}
</style>

View file

@ -15,19 +15,19 @@ const { c } = Astro.props;
role="list" 는 list-style:none 일 때 Safari/VoiceOver 가 목록 의미를 버리는 것을 되돌린다
*/}
<section class="section" aria-labelledby="pipeline-h">
<p class="eyebrow">{c.eyebrow}</p>
<h2 id="pipeline-h">{c.h2}</h2>
<p class="lead pipeline-lead">{c.lead}</p>
<p class="eyebrow reveal">{c.eyebrow}</p>
<h2 id="pipeline-h" class="reveal">{c.h2}</h2>
<p class="lead pipeline-lead reveal">{c.lead}</p>
<div class="brief">
<div class="brief glass reveal"><div class="brief-core">
<span class="brief-label">{c.briefLabel}</span>
<p class="brief-text">{c.brief}</p>
</div>
</div></div>
<ol role="list" class="spine">
{
c.stages.map((s) => (
<li class="stop">
<li class="stop reveal">
<h3 class="stop-name">{s.name}</h3>
<p class="stop-does">{s.does}</p>
<p class:list={["stop-becomes", { mono: s.mono }]}>{s.becomes}</p>
@ -36,7 +36,7 @@ const { c } = Astro.props;
}
</ol>
<p class="after muted">{c.after}</p>
<p class="after muted reveal">{c.after}</p>
</section>
<style>
@ -44,12 +44,8 @@ const { c } = Astro.props;
margin-bottom: var(--space-6);
}
.brief {
border: 1px solid var(--line-strong);
border-radius: var(--radius-md);
padding: var(--space-4);
margin-bottom: var(--space-2);
}
.brief { margin-bottom: var(--space-2); }
.brief-core { padding: var(--space-4); }
.brief-label {
display: block;
font-size: var(--step-0);

View file

@ -1,39 +1,70 @@
---
import type { Content } from "../i18n/content";
interface Props {
c: Content["preflight"];
}
interface Props { c: Content["preflight"]; }
const { c } = Astro.props;
---
<section class="section" aria-labelledby="preflight-h">
<h2 id="preflight-h">{c.h2}</h2>
<p class="lead pf-lead">{c.lead}</p>
{/* 레이아웃 패밀리: 2열 대비. 왼쪽이 걸린 것, 오른쪽이 고친 것 */}
<section class="section preflight" aria-labelledby="pf-h">
<h2 id="pf-h" class="reveal">{c.h2}</h2>
<p class="lead pf-lead reveal">{c.lead}</p>
<ul class="log">
<div class="full log">
{
c.items.map((i) => (
<li class="entry">
<p class="caught">{i.caught}</p>
c.items.map((i, idx) => (
<article class="entry glass reveal" style={`--reveal-delay:${idx * 60}ms`}>
<p class="caught">
<span class="tick" aria-hidden="true" />
{i.caught}
</p>
<p class="fixed muted">{i.fixed}</p>
</li>
</article>
))
}
</ul>
</div>
{c.note && <p class="pf-note muted">{c.note}</p>}
<p class="pf-note muted reveal">{c.note}</p>
</section>
<style>
.pf-lead { margin-bottom: var(--space-5); }
.log { margin: 0; padding: 0; list-style: none; }
.entry {
padding-block: var(--space-3);
border-top: 1px solid var(--line);
.pf-lead { margin-block: var(--space-4) var(--space-6); }
.log {
max-width: 1180px;
margin-inline: auto;
padding-inline: var(--space-4);
display: grid;
gap: var(--space-3);
}
.entry {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
gap: var(--space-5);
padding: var(--space-4);
align-items: start;
}
.caught {
margin: 0;
font-weight: 500;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: var(--space-2);
align-items: start;
}
/* 걸린 항목을 표시하는 짧은 획. 상태 점이 아니라 획이다 */
.tick {
width: 3px;
height: 1.1em;
margin-top: 0.2em;
border-radius: var(--radius-sm);
background: var(--accent);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.caught { margin: 0 0 var(--space-1); }
.fixed { margin: 0; font-size: var(--step-0); }
.pf-note { margin-top: var(--space-4); font-size: var(--step-0); }
.pf-note { margin-top: var(--space-5); font-size: var(--step-0); }
@media (max-width: 760px) {
.entry { grid-template-columns: 1fr; gap: var(--space-2); }
}
</style>

View file

@ -1,22 +1,21 @@
---
import type { Content } from "../i18n/content";
interface Props {
c: Content["rules"];
}
interface Props { c: Content["rules"]; }
const { c } = Astro.props;
---
<section class="section" aria-labelledby="rules-h">
<h2 id="rules-h">{c.h2}</h2>
<p class="lead rules-lead">{c.lead}</p>
{/* 레이아웃 패밀리: 정의 목록. 규칙이 크고 근거가 옆에 붙는다 */}
<section class="section rules" aria-labelledby="rules-h">
<h2 id="rules-h" class="reveal">{c.h2}</h2>
<p class="lead rules-lead reveal">{c.lead}</p>
<dl class="rules">
<dl class="full rule-list">
{
c.items.map((r) => (
<div class="rule">
c.items.map((r, i) => (
<div class="rule glass reveal" style={`--reveal-delay:${i * 55}ms`}>
<dt>{r.rule}</dt>
<dd>{r.why}</dd>
<dd class="muted">{r.why}</dd>
</div>
))
}
@ -24,19 +23,30 @@ const { c } = Astro.props;
</section>
<style>
.rules-lead { margin-bottom: var(--space-5); }
.rules { margin: 0; }
.rules-lead { margin-block: var(--space-4) var(--space-6); }
.rule-list {
max-width: 1180px;
margin: 0 auto;
padding-inline: var(--space-4);
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-5) var(--space-6);
}
.rule {
padding-block: var(--space-4);
border-top: 1px solid var(--line);
display: grid;
gap: var(--space-2);
padding: var(--space-4);
}
.rule:last-child { border-bottom: 1px solid var(--line); }
dt {
font-size: var(--step-2);
font-weight: 560;
margin-bottom: var(--space-1);
letter-spacing: var(--tracking-display);
line-height: var(--leading-tight);
}
dd {
margin: 0;
color: var(--ink-muted);
dd { margin: 0; font-size: var(--step-0); }
@media (max-width: 760px) {
.rule-list { grid-template-columns: 1fr; }
}
</style>

View file

@ -0,0 +1,77 @@
---
import { Image } from "astro:assets";
import shotCoffee from "../assets/shots/shot-coffee.png";
import shotSaas from "../assets/shots/shot-saas.png";
import type { Content } from "../i18n/content";
interface Props { c: Content["showcase"]; }
const { c } = Astro.props;
const shots = [shotCoffee, shotSaas];
---
{/* 레이아웃 패밀리: Z축 캐스케이드. 두 판이 서로 겹치고 각도가 다르다 */}
<section class="section showcase" aria-labelledby="showcase-h">
<h2 id="showcase-h" class="reveal">{c.h2}</h2>
<p class="lead showcase-lead reveal">{c.lead}</p>
<div class="full cascade">
{
c.items.map((item, i) => (
<figure class="work reveal" style={`--reveal-delay:${i * 90}ms`}>
<div class="shell">
<div class="core">
<Image src={shots[i]!} alt={item.alt} widths={[480, 860, 1200]}
sizes="(max-width: 820px) 92vw, 44vw" loading="lazy" />
</div>
</div>
<figcaption>
<span class="work-caption">{item.caption}</span>
<span class="work-note muted">{item.note}</span>
</figcaption>
</figure>
))
}
</div>
</section>
<style>
.showcase-lead { margin-block: var(--space-4) var(--space-6); }
.cascade {
display: grid;
gap: var(--space-6) var(--space-5);
grid-template-columns: repeat(2, minmax(0, 1fr));
max-width: 1180px;
margin-inline: auto;
padding-inline: var(--space-4);
align-items: start;
}
/* 두 번째 판이 아래로 내려가 계단을 만든다 */
.work:nth-child(2) { margin-top: var(--space-7); }
.work { margin: 0; }
.work .shell { box-shadow: var(--glass-hi), var(--shadow-3); }
.work:nth-child(1) .shell { transform: rotate(-0.5deg); }
.work:nth-child(2) .shell { transform: rotate(0.7deg); }
.work .core { overflow: hidden; line-height: 0; }
.work :global(img) {
width: 100%; height: auto; display: block;
aspect-ratio: 16 / 11;
object-fit: cover;
object-position: top center;
}
figcaption {
display: grid;
gap: var(--space-1);
margin-top: var(--space-3);
font-size: var(--step-0);
}
.work-caption { font-weight: 500; }
@media (max-width: 820px) {
.cascade { grid-template-columns: 1fr; }
.work:nth-child(2) { margin-top: 0; }
.work .shell { transform: none; }
}
</style>

View file

@ -7,25 +7,25 @@ interface Props {
const { c } = Astro.props;
---
<section class="section" aria-labelledby="type-h">
<p class="eyebrow">{c.eyebrow}</p>
<h2 id="type-h">{c.h2}</h2>
<p class="lead type-lead">{c.lead}</p>
<p class="type-body">{c.body}</p>
<section class="section band-inverse" aria-labelledby="type-h">
<p class="eyebrow reveal">{c.eyebrow}</p>
<h2 id="type-h" class="reveal">{c.h2}</h2>
<p class="lead type-lead reveal">{c.lead}</p>
<p class="type-body reveal">{c.body}</p>
{/* 주장을 글로 하지 않고 실물로 보여준다. 두 문단의 차이는 word-break 한 줄뿐이다 */}
<div class="demo">
<div class="demo-col">
<div class="demo reveal">
<div class="demo-col glass"><div class="demo-inner">
<p class="demo-label muted mono">{c.demoLabels[0]}</p>
<p lang="ko" class="demo-text demo-default">{c.demoText}</p>
</div>
<div class="demo-col">
</div></div>
<div class="demo-col glass"><div class="demo-inner">
<p class="demo-label muted mono">{c.demoLabels[1]}</p>
<p lang="ko" class="demo-text demo-keepall">{c.demoText}</p>
</div>
</div></div>
</div>
<ul class="type-rules">
<ul class="type-rules reveal">
{c.rules.map((r) => (<li>{r}</li>))}
</ul>
</section>
@ -40,11 +40,7 @@ const { c } = Astro.props;
grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
margin-bottom: var(--space-5);
}
.demo-col {
border: 1px solid var(--line);
border-radius: var(--radius-md);
padding: var(--space-3);
}
.demo-inner { padding: var(--space-4); }
.demo-label {
font-size: var(--mono-size);
letter-spacing: var(--tracking-label);