Grid
Diese Quelle ist durch die unten verlinkten vorhandenen Beispiele dokumentiert.
src/components/Grid.astroVerwendung
- Panel owns the surface; PanelHeader and PanelFooter own window chrome. Do not nest decorative surfaces.
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
- Existing composed portfolio example; reuse its building blocks rather than copying a whole page.
Beispiele
- panel
<Section flush> <Container size="page" flush> <Grid cols={2}> <Panel> <PanelHeader slot="header" path={['Home', t(locale, 'home.proofPath')]} meta={t(locale, 'home.proofCount')} dots /> <div class="p-6 text-sm text-ink-muted">{t(locale, 'ds.cardBody')}</div> </Panel> <Panel> <PanelHeader slot="header" path={['Work', t(locale, 'work.path')]} meta={t(locale, 'work.count')} menu={{label: t(locale, 'ds.menuLabel'), items: [{label: t(locale, 'ds.menuAll'), href: '/work/'}]}} /> <div class="p-6 text-sm text-ink-muted">{t(locale, 'ds.cardBody')}</div> </Panel> </Grid> </Container> </Section> - stat-card
<Grid cols={3}><StatCard value={t(locale, 'stat.1.v')} label={t(locale, 'stat.1.k')} /><StatCard value={t(locale, 'stat.2.v')} label={t(locale, 'stat.2.k')} /><StatCard value={proof[1].value} label={proof[1].title} tag={proof[1].tag} /></Grid> - work
<Panel><PanelHeader slot="header" path={['Work', t(locale, 'work.path')]} meta={t(locale, 'work.count')} />{workItems(locale).map((w) => <WorkRow {...w} />)}</Panel> <Grid cols={3}>{workItems(locale).map((w) => <WorkCard title={w.title} desc={w.desc} meta={w.meta} glyph={w.glyph} href={w.href} />)}</Grid> - system-map
<Grid cols={2}><SystemMap nodes={mapNodes} edges={mapEdges} caption={t(locale, 'map.caption')} /></Grid> - file-card
<Grid cols={2}> <FileCard href={t(locale, 'nav.cvHref')} title={t(locale, 'file.cvTitle')} meta={t(locale, 'file.cvMeta')} /> <FileCard href={t(locale, 'file.cvWordHref')} title={t(locale, 'file.cvTitle')} meta={t(locale, 'file.cvWordMeta')} icon="file" /> </Grid> - composition
<CompositionD locale={locale} />
API
Mit dem TypeScript-Parser aus der Quelle gelesen. Vererbte und importierte Typen bleiben Referenzen; verbindlich ist die Implementierung.
interface Props { cols?: 1 | 2 | 3 | 4; class?: string }Astro.props
Bindings und Defaults aus der Quelle; daraus werden keine Typen erfunden.
cols = 2class = ''
Slots: default
Quellnutzung
Nur Doku / Vorschau
Das ist statische Quellevidenz. Ein erreichbares Modul kann bedingte oder ungenutzte Zweige enthalten. Externe Verbraucher und gestagte statische Seiten liegen außerhalb des Scans. Kein Status ist eine Löschfreigabe.
Dokumentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/LayoutDemos.astro
- src/components/Grid.astro
Verbraucher im Quellcode
Direkte statische, dynamische und Typimporte. Importe beweisen weder einen gerenderten Zweig noch die Veröffentlichung eines Vorschlags.