import Link from 'next/link'; import type { ShowcaseSlot } from '@/lib/showcase'; import MockWindow from '@/app/components/mock/MockWindow'; import { MOCK_REGISTRY } from '@/app/components/mock/registry'; interface Props { slot: ShowcaseSlot; size?: 'feature' | 'standard'; index: number; } // 라이트 쇼케이스 카드 — surface-alt 스테이지 위에 흰 MockWindow가 떠 있는 "framed screen". // 서버 컴포넌트 (캔버스/시드/그래디언트 전량 제거). export default function ShowcaseCard({ slot, size = 'standard' }: Props) { const Mock = MOCK_REGISTRY[slot.mock]; const isFeature = size === 'feature'; const isLink = Boolean(slot.href); const body = (
{slot.label}

{slot.title}

{slot.desc}

{isLink && ( 데모 보기 )}
); if (isLink) { return ( {body} ); } return body; }