feat: add Component Inventory page — primitives section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-18 15:12:28 +01:00
parent 4b3599c70f
commit 61391621b3
5 changed files with 791 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import { Link } from 'react-router-dom'
import styles from './Inventory.module.css'
import { PrimitivesSection } from './sections/PrimitivesSection'
const NAV_ITEMS = [
{ label: 'Primitives', href: '#primitives' },
{ label: 'Composites', href: '#composites' },
{ label: 'Layout', href: '#layout' },
]
export function Inventory() {
return (
<div className={styles.page}>
<header className={styles.header}>
<h1 className={styles.headerTitle}>Component Inventory</h1>
<Link to="/" className={styles.backLink}> Back to app</Link>
</header>
<div className={styles.body}>
<nav className={styles.nav} aria-label="Component categories">
<div className={styles.navSection}>
<span className={styles.navLabel}>Categories</span>
{NAV_ITEMS.map((item) => (
<a key={item.href} href={item.href} className={styles.navLink}>
{item.label}
</a>
))}
</div>
</nav>
<main className={styles.content}>
<PrimitivesSection />
</main>
</div>
</div>
)
}