Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.47 KB

File metadata and controls

42 lines (25 loc) · 1.47 KB

src/components/

Responsibility

Design

Flow

Integration

Components Map

Responsibility

Contains prop-driven Astro components for global chrome, homepage sections, and reusable UI controls.

Design

  • Components render server-side HTML and expose DOM hooks to scripts instead of hydrating islands.
  • Most localized components accept lang: 'de' | 'en' and resolve strings through lib/i18n.ts.
  • Reveal sequencing is declarative through data-reveal and data-reveal-group attributes.

Subdirectories

Directory Responsibility Detailed map
layout/ Header, footer, metadata, structured data, branding, and decorative background. Layout components
sections/ Content-aware sections composing the localized home pages. Homepage sections
ui/ Filtering, breadcrumbs, list rows, and tooltip primitives. UI components

Integration

Components are consumed by layouts/BaseLayout.astro and route files. Collection-aware sections depend on astro:content and localization helpers; global scripts in BaseLayout consume their IDs, classes, and data attributes.