/** * 배리에이션 와이어프레임 썸네일. * * 사장님은 "InfoTable" 이라는 이름으로 고르지 않는다 — 모양을 보고 고른다. * 그래서 배리에이션 카드에는 반드시 그림이 붙고, 그 그림은 여기 한 곳에서만 그린다. */ import type {ThumbKey} from './types'; const BOX = 'fill-stone-300'; const LINE = 'fill-stone-200'; const ACCENT = 'fill-stone-500'; /** 40×28 좌표계 위에 회색 블록으로 레이아웃 얼개만 그린다. */ const SHAPES: Record = { fullbleed: ( <> ), split: ( <> ), stack: ( <> ), centered: ( <> ), grid: ( <> {[2, 11, 20, 29].map((x) => [4, 15].map((y) => ( )), )} ), masonry: ( <> ), carousel: ( <> ), list: ( <> {[3, 11, 19].map((y) => ( ))} ), table: ( <> {[9, 14, 19, 24].map((y) => ( ))} ), cards: ( <> {[2, 21].map((x) => [3, 15].map((y) => ( )), )} ), accordion: ( <> ), 'two-column': ( <> {[2, 21].map((x) => ( ))} ), banner: ( <> ), form: ( <> ), timeline: ( <> {[4, 12, 20].map((y) => ( ))} ), compact: ( <> ), }; export function VariantThumb({thumb, className}: {thumb: ThumbKey; className?: string}) { return ( {SHAPES[thumb]} ); }