2026-03-18 15:12:28 +01:00
|
|
|
import { Link } from 'react-router-dom'
|
|
|
|
|
import styles from './Inventory.module.css'
|
|
|
|
|
import { PrimitivesSection } from './sections/PrimitivesSection'
|
2026-03-18 15:17:40 +01:00
|
|
|
import { CompositesSection } from './sections/CompositesSection'
|
|
|
|
|
import { LayoutSection } from './sections/LayoutSection'
|
2026-03-18 15:12:28 +01:00
|
|
|
|
|
|
|
|
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 />
|
2026-03-18 15:17:40 +01:00
|
|
|
<CompositesSection />
|
|
|
|
|
<LayoutSection />
|
2026-03-18 15:12:28 +01:00
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|