feat(analytics): pull pm86 site-id from CMS page_config, drop env var
- +layout.server: expose pageConfig.analyticsPm86SiteId on layout data - +layout.svelte: inject analytics.pm86.de script when CMS value present - +error.svelte: light 404 page with wald-700 accent, dropped dark gradient - .env.example + deploy.yml: remove PUBLIC_ANALYTICS_PM86_SITE_ID
This commit is contained in:
@@ -15,35 +15,29 @@
|
||||
<meta name="robots" content="noindex" />
|
||||
</svelte:head>
|
||||
|
||||
<section class="bg-linear-to-br from-wald-700 via-wald-800 to-zinc-900 text-white">
|
||||
<div class="container-custom py-20 md:py-28 text-center">
|
||||
<div class="mx-auto inline-flex h-20 w-20 items-center justify-center rounded-full bg-white/10 backdrop-blur ring-1 ring-white/20">
|
||||
<Icon
|
||||
icon={isNotFound ? 'mdi:map-marker-question-outline' : 'mdi:alert-octagon-outline'}
|
||||
class="h-10 w-10"
|
||||
/>
|
||||
</div>
|
||||
<p class="mt-6 text-7xl md:text-8xl font-extrabold tracking-tight">{status}</p>
|
||||
<h1 class="mt-3 text-2xl md:text-3xl font-semibold">
|
||||
<section>
|
||||
<div class="container-custom pt-10 text-center">
|
||||
<p class="mt-6 text-7xl md:text-8xl font-extrabold tracking-tight text-wald-700">{status}</p>
|
||||
<h1 class="mt-3 text-2xl md:text-3xl font-semibold text-zinc-900">
|
||||
{isNotFound ? t('page_404_title') : `Fehler ${status}`}
|
||||
</h1>
|
||||
{#if isNotFound}
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-white/80">{t('page_404_text')}</p>
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-zinc-600">{t('page_404_text')}</p>
|
||||
{:else if message}
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-white/80">{message}</p>
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-zinc-600">{message}</p>
|
||||
{/if}
|
||||
|
||||
<div class="mt-8 flex flex-wrap items-center justify-center gap-3">
|
||||
<a
|
||||
href="/"
|
||||
class="inline-flex items-center gap-2 rounded-sm bg-white px-5 py-2.5 text-sm font-medium text-zinc-900 hover:bg-zinc-100 no-underline"
|
||||
class="inline-flex items-center gap-2 rounded-sm bg-wald-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-wald-800 no-underline"
|
||||
>
|
||||
<Icon icon="mdi:home-outline" class="h-4 w-4" />
|
||||
{t('page_404_back')}
|
||||
</a>
|
||||
<a
|
||||
href="/posts/"
|
||||
class="inline-flex items-center gap-2 rounded-sm border border-white/40 px-5 py-2.5 text-sm font-medium text-white hover:bg-white/10 no-underline"
|
||||
class="inline-flex items-center gap-2 rounded-sm border border-zinc-300 bg-white px-5 py-2.5 text-sm font-medium text-zinc-700 hover:bg-zinc-100 no-underline"
|
||||
>
|
||||
<Icon icon="mdi:file-document-outline" class="h-4 w-4" />
|
||||
Zu den Beiträgen
|
||||
|
||||
Reference in New Issue
Block a user