/** * Design System Hub * Central landing page for all interactive design system demonstrations * Access: /dev */ import type { Metadata } from 'next'; import Link from 'next/link'; import { Palette, Layout, Ruler, FileText, BookOpen, ArrowRight, Sparkles } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; export const metadata: Metadata = { title: 'Design System Hub | FastNext Template', description: 'Interactive design system demonstrations with live examples - explore components, layouts, spacing, and forms built with shadcn/ui and Tailwind CSS', }; const demoPages = [ { title: 'Components', description: 'Explore all shadcn/ui components with live examples and copy-paste code', href: '/dev/components', icon: Palette, status: 'enhanced' as const, highlights: ['All variants', 'Interactive demos', 'Copy-paste code'], }, { title: 'Layouts', description: 'Essential layout patterns for pages, dashboards, forms, and content', href: '/dev/layouts', icon: Layout, status: 'new' as const, highlights: ['Grid vs Flex', 'Responsive patterns', 'Before/after examples'], }, { title: 'Spacing', description: 'Visual demonstrations of spacing philosophy and best practices', href: '/dev/spacing', icon: Ruler, status: 'new' as const, highlights: ['Parent-controlled', 'Gap vs Space-y', 'Anti-patterns'], }, { title: 'Forms', description: 'Complete form implementations with validation and error handling', href: '/dev/forms', icon: FileText, status: 'new' as const, highlights: ['react-hook-form', 'Zod validation', 'Loading states'], }, ]; const documentationLinks = [ { title: 'Quick Start', description: '5-minute crash course', href: '/dev/docs/design-system/00-quick-start', }, { title: 'Complete Documentation', description: 'Full design system guide', href: '/dev/docs', }, { title: 'AI Guidelines', description: 'Rules for AI code generation', href: '/dev/docs/design-system/08-ai-guidelines', }, { title: 'Quick Reference', description: 'Cheat sheet for lookups', href: '/dev/docs/design-system/99-reference', }, ]; export default function DesignSystemHub() { return (
{/* Hero Section */}

Design System Hub

Interactive demonstrations, live examples, and comprehensive documentation for the FastNext design system. Built with shadcn/ui + Tailwind CSS 4.

{/* Main Content */}
{/* Demo Pages Grid */}

Interactive Demonstrations

Explore live examples with copy-paste code snippets

{demoPages.map((page) => { const Icon = page.icon; return (
{page.status === 'new' && ( New )} {page.status === 'enhanced' && Enhanced}
{page.title} {page.description}
{/* Highlights */}
{page.highlights.map((highlight) => ( {highlight} ))}
{/* CTA */}
); })}
{/* Documentation Links */}

Documentation

Comprehensive guides and reference materials

{documentationLinks.map((link) => ( {link.title} {link.description} ))}
{/* Key Features */}

Key Features

🎨 OKLCH Color System Perceptually uniform colors with semantic tokens for consistent theming 📏 Parent-Controlled Spacing Consistent spacing philosophy using gap and space-y utilities ♿ WCAG AA Compliant Full accessibility support with keyboard navigation and screen readers 📱 Mobile-First Responsive Tailwind breakpoints with progressive enhancement 🤖 AI-Optimized Dedicated guidelines for Claude Code, Cursor, and GitHub Copilot 🚀 Production-Ready Battle-tested patterns with real-world examples
); }