MainPageDemos
This source is documented by the existing examples linked below.
src/components/ds/MainPageDemos.astroUsage contract
- 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.
- 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.
Examples
- main-surface
<Surface root="Home" first={ui.work}> <Section section="demo-a" title={ui.work} count="03"><Fragment slot="meta"><Keycap>J</Keycap><Keycap>K</Keycap><em>{ui.navigate}</em></Fragment><RowList items={rows}/></Section> <Section section="demo-b" title={ui.about}><p class="ds-main__pad">{en?'One header for the whole surface; it names the section one is reading.':'Ein Kopf für die ganze Fläche; er nennt den Abschnitt, in dem man gerade liest.'}</p></Section> </Surface> - main-rows
<Section section="demo-rows" title={ui.cases} count="03"><RowList items={rows}/></Section> - main-built
<BuiltWith locale={locale}/> - main-cmd
<div class="sx-cmd sx-cmd--demo" data-demo-static> <div class="sx-cmd__in"> <p class="sx-cmd__top"><Zeichen icon="search" size={16}/><span class="sx-cmd__q">{ui.cmdPlaceholder}</span><Keycap>Esc</Keycap></p> <ul class="sx-cmd__list">{places.slice(0,6).map((p,i)=><li aria-selected={i===0?'true':'false'}><span class="sx-cmd__g">{p.g}</span><span class="sx-cmd__t">{p.t}</span><span class="sx-cmd__s">{p.s}</span></li>)}</ul> <p class="sx-cmd__foot"><span><Keycap>↑</Keycap><Keycap>↓</Keycap>{ui.choose}</span><span><Keycap title="Enter">↵</Keycap>{ui.open}</span><span class="sx-cmd__keys"><Keycap>?</Keycap>{ui.keys}</span></p> </div> </div> - main-keys
<div class="sx-cmd sx-cmd--demo" data-demo-static> <div class="sx-cmd__in"> <p class="sx-cmd__top"><b>{ui.keysTitle}</b><Keycap>Esc</Keycap></p> <dl class="sx-keys">{ui.keyRows.map(([k,d])=><div><dt>{k.split(' ').map(x=>{const c=cap(x);return <Keycap title={c.t}>{c.k}</Keycap>;})}</dt><dd>{d}</dd></div>)}</dl> <label class="sx-keys__off"><input type="checkbox" data-keys-off-demo disabled/><span><b>{ui.keysOff}</b><small>{ui.keysOffHint}</small></span></label> </div> </div> - main-beacon
<dl class="ds-main__rules">{beacon.map(([k,v])=><div><dt>{k}</dt><dd>{v}</dd></div>)}</dl>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props {locale:Locale}Astro.props
Bindings and defaults read from source; these do not add inferred types.
locale
Source usage
Docs / preview only
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/MainPageDemos.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/site/Surface.astro·src/components/site/Surface.astro@/components/site/Section.astro·src/components/site/Section.astro@/components/site/RowList.astro·src/components/site/RowList.astro@/components/site/BuiltWith.astro·src/components/site/BuiltWith.astro@/components/Zeichen.astro·src/components/Zeichen.astro@/components/Keycap.astro·src/components/Keycap.astro./DemoBlock.astro·src/components/ds/DemoBlock.astro@/lib/site-content·src/lib/site-content.ts@/i18n·src/i18n/index.ts@/styles/case.css·src/styles/case.css@/styles/site.css·src/styles/site.css