디자인 SSOT 를 세우고 3D 를 배경 재질로 되돌린다
지적받은 것: 모바일 마진·패딩, 폰트 웨이트, 버튼 스타일 불일치, SSOT,
스크롤바, 모바일 메뉴, 그리고 3D 를 왜 상자에 넣었는지.
3D 의 역할을 잘못 잡았다
lusion.co 의 "3D 는 액자 안"은 3D 자체가 상품일 때의 규칙이다.
우리는 절차를 파는데 액자에 넣을 상품이 없어 "저 상자는 뭐냐"가 됐고,
의미를 게이트 판독기가 자막으로 설명하고 있었다.
이 씬의 역할은 재질이다. 배경으로 되돌리고 값을 전부 낮췄다 —
테두리 광 0.85->0.42, 알파 0.72->0.34, UV 경계 0.05->0.17, 이동 60%
ResizeObserver 로 캔버스를 따라가게 했다. window.resize 만 듣는 동안
히어로 높이 변화를 놓쳐 배경이 화면의 3분의 2만 덮었다
SSOT
웨이트 6종(400/500/560/600/620/660) -> 3종. 셋은 토큰에 없던 값이었다
.btn + btn-solid/btn-quiet. 두 버튼이 높이 36 vs 44, 패딩 16 vs 8,
테두리 1px vs 0, 웨이트 400 vs 500 이었다
--header-h. 간격을 clamp 로 바꾸자 관계가 끊겨 h1 이 헤더 뒤로 들어갔다
--space-5~8 과 --gutter 를 clamp 로. 고정이면 모바일 여백이 화면의 26%
scrollbar-color 지정
모바일
좌우 여백 24 -> 32px, 섹션 상하 112 -> 56px
헤더에 섹션 앵커 4개. 900px 미만은 details 기반 메뉴(JS 0바이트)
패럴랙스는 섹션마다 다른 말을 한다
히어로 글자 상승 / 배경 하강 — 반대 방향이라야 시차가 보인다
파이프라인 단계명 고정, 산출물만 지연 — 인과
재료 타일이 서로 다른 깊이 — 표면은 한 겹이 아니다
프리플라이트 뒤 항목일수록 늦게 — 로그는 흐른다
수치 없음. 의도적 정지 — 계기판의 바늘은 떨지 않는다
스킬
three.md §0-A 를 역할별로 갈랐다. "액자 안"만 적어둔 것이 잘못된
일반화였고 내가 거기 그대로 걸렸다. 재질일 때의 값 교정을 실측으로 남김
tokens.md 웨이트·컨트롤·헤더 높이·반응형 간격 — 토큰이 아예 없던 네 축
motion.md 섹션별 패럴랙스 배정표. 움직이지 않는 것도 결정이다
390px 실렌더: 가로 스크롤 0, 대비 실패 0, 웨이트 3종, radius 2종. 테스트 22개 통과
This commit is contained in:
parent
4b853355e3
commit
9c9ab2de7e
18 changed files with 606 additions and 231 deletions
|
|
@ -12,7 +12,7 @@ const { command, copyLabel, copiedLabel, note } = Astro.props;
|
|||
<div class="cmd-shell frame">
|
||||
<div class="cmd">
|
||||
<code class="cmd-text">{command}</code>
|
||||
<button type="button" class="cmd-copy" data-copy={command} data-copied={copiedLabel}>
|
||||
<button type="button" class="btn btn-solid 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">
|
||||
|
|
@ -46,29 +46,13 @@ const { command, copyLabel, copiedLabel, note } = Astro.props;
|
|||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
/* 버튼 안에 아이콘이 자기 원을 갖는다 */
|
||||
/* 높이·패딩·웨이트·전환은 .btn 이 정한다. 여기서는 이 자리에만
|
||||
필요한 것만 더한다 — 아이콘이 오른쪽 안쪽에 붙어야 해서 그쪽만 좁다 */
|
||||
.cmd-copy {
|
||||
flex: 0 0 auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
min-height: 44px;
|
||||
padding: 0 var(--space-2) 0 var(--space-3);
|
||||
border: 0;
|
||||
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:
|
||||
transform var(--dur-instant) var(--ease-out),
|
||||
filter var(--dur-instant) var(--ease-out);
|
||||
padding-right: var(--space-2);
|
||||
font-family: inherit;
|
||||
}
|
||||
.cmd-copy:hover { filter: brightness(1.08); }
|
||||
.cmd-copy:active { transform: scale(0.975); }
|
||||
|
||||
.cmd-copy-icon {
|
||||
display: inline-flex;
|
||||
|
|
|
|||
|
|
@ -10,17 +10,28 @@ const { c, ui } = Astro.props;
|
|||
---
|
||||
|
||||
{/*
|
||||
구조는 R2(lusion.co) 실측에서 왔다.
|
||||
3D 를 가장 잘 쓰는 스튜디오가 텍스트를 3D 위에 얹지 않는다.
|
||||
액자 안은 3D, 액자 밖은 글자. 그래서 대비 문제가 생기지 않고
|
||||
h1 이 36px 이어도 히어로가 압도적이다 — 힘이 타이포가 아니라 물체에서 나온다.
|
||||
3D 는 배경이다. 액자에 가두지 않는다.
|
||||
|
||||
이전 판은 정반대였다. 캔버스를 배경 전체에 깔고 그 위에 7rem 짜리
|
||||
헤드라인을 얹었다. 판 여섯 장은 흐린 얼룩이 됐고, 글자는 대비를
|
||||
얻으려고 글로우를 깔아야 했다. 둘 다 소리치다 둘 다 죽었다.
|
||||
한 번 액자 안에 넣었다가 되돌렸다. lusion.co 에서 가져온 "3D 는 액자 안,
|
||||
텍스트는 액자 밖"은 3D 자체가 상품일 때의 규칙이다. 그 스튜디오는 3D 를
|
||||
팔기 때문에 액자가 쇼케이스 프레임으로 정당하다.
|
||||
배경으로 쓸 때는 규칙이 다르다 — 주인공이 아니라 공간을 만드는 재질이고,
|
||||
그래서 대비를 낮추고 글자에 자리를 내준다.
|
||||
|
||||
처음 배경으로 깔았을 때 실패한 이유는 배치가 아니라 둘이었다.
|
||||
판이 정면이라 프레넬이 0 이어서 아무것도 안 보였고(three.md §2),
|
||||
헤드라인이 112px 이라 그나마 보이는 것과도 싸웠다. 둘 다 고쳤다.
|
||||
*/}
|
||||
<section class="full hero">
|
||||
<div class="hero-head">
|
||||
<div class="hero-bg" aria-hidden="true">
|
||||
{/* WebGL 이 없으면 이 그라디언트가 폴백이 아니라 결과물이다 */}
|
||||
<div class="hero-fallback"></div>
|
||||
<canvas id="hero-canvas" class="hero-canvas"></canvas>
|
||||
{/* 글자가 앉는 자리만 눌러준다. 배경이 균일하게 밝으면 본문 대비가 무너진다 */}
|
||||
<div class="hero-scrim"></div>
|
||||
</div>
|
||||
|
||||
<div class="hero-grid">
|
||||
<h1 class="hero-title">{c.h1}</h1>
|
||||
|
||||
<div class="hero-aside">
|
||||
|
|
@ -31,71 +42,97 @@ const { c, ui } = Astro.props;
|
|||
copiedLabel={ui.copied}
|
||||
note={c.installNote}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<figure class="hero-stage">
|
||||
<div class="stage-frame">
|
||||
{/* WebGL 이 없으면 이 그라디언트가 그대로 결과물이다 */}
|
||||
<div class="stage-fallback" aria-hidden="true"></div>
|
||||
<canvas id="hero-canvas" class="stage-canvas" aria-label={c.stage.alt} role="img"></canvas>
|
||||
|
||||
{/* 계기판이니 판정을 읽어준다. 3D 가 장식이 아니라 상태 표시가 된다 */}
|
||||
<p class="stage-readout" aria-hidden="true">
|
||||
<span class="ro-key">{c.stage.gate}</span>
|
||||
<span class="ro-val" id="ro-gate">01</span>
|
||||
<span class="ro-sep">/</span>
|
||||
<span class="ro-total">06</span>
|
||||
<span class="ro-state" id="ro-state">{c.stage.pass}</span>
|
||||
<p class="hero-links">
|
||||
{c.links.map((l) => <a class="link-grow" href={l.href}>{l.label}</a>)}
|
||||
</p>
|
||||
</div>
|
||||
<figcaption>
|
||||
<span class="cap-text">{c.stage.caption}</span>
|
||||
<span class="cap-links">
|
||||
{c.links.map((l) => <a class="link-grow" href={l.href}>{l.label}</a>)}
|
||||
</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
grid-column: full;
|
||||
padding-block: calc(var(--space-6) + var(--space-4)) var(--space-7);
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
overflow: clip;
|
||||
min-height: min(88dvh, 52rem);
|
||||
display: grid;
|
||||
align-content: center;
|
||||
padding-block: calc(var(--header-h) + var(--space-6)) var(--space-7);
|
||||
}
|
||||
|
||||
/* ---- 액자 밖: 글자 -------------------------------------- */
|
||||
.hero-head {
|
||||
/* ---- 배경 ------------------------------------------------ */
|
||||
.hero-bg {
|
||||
position: absolute;
|
||||
/* 패럴랙스로 내려가는 만큼 위아래에 여유를 둔다.
|
||||
inset: 0 이면 배경이 내려간 자리에 검은 띠가 생긴다 */
|
||||
inset: -4rem 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
/* 아래로 갈수록 지운다. black 은 색이 아니라 마스크 알파다.
|
||||
없으면 히어로 하단에서 배경이 가로선으로
|
||||
뚝 끊겨 다음 섹션과 두 장의 종이처럼 보인다. */
|
||||
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 96%);
|
||||
mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 96%);
|
||||
}
|
||||
.hero-fallback,
|
||||
.hero-canvas,
|
||||
.hero-scrim {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.hero-fallback {
|
||||
background:
|
||||
radial-gradient(52% 62% at 24% 26%,
|
||||
color-mix(in oklab, var(--accent) 30%, transparent), transparent 68%),
|
||||
radial-gradient(46% 58% at 82% 62%,
|
||||
color-mix(in oklab, var(--glow-2) 26%, transparent), transparent 66%);
|
||||
}
|
||||
.hero-canvas { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
|
||||
.hero-canvas.is-live { opacity: 1; }
|
||||
|
||||
/* 왼쪽 위(글자가 앉는 쪽)를 눌러 대비를 만든다. 오른쪽 아래는 열어둔다 */
|
||||
.hero-scrim {
|
||||
background:
|
||||
linear-gradient(100deg,
|
||||
color-mix(in oklab, var(--surface) 88%, transparent) 0%,
|
||||
color-mix(in oklab, var(--surface) 62%, transparent) 42%,
|
||||
transparent 78%),
|
||||
linear-gradient(to bottom,
|
||||
color-mix(in oklab, var(--surface) 72%, transparent) 0%,
|
||||
transparent 28%);
|
||||
}
|
||||
|
||||
/* ---- 글자 ------------------------------------------------ */
|
||||
.hero-grid {
|
||||
max-width: 1180px;
|
||||
width: 100%;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
|
||||
gap: var(--space-5) var(--space-6);
|
||||
/* 왼쪽 열은 h1 하나(2줄), 오른쪽은 셋이라 높이가 100px 차이 난다.
|
||||
start 나 end 로 붙이면 그 차이가 한쪽에 몰려 구멍으로 보인다.
|
||||
가운데로 두면 위아래로 갈려 여백으로 읽힌다. */
|
||||
align-items: center;
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
/* 7rem 을 버렸다. 액자가 주인공이면 헤드라인은 물러난다.
|
||||
두 줄을 넘기지 않는 폭이다(카운트 규칙: 히어로 헤드라인 <= 2줄) */
|
||||
font-size: clamp(var(--step-2), 1.1rem + 2.4vw, var(--step-4));
|
||||
font-size: clamp(var(--step-2), 1.1rem + 2.6vw, var(--step-4));
|
||||
line-height: 1.12;
|
||||
letter-spacing: var(--tracking-display);
|
||||
max-width: 18ch;
|
||||
max-width: 16ch;
|
||||
margin: 0;
|
||||
}
|
||||
[lang="en"] .hero-title { max-width: 20ch; line-height: 1.04; }
|
||||
[lang="en"] .hero-title { max-width: 18ch; line-height: 1.04; }
|
||||
|
||||
.hero-aside { display: grid; gap: var(--space-3); align-content: start; }
|
||||
.hero-aside { display: grid; gap: var(--space-3); align-content: center; }
|
||||
.hero-lead {
|
||||
margin: 0;
|
||||
max-width: 30em;
|
||||
color: var(--ink);
|
||||
opacity: 0.82;
|
||||
opacity: 0.86;
|
||||
}
|
||||
.hero-links {
|
||||
display: flex;
|
||||
|
|
@ -105,116 +142,29 @@ const { c, ui } = Astro.props;
|
|||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
/* ---- 액자 안: 물체 -------------------------------------- */
|
||||
.hero-stage {
|
||||
margin: 0;
|
||||
max-width: 1400px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
}
|
||||
|
||||
.stage-frame {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 6;
|
||||
border: 1px solid var(--glass-edge);
|
||||
border-radius: var(--radius-frame);
|
||||
background: var(--surface-sunken);
|
||||
box-shadow: var(--glass-hi), var(--shadow-3);
|
||||
overflow: clip;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.stage-fallback,
|
||||
.stage-canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.stage-fallback {
|
||||
background:
|
||||
radial-gradient(58% 76% at 26% 22%,
|
||||
color-mix(in oklab, var(--accent) 34%, transparent), transparent 68%),
|
||||
radial-gradient(52% 70% at 80% 64%,
|
||||
color-mix(in oklab, var(--glow-2) 30%, transparent), transparent 66%);
|
||||
}
|
||||
.stage-canvas { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
|
||||
.stage-canvas.is-live { opacity: 1; }
|
||||
|
||||
.stage-readout {
|
||||
position: absolute;
|
||||
left: var(--space-3);
|
||||
bottom: var(--space-3);
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.5ch;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: var(--tracking-label);
|
||||
color: var(--ink);
|
||||
/* 캔버스 위에 얹는 유일한 글자다. 판독 가능해야 하므로 바탕을 깐다 */
|
||||
padding: 0.35em 0.7em;
|
||||
border-radius: var(--radius-sm);
|
||||
background: color-mix(in oklab, var(--surface-sunken) 82%, transparent);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.ro-key { color: var(--ink-muted); }
|
||||
.ro-val { color: var(--accent); }
|
||||
.ro-sep, .ro-total { color: var(--ink-muted); }
|
||||
.ro-state {
|
||||
margin-left: 0.8ch;
|
||||
padding-left: 0.8ch;
|
||||
border-left: 1px solid var(--line-strong);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
figcaption {
|
||||
margin-top: var(--space-2);
|
||||
font-size: var(--step-0);
|
||||
color: var(--ink-muted);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3) var(--space-5);
|
||||
}
|
||||
.cap-text { max-width: var(--measure); }
|
||||
.cap-links { display: flex; gap: var(--space-4); flex: none; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.hero-head { grid-template-columns: 1fr; gap: var(--space-5); }
|
||||
/* 4/3 이면 320px 에서 액자가 193px, 화면의 27% 다. 데스크톱이 56% 인데
|
||||
모바일에서만 3D 가 조연이 될 이유가 없다. 정사각으로 36% 를 준다. */
|
||||
.stage-frame { aspect-ratio: 1 / 1; }
|
||||
.hero { min-height: min(94dvh, 46rem); }
|
||||
.hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
|
||||
.hero-title { max-width: 100%; }
|
||||
/* 세로 화면에서는 글자가 위쪽 절반을 다 쓴다. 가로 방향 스크림으로는
|
||||
덮이지 않으므로 위에서 아래로 누른다 */
|
||||
.hero-scrim {
|
||||
background: linear-gradient(to bottom,
|
||||
color-mix(in oklab, var(--surface) 86%, transparent) 0%,
|
||||
color-mix(in oklab, var(--surface) 58%, transparent) 52%,
|
||||
transparent 86%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
// 판 여섯 장이 깊이 축에 서 있고 카메라가 스크롤에 맞춰 통과한다.
|
||||
// 유리판이 느리게 흐르며 공간을 만든다. 배경이므로 스스로 설명하지 않는다.
|
||||
// 굴절은 렌더 타겟 한 장으로 만든다 — transmission 재질보다 훨씬 싸다.
|
||||
import { mountHeroScene } from "../lib/hero-scene";
|
||||
|
||||
const canvas = document.getElementById("hero-canvas") as HTMLCanvasElement | null;
|
||||
const gateEl = document.getElementById("ro-gate");
|
||||
const stateEl = document.getElementById("ro-state");
|
||||
const passWord = stateEl?.textContent ?? "";
|
||||
|
||||
if (canvas) {
|
||||
let lastGate = -1;
|
||||
mountHeroScene({
|
||||
canvas,
|
||||
accentVar: "--accent",
|
||||
glowVar: "--glow-2",
|
||||
// 프레임마다 DOM 을 쓰지 않는다. 값이 바뀔 때만 쓴다.
|
||||
onGate(index, total) {
|
||||
if (index === lastGate) return;
|
||||
lastGate = index;
|
||||
if (gateEl) gateEl.textContent = String(index + 1).padStart(2, "0");
|
||||
if (stateEl) stateEl.textContent = index + 1 >= total ? passWord : "···";
|
||||
},
|
||||
});
|
||||
mountHeroScene({ canvas, accentVar: "--accent", glowVar: "--glow-2" });
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const { c, ui } = Astro.props;
|
|||
---
|
||||
|
||||
|
||||
<section class="full install" aria-labelledby="install-h">
|
||||
<section id="install" class="full install" aria-labelledby="install-h">
|
||||
<div class="install-grid">
|
||||
<div class="install-head">
|
||||
<h2 id="install-h">{c.h2}</h2>
|
||||
|
|
@ -46,7 +46,7 @@ const { c, ui } = Astro.props;
|
|||
.install-grid {
|
||||
max-width: 1180px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
|
|
@ -63,7 +63,7 @@ const { c, ui } = Astro.props;
|
|||
padding-block: var(--space-2);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.t-name { font-weight: 500; }
|
||||
.t-name { font-weight: var(--weight-medium); }
|
||||
.t-path { font-size: var(--mono-size); }
|
||||
|
||||
.cmds { margin: 0; display: grid; gap: var(--space-3); }
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const { c } = Astro.props;
|
|||
<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="full stage glass par-slow">
|
||||
<div class="stage-fallback" aria-hidden="true"></div>
|
||||
{/* GPU 가 만드는 재질. WebGL 이 없으면 위 그라디언트가 그대로 결과물이다 */}
|
||||
<canvas id="mat-canvas" class="stage-canvas" aria-hidden="true"></canvas>
|
||||
|
|
@ -22,7 +22,7 @@ const { c } = Astro.props;
|
|||
<ul class="tiles">
|
||||
{
|
||||
c.tiles.map((t, i) => (
|
||||
<li class="tile reveal" style={`--reveal-delay:${i * 80}ms`}>
|
||||
<li class:list={["tile", "reveal", i % 2 === 0 ? "par-slow" : "par-fast"]} style={`--reveal-delay:${i * 80}ms`}>
|
||||
<div class={`swatch swatch-${t.id}`} aria-hidden="true"></div>
|
||||
<h3 class="tile-name">{t.name}</h3>
|
||||
<p class="tile-how muted">{t.how}</p>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,14 @@ const rest = c.items.filter((m) => !m.feature);
|
|||
카드에 담지 않는다. 숫자가 크기와 정렬선으로 스스로 위계를 만든다.
|
||||
카드는 elevation 이 진짜 위계를 나를 때만 쓴다는 규칙을 여기서 지킨다.
|
||||
*/}
|
||||
<section class="section metrics" aria-labelledby="metrics-h">
|
||||
{/*
|
||||
이 섹션에는 패럴랙스를 넣지 않는다. 빠뜨린 것이 아니라 결정이다.
|
||||
|
||||
여기가 이 페이지의 수치를 공개하는 자리다. 숫자가 스크롤에 따라
|
||||
흔들리면 그 값도 흔들리는 것처럼 읽힌다. 계기판의 바늘은 떨지 않는다.
|
||||
움직임이 의미를 만드는 자리가 있으면, 움직이지 않는 것이 의미인 자리도 있다.
|
||||
*/}
|
||||
<section id="metrics" class="section metrics" aria-labelledby="metrics-h">
|
||||
<div class="head">
|
||||
<p class="eyebrow reveal">{c.eyebrow}</p>
|
||||
<h2 id="metrics-h" class="reveal">{c.h2}</h2>
|
||||
|
|
@ -52,7 +59,7 @@ const rest = c.items.filter((m) => !m.feature);
|
|||
.figures {
|
||||
max-width: 1180px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
display: grid;
|
||||
/* 비대칭. 큰 수치 둘이 왼쪽을 차지하고 나머지는 오른쪽 여백에 흐른다 */
|
||||
grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
|
||||
|
|
@ -69,11 +76,11 @@ const rest = c.items.filter((m) => !m.feature);
|
|||
.fig-value {
|
||||
font-size: clamp(3.4rem, 2rem + 5vw, 6rem);
|
||||
line-height: 0.92;
|
||||
font-weight: 620;
|
||||
font-weight: var(--weight-strong);
|
||||
letter-spacing: -0.04em;
|
||||
color: var(--accent);
|
||||
}
|
||||
.fig-label { font-size: var(--step-1); font-weight: 500; margin-top: var(--space-2); }
|
||||
.fig-label { font-size: var(--step-1); font-weight: var(--weight-medium); margin-top: var(--space-2); }
|
||||
.fig-note { font-size: var(--step-0); max-width: 22em; }
|
||||
|
||||
/* 나머지 수치는 오른쪽 열에서 두 칸을 세로로 이어 쓴다 */
|
||||
|
|
@ -93,7 +100,7 @@ const rest = c.items.filter((m) => !m.feature);
|
|||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.row:last-child { border-bottom: 1px solid var(--line); }
|
||||
dt { font-weight: 500; }
|
||||
dt { font-weight: var(--weight-medium); }
|
||||
dd { margin: 0; }
|
||||
dd.nums { font-size: var(--step-1); color: var(--accent); justify-self: end; }
|
||||
.row-note {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const { c } = Astro.props;
|
|||
③ 의미 — <ol role="list"> — 화면에 번호는 없지만 보조기술은 "6개 중 n번째"로 읽는다
|
||||
role="list" 는 list-style:none 일 때 Safari/VoiceOver 가 목록 의미를 버리는 것을 되돌린다
|
||||
*/}
|
||||
<section class="section" aria-labelledby="pipeline-h">
|
||||
<section id="pipeline" class="section" aria-labelledby="pipeline-h">
|
||||
<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>
|
||||
|
|
@ -33,7 +33,7 @@ const { c } = Astro.props;
|
|||
<h3 class="stop-name">{s.name}</h3>
|
||||
<p class="stop-does">{s.does}</p>
|
||||
</div>
|
||||
<p class:list={["stop-becomes", { mono: s.mono }]}>{s.becomes}</p>
|
||||
<p class:list={["stop-becomes", "par-lag", { mono: s.mono }]}>{s.becomes}</p>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ const { c } = Astro.props;
|
|||
.spine-wrap {
|
||||
max-width: 1180px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
}
|
||||
|
||||
.brief { margin-bottom: var(--space-2); }
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const { c } = Astro.props;
|
|||
<div class="full log">
|
||||
{
|
||||
c.items.map((i, idx) => (
|
||||
<article class="entry reveal" style={`--reveal-delay:${idx * 45}ms`}>
|
||||
<article class="entry reveal par-lag" style={`--reveal-delay:${idx * 45}ms; --par-lag:${6 + idx * 2}px`}>
|
||||
<p class="caught">{i.caught}</p>
|
||||
<p class="fixed muted">{i.fixed}</p>
|
||||
</article>
|
||||
|
|
@ -34,7 +34,7 @@ const { c } = Astro.props;
|
|||
.log {
|
||||
max-width: 1180px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
display: grid;
|
||||
}
|
||||
.entry {
|
||||
|
|
@ -69,7 +69,7 @@ const { c } = Astro.props;
|
|||
background: var(--accent);
|
||||
}
|
||||
|
||||
.caught { margin: 0; font-weight: 500; }
|
||||
.caught { margin: 0; font-weight: var(--weight-medium); }
|
||||
.fixed { margin: 0; font-size: var(--step-0); }
|
||||
.pf-note { margin-top: var(--space-6); font-size: var(--step-0); max-width: 34em; }
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ const { c } = Astro.props;
|
|||
.rule-list {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
}
|
||||
.rule {
|
||||
display: grid;
|
||||
|
|
@ -49,7 +49,7 @@ const { c } = Astro.props;
|
|||
|
||||
dt {
|
||||
font-size: var(--step-2);
|
||||
font-weight: 560;
|
||||
font-weight: var(--weight-medium);
|
||||
letter-spacing: var(--tracking-display);
|
||||
line-height: var(--leading-tight);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const shots = [shotCoffee, shotSaas];
|
|||
---
|
||||
|
||||
{/* 레이아웃 패밀리: Z축 캐스케이드. 두 판이 서로 겹치고 각도가 다르다 */}
|
||||
<section class="section showcase" aria-labelledby="showcase-h">
|
||||
<section id="showcase" 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>
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ const shots = [shotCoffee, shotSaas];
|
|||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
max-width: 1180px;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--space-4);
|
||||
padding-inline: var(--gutter);
|
||||
align-items: start;
|
||||
}
|
||||
/* 두 번째 판이 아래로 내려가 계단을 만든다 */
|
||||
|
|
@ -65,7 +65,7 @@ const shots = [shotCoffee, shotSaas];
|
|||
margin-top: var(--space-3);
|
||||
font-size: var(--step-0);
|
||||
}
|
||||
.work-caption { font-weight: 500; }
|
||||
.work-caption { font-weight: var(--weight-medium); }
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.cascade { grid-template-columns: 1fr; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue