CvPreview
Öffnet die vorhandenen lokalen CV-PDFs in einer gemeinsamen Systemfenster-Vorschau und bietet Download sowie separates Öffnen.
src/components/CvPreview.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/layouts/Base.astro
- Einmal pro Dokument über Base einbinden; globale Klickbehandlung und feste Dialog-/Titelkennungen erlauben keine mehrfachen Instanzen.
- Fängt ausschließlich unmodifizierte Links zu den lokalen general-de/general-en-PDFs ab; native PDF-Links bleiben ohne JavaScript der Einstieg.
- SystemWindow, bestehende Button-Rezepte und Zeichen verwenden. PDF-Inhalte und CV-Dateien werden hier nicht erzeugt oder verändert.
- Iframe beim Schließen leeren, Scrollzustand und Fokus zum Auslöser zurückgeben; Escape, Download, separates Öffnen und mobile Nutzung am tatsächlichen Verbraucher prüfen.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
Astro.props
Bindings and defaults read from source; these do not add inferred types.
locale = 'de'
Source usage
Website reference
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.
Website
- src/pages/collectible/index.astro
- src/components/collectible/CollectiblePage.astro
- src/layouts/Base.astro
- src/components/CvPreview.astro
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/layouts/Base.astro
- src/components/CvPreview.astro
Preview
- src/pages/vorschlag/header-context.astro
- src/layouts/Base.astro
- src/components/CvPreview.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
src/layouts/Base.astro:14import
Dependencies
@/components/ui/SystemWindow.astro·src/components/ui/SystemWindow.astro@/components/ui/button·src/components/ui/button.tsx@/components/Zeichen.astro·src/components/Zeichen.astro@/styles/cv-preview.css·src/styles/cv-preview.css