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
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 50s
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user