fix(types): add ogImage prop to Layout and message prop to FallbackSection
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 50s

This commit is contained in:
Daniel S
2026-08-09 22:45:01 +02:00
parent baa639a9b2
commit 15b2a34957
2 changed files with 8 additions and 4 deletions

View File

@@ -1,13 +1,15 @@
---
interface Props {
sectionName: string;
sectionName?: string;
message?: string;
}
const { sectionName } = Astro.props;
const { sectionName = 'Unbekannt', message } = Astro.props;
---
<section class="py-12 px-4 max-w-4xl mx-auto text-center">
<div class="glass-panel rounded-2xl p-8 text-slate-400 text-xs font-mono">
<p>⚙️ Section <strong>{sectionName}</strong> ist noch in Bearbeitung oder Platzhalter.</p>
<p>⚙️ {message || `Section ${sectionName} ist noch in Bearbeitung oder Platzhalter.`}</p>
</div>
</section>

View File

@@ -15,13 +15,15 @@ import { THEME_PRESETS } from '../utils/themePresets';
interface Props {
title: string;
description?: string;
ogImage?: string;
}
const { siteConfig, themeConfig } = loadWaasConfigs(Astro.request.headers.get('user-agent') ?? '');
const activePreset = THEME_PRESETS[themeConfig.activePreset] || THEME_PRESETS.corporateDark;
const colors = activePreset.colors;
const { title, description = "Professionelles Webdesign & moderne Websites." } = Astro.props;
const { title, description = "Professionelles Webdesign & moderne Websites.", ogImage } = Astro.props;
---
<!doctype html>