style(design): consistency sweep + UX upgrades
- Palette: gray/zinc/slate/neutral → stein, red → fire, amber → erde, sky → himmel, green → wald - Footer: replaced raw rgb with stein tokens - Radius: unified to rounded-xs across cards, buttons, inputs, pagination - Buttons: .btn-primary/.btn-secondary now font-medium; added secondary - Card hover: -translate-y-0.5 + shadow + wald-300 border - Header active link: wald border-bottom + wald-700 text - Mobile nav: bigger touch targets + wald active accent - Pagination: prev/next text labels + wald-500 active state with separated shape/color classes to avoid Tailwind conflicts - Lead paragraph: scoped .markdown > p:first-child for top-level MarkdownBlock only via [data-block-type="markdown"] - Section dividers: subtle wald-200 gradient between content rows - Global focus-visible ring (wald-500) - Inline hex → palette tokens (Badge amber, Tag custom-color contrast) - Font weights snapped to design system (300/400/500/600/700) - transition-all → transition-colors where only color changes - Removed em-dashes from user-visible templates Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -17,27 +17,27 @@
|
||||
|
||||
<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">
|
||||
<p class="mt-6 text-7xl md:text-8xl font-bold tracking-tight text-wald-700">{status}</p>
|
||||
<h1 class="mt-3 text-2xl md:text-3xl font-semibold text-stein-900">
|
||||
{isNotFound ? t('page_404_title') : `Fehler ${status}`}
|
||||
</h1>
|
||||
{#if isNotFound}
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-zinc-600">{t('page_404_text')}</p>
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-stein-600">{t('page_404_text')}</p>
|
||||
{:else if message}
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-zinc-600">{message}</p>
|
||||
<p class="mx-auto mt-4 max-w-xl text-base text-stein-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-wald-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-wald-800 no-underline"
|
||||
class="btn-primary inline-flex items-center gap-2 text-sm font-medium"
|
||||
>
|
||||
<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-zinc-300 bg-white px-5 py-2.5 text-sm font-medium text-zinc-700 hover:bg-zinc-100 no-underline"
|
||||
class="btn-secondary inline-flex items-center gap-2 text-sm font-medium"
|
||||
>
|
||||
<Icon icon="mdi:file-document-outline" class="h-4 w-4" />
|
||||
Zu den Beiträgen
|
||||
|
||||
@@ -271,18 +271,18 @@
|
||||
<TranslationProvider translations={data.translations}>
|
||||
<a
|
||||
href="#main-content"
|
||||
class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:bg-white focus:px-3 focus:py-2 focus:shadow focus:outline focus:outline-2 focus:outline-wald-600 focus:rounded-sm"
|
||||
class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:bg-white focus:px-3 focus:py-2 focus:shadow focus:outline focus:outline-2 focus:outline-wald-600 focus:rounded-xs"
|
||||
>Zum Inhalt springen</a>
|
||||
<div class="flex min-h-screen flex-col text-zinc-900">
|
||||
<div class="flex min-h-screen flex-col text-stein-900">
|
||||
{#if pageData?.preview || pageData?.previewDraft}
|
||||
<div
|
||||
class="sticky top-0 z-[90] w-full bg-amber-500 text-black shadow-sm"
|
||||
class="sticky top-0 z-[90] w-full bg-erde-500 text-black shadow-sm"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
>
|
||||
<div class="container-custom flex items-center justify-between gap-3 py-1.5 text-sm">
|
||||
<span class="font-semibold">
|
||||
{pageData?.previewDraft ? 'Live-Preview — ungespeicherter Draft' : 'Preview-Modus — Draft sichtbar (nicht indexiert)'}
|
||||
{pageData?.previewDraft ? 'Live-Preview · ungespeicherter Draft' : 'Preview-Modus · Draft sichtbar (nicht indexiert)'}
|
||||
</span>
|
||||
<a
|
||||
href={$page.url.pathname}
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
<li>
|
||||
<a
|
||||
href={'/' + ((p.slug ?? p._slug ?? '').replace(/^\//, '').trim() || '').split('/').filter(Boolean).map(encodeURIComponent).join('/')}
|
||||
class="block rounded-sm border border-zinc-200 bg-white px-4 py-3 shadow-sm transition hover:border-green-700/30 hover:shadow"
|
||||
class="block rounded-xs border border-stein-200 bg-white px-4 py-3 shadow-sm transition hover:border-wald-700/30 hover:shadow"
|
||||
>
|
||||
<span class="font-medium text-zinc-900">{p.linkName ?? p.name ?? p.slug ?? p._slug}</span>
|
||||
{#if p.headline}<span class="mt-1 block text-sm text-zinc-500">{p.headline}</span>{/if}
|
||||
<span class="font-medium text-stein-900">{p.linkName ?? p.name ?? p.slug ?? p._slug}</span>
|
||||
{#if p.headline}<span class="mt-1 block text-sm text-stein-500">{p.headline}</span>{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/each}
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<h1 class="p-name">{data.post.headline}</h1>
|
||||
{/if}
|
||||
{#if data.post.subheadline}
|
||||
<p class="text-zinc-600 lead p-summary">{data.post.subheadline}</p>
|
||||
<p class="text-stein-600 lead p-summary">{data.post.subheadline}</p>
|
||||
{/if}
|
||||
</header>
|
||||
{/if}
|
||||
@@ -172,7 +172,7 @@
|
||||
lazy
|
||||
class="mt-6"
|
||||
>
|
||||
<div class="p-8 border border-zinc-200 rounded-lg">
|
||||
<div class="p-8 border border-stein-200 rounded-lg">
|
||||
<Comments pageId={data.commentPageId} />
|
||||
</div>
|
||||
</Accordion>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="content mt-8">
|
||||
{#if data.cmsError}
|
||||
<div class="rounded-sm border border-amber-200 bg-amber-50 p-4 text-amber-800">
|
||||
<div class="rounded-xs border border-erde-200 bg-erde-50 p-4 text-erde-800">
|
||||
<strong>{t(data.translations, T.posts_cms_error)}</strong> {data.cmsError}
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="content mt-8">
|
||||
{#if data.cmsError}
|
||||
<div class="rounded-sm border border-amber-200 bg-amber-50 p-4 text-amber-800">
|
||||
<div class="rounded-xs border border-erde-200 bg-erde-50 p-4 text-erde-800">
|
||||
<strong>{t(data.translations, T.posts_cms_error)}</strong> {data.cmsError}
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="content mt-8">
|
||||
{#if data.cmsError}
|
||||
<div class="rounded-sm border border-amber-200 bg-amber-50 p-4 text-amber-800">
|
||||
<div class="rounded-xs border border-erde-200 bg-erde-50 p-4 text-erde-800">
|
||||
<strong>{t(data.translations, T.posts_cms_error)}</strong> {data.cmsError}
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="content mt-8">
|
||||
{#if data.cmsError}
|
||||
<div class="rounded-sm border border-amber-200 bg-amber-50 p-4 text-amber-800">
|
||||
<div class="rounded-xs border border-erde-200 bg-erde-50 p-4 text-erde-800">
|
||||
<strong>{t(data.translations, T.posts_cms_error)}</strong> {data.cmsError}
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user