Neues Erscheinungsbild: ruhig und erwachsen statt verspielt
Angelehnt an die Gestaltung der Ledder Werkstätten: - Farbpaar aus dunkler Hauptfarbe und Akzent (Standard Indigo/Pflaume), alle weiteren Töne daraus abgeleitet; weißer Grund, Lavendel-Flächen - Montserrat (selbst gehostet) statt Atkinson/Bricolage - Startseite: randloses Titelbild mit Akzentkreis, umlaufendem Text und Hinweis-Fahne; Platzhalter in der Markenfarbe statt Illustration - Bereiche als ruhige Pillen statt bunter Kacheln, Termine als Farbblock - Gesperrte Kleinzeilen mit Punktlinie, Punkt-Trenner in der Navigation - Redaktion: Akzentfarbe und Kreistext in den Einstellungen, Farbauswahl bei Kacheln/Seiten entfällt - Demo-Titelbilder als ruhige Farbflächen Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6f706dfa49
commit
562fa56228
44 changed files with 563 additions and 517 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<script lang="ts">
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
import { ICONS } from '$lib/icons';
|
||||
import { TONES, toneNames } from '$lib/palette';
|
||||
|
||||
/** Symbol-Auswahl für Kacheln und Seiten. Die Farbe bleibt gespeichert, wird aber nicht mehr gewählt. */
|
||||
let { icon = $bindable('star'), color = $bindable('sky'), label = '' }: { icon?: string; color?: string; label?: string } = $props();
|
||||
let showAll = $state(false);
|
||||
</script>
|
||||
|
|
@ -11,36 +11,18 @@
|
|||
<input type="hidden" name="icon" value={icon} />
|
||||
<input type="hidden" name="color" value={color} />
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="tone-{color} flex items-center gap-3 rounded-2xl bg-tone-soft p-3 pr-5">
|
||||
<span class="grid place-items-center size-12 rounded-2xl bg-tone text-white"><Icon name={icon} class="size-6" /></span>
|
||||
<span class="font-display font-bold text-tone-ink">{label || 'Vorschau'}</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-4 rounded-full bg-surface-2 pl-2 pr-5 py-2 max-w-sm">
|
||||
<span class="grid place-items-center size-12 rounded-full bg-surface text-brand-ink"><Icon name={icon} class="size-[1.35rem]" /></span>
|
||||
<span class="font-bold text-brand-ink truncate">{label || 'Vorschau'}</span>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend class="label">Farbe</legend>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
{#each toneNames as t (t)}
|
||||
<button
|
||||
type="button"
|
||||
class="tone-{t} size-9 rounded-full bg-tone ring-offset-2 ring-offset-surface transition {color === t ? 'ring-3 ring-tone' : 'hover:scale-110'}"
|
||||
title={TONES[t]}
|
||||
aria-label={TONES[t]}
|
||||
aria-pressed={color === t}
|
||||
onclick={() => (color = t)}
|
||||
></button>
|
||||
{/each}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend class="label">Symbol</legend>
|
||||
<div class="grid grid-cols-8 sm:grid-cols-11 gap-1.5 {showAll ? '' : 'max-h-[5.8rem] overflow-hidden'}">
|
||||
{#each Object.entries(ICONS) as [key, def] (key)}
|
||||
<button
|
||||
type="button"
|
||||
class="tone-{color} grid place-items-center aspect-square rounded-xl transition {icon === key ? 'bg-tone text-white' : 'bg-surface-2 text-ink-2 hover:bg-tone-soft hover:text-tone-ink'}"
|
||||
class="grid place-items-center aspect-square rounded-xl transition {icon === key ? 'bg-brand text-on-brand' : 'bg-surface-2 text-ink-2 hover:bg-brand-soft hover:text-brand-ink'}"
|
||||
title={def.label}
|
||||
aria-label={def.label}
|
||||
aria-pressed={icon === key}
|
||||
|
|
@ -50,7 +32,7 @@
|
|||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
<button type="button" class="text-sm font-semibold text-brand-ink mt-2" onclick={() => (showAll = !showAll)}>
|
||||
<button type="button" class="text-sm font-bold text-brand-ink mt-2" onclick={() => (showAll = !showAll)}>
|
||||
{showAll ? 'Weniger anzeigen' : 'Alle Symbole anzeigen'}
|
||||
</button>
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
{@const Ico = iconFor(a.file.mimeType)}
|
||||
<li>
|
||||
<a href={a.file.url} target="_blank" rel="noopener" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
|
||||
<span class="grid place-items-center size-10 rounded-xl bg-brand-soft text-brand-ink shrink-0"><Ico class="size-5" /></span>
|
||||
<span class="grid place-items-center size-10 rounded-full bg-surface-2 text-brand-ink shrink-0"><Ico class="size-5" /></span>
|
||||
<span class="flex-1 min-w-0">
|
||||
<span class="block font-semibold truncate">{a.title}</span>
|
||||
<span class="block text-xs text-ink-3">{kind(a.file.mimeType, a.file.name)} · {size(a.file.size)}</span>
|
||||
|
|
|
|||
|
|
@ -15,16 +15,16 @@
|
|||
const tel = $derived(contact.phone.replace(/[^\d+]/g, ''));
|
||||
</script>
|
||||
|
||||
<div class="card p-4 flex gap-4">
|
||||
<div class="rounded-[1.5rem] bg-surface-2 p-4 flex gap-4">
|
||||
{#if contact.photo}
|
||||
<img src={contact.photo.thumb} alt="" class="size-16 rounded-2xl object-cover shrink-0" loading="lazy" />
|
||||
<img src={contact.photo.thumb} alt="" class="size-16 rounded-full object-cover shrink-0" loading="lazy" />
|
||||
{:else}
|
||||
<div class="size-16 rounded-2xl bg-brand-soft text-brand-ink grid place-items-center font-display font-bold text-xl shrink-0" aria-hidden="true">
|
||||
<div class="size-16 rounded-full bg-surface text-brand-ink grid place-items-center font-bold text-xl shrink-0" aria-hidden="true">
|
||||
{initials}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="font-display font-bold text-lg leading-tight">{contact.name}</p>
|
||||
<p class="font-bold text-lg text-brand-ink leading-tight">{contact.name}</p>
|
||||
{#if contact.role}<p class="text-sm text-ink-2">{contact.role}</p>{/if}
|
||||
{#if contact.location}
|
||||
<p class="text-sm text-ink-3 flex items-center gap-1 mt-0.5"><MapPin class="size-3.5" />{contact.location}</p>
|
||||
|
|
@ -32,10 +32,10 @@
|
|||
{#if contact.phone || contact.email}
|
||||
<div class="flex flex-wrap gap-2 mt-3">
|
||||
{#if contact.phone}
|
||||
<a href="tel:{tel}" class="btn btn-soft btn-sm"><Phone class="size-4" />Anrufen</a>
|
||||
<a href="tel:{tel}" class="btn btn-primary btn-sm"><Phone class="size-4" />Anrufen</a>
|
||||
{/if}
|
||||
{#if contact.email}
|
||||
<a href="mailto:{contact.email}" class="btn btn-soft btn-sm"><Mail class="size-4" />E-Mail</a>
|
||||
<a href="mailto:{contact.email}" class="btn bg-surface text-brand-ink hover:bg-brand-soft btn-sm"><Mail class="size-4" />E-Mail</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
let { title, children, icon }: { title: string; children?: Snippet; icon?: Snippet } = $props();
|
||||
</script>
|
||||
|
||||
<div class="card p-8 text-center flex flex-col items-center gap-3">
|
||||
{#if icon}<div class="grid place-items-center size-14 rounded-2xl bg-brand-soft text-brand">{@render icon()}</div>{/if}
|
||||
<p class="font-display font-bold text-lg">{title}</p>
|
||||
<div class="rounded-[1.75rem] bg-surface-2 p-10 text-center flex flex-col items-center gap-3">
|
||||
{#if icon}<div class="grid place-items-center size-14 rounded-full bg-surface text-brand-ink">{@render icon()}</div>{/if}
|
||||
<p class="font-bold text-lg text-brand-ink">{title}</p>
|
||||
{#if children}<div class="text-ink-2 max-w-sm">{@render children()}</div>{/if}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<script lang="ts">
|
||||
import MapPin from '@lucide/svelte/icons/map-pin';
|
||||
import Clock from '@lucide/svelte/icons/clock';
|
||||
import DoorClosed from '@lucide/svelte/icons/door-closed';
|
||||
import { dayOfMonth, eventWhen, monthAbbr, weekday } from '$lib/dates';
|
||||
import type { EventItem } from '$lib/types';
|
||||
|
||||
|
|
@ -9,22 +8,20 @@
|
|||
const closure = $derived(event.kind === 'closure');
|
||||
</script>
|
||||
|
||||
<article class="flex gap-4 p-3 rounded-2xl {closure ? 'tone-amber bg-tone-soft' : 'card'}">
|
||||
<article class="flex gap-5 py-4">
|
||||
<div
|
||||
class="shrink-0 w-16 rounded-xl text-center py-2 {closure ? 'bg-tone text-white' : 'bg-brand-soft text-brand-ink'}"
|
||||
class="shrink-0 grid place-items-center content-center size-[4.5rem] rounded-full text-center leading-none {closure ? 'bg-accent text-white' : 'bg-surface-2 text-brand-ink'}"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="text-xs font-bold uppercase tracking-wide">{weekday(event.startDate)}</div>
|
||||
<div class="font-display text-2xl font-extrabold leading-none my-0.5">{dayOfMonth(event.startDate)}</div>
|
||||
<div class="text-xs font-semibold">{monthAbbr(event.startDate)}</div>
|
||||
<span class="text-[0.65rem] font-semibold uppercase tracking-[0.15em] opacity-75">{weekday(event.startDate)}</span>
|
||||
<span class="text-2xl font-bold my-0.5">{dayOfMonth(event.startDate)}</span>
|
||||
<span class="text-[0.7rem] font-semibold uppercase tracking-wider opacity-75">{monthAbbr(event.startDate)}</span>
|
||||
</div>
|
||||
<div class="min-w-0 py-0.5">
|
||||
<div class="min-w-0 pt-1">
|
||||
{#if closure}
|
||||
<p class="text-xs font-bold uppercase tracking-wide text-tone-ink flex items-center gap-1">
|
||||
<DoorClosed class="size-3.5" /> Geschlossen
|
||||
</p>
|
||||
<p class="eyebrow !text-accent-ink !text-[0.7rem]">Geschlossen</p>
|
||||
{/if}
|
||||
<h3 class="font-display font-bold text-[1.05rem] leading-snug">{event.title}</h3>
|
||||
<h3 class="font-bold text-lg text-brand-ink leading-snug">{event.title}</h3>
|
||||
<p class="text-sm text-ink-2 mt-1 flex flex-wrap gap-x-4 gap-y-1">
|
||||
<span class="inline-flex items-center gap-1.5"><Clock class="size-4 text-ink-3" />{eventWhen(event)}</span>
|
||||
{#if event.location}
|
||||
|
|
@ -32,7 +29,7 @@
|
|||
{/if}
|
||||
</p>
|
||||
{#if expanded && event.description}
|
||||
<p class="text-sm text-ink-2 mt-2 whitespace-pre-line">{event.description}</p>
|
||||
<p class="text-sm text-ink-2 mt-2 whitespace-pre-line max-w-prose">{event.description}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</article>
|
||||
|
|
|
|||
60
src/lib/components/HomeHero.svelte
Normal file
60
src/lib/components/HomeHero.svelte
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<script lang="ts">
|
||||
import ImageIcon from '@lucide/svelte/icons/image';
|
||||
import type { MediaItem } from '$lib/types';
|
||||
|
||||
type Highlight = { eyebrow: string; title: string; text: string; href: string };
|
||||
let {
|
||||
image,
|
||||
headline,
|
||||
tagline,
|
||||
highlight
|
||||
}: { image: MediaItem | null; headline: string; tagline: string; highlight: Highlight | null } = $props();
|
||||
</script>
|
||||
|
||||
<section class="relative -mx-4 -mt-6 lg:mx-0 lg:mt-0 lg:rounded-[1.75rem] overflow-hidden bg-brand">
|
||||
<div class="relative h-[31rem] sm:h-[34rem] lg:h-[38rem]">
|
||||
{#if image}
|
||||
<img src={image.url} alt={image.alt} class="absolute inset-0 size-full object-cover object-[50%_30%]" fetchpriority="high" />
|
||||
{:else}
|
||||
<!-- Platzhalter, bis in den Einstellungen ein Titelbild gewählt ist -->
|
||||
<div class="absolute inset-0 bg-[linear-gradient(135deg,var(--brand)_0%,color-mix(in_oklab,var(--brand)_60%,var(--accent))_100%)]">
|
||||
<p class="absolute left-5 top-5 lg:left-8 lg:top-7 inline-flex items-center gap-2 rounded-full bg-white/10 px-3 py-1.5 text-xs font-semibold text-white/75">
|
||||
<ImageIcon class="size-4" /> Platzhalter für das Titelbild
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if highlight}
|
||||
<a
|
||||
href={highlight.href}
|
||||
class="absolute right-0 top-16 lg:top-8 max-w-[80%] sm:max-w-md rounded-l-[2rem] bg-surface-2/95 backdrop-blur-sm pl-6 pr-5 lg:pr-8 py-3 sm:py-4 text-right shadow-float hover:bg-surface transition-colors"
|
||||
>
|
||||
<span class="eyebrow block">{highlight.eyebrow}</span>
|
||||
<span class="block font-bold sm:text-lg text-brand-ink leading-snug mt-1 line-clamp-2">{highlight.title}</span>
|
||||
{#if highlight.text}<span class="hidden sm:block text-sm text-ink-2 mt-1 line-clamp-2">{highlight.text}</span>{/if}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
<!-- Akzentkreis mit umlaufendem Text -->
|
||||
<div
|
||||
aria-hidden="true"
|
||||
class="absolute rounded-full bg-accent size-[25rem] -right-20 -bottom-36 sm:size-[30rem] sm:-bottom-40 lg:size-[36rem] lg:right-0 lg:-bottom-48"
|
||||
>
|
||||
{#if tagline}
|
||||
<svg viewBox="0 0 100 100" class="absolute inset-0 size-full">
|
||||
<path id="hero-ring" d="M 7.7 58 A 43 43 0 1 1 92.3 58" fill="none" />
|
||||
<text fill="white" font-size="3.6" font-weight="500" letter-spacing="0.9" text-anchor="middle" style="text-transform: uppercase">
|
||||
<!-- zentriert knapp rechts der Kreismitte, damit links Platz für die Überschrift bleibt -->
|
||||
<textPath href="#hero-ring" startOffset="57%">{tagline}</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<h1
|
||||
class="absolute left-5 right-10 bottom-10 sm:left-8 sm:right-auto sm:max-w-md lg:left-auto lg:right-16 lg:bottom-16 lg:max-w-[28rem] text-white font-bold text-[2.2rem] sm:text-[2.75rem] lg:text-[3.25rem] leading-[1.1] [text-shadow:0_2px_24px_rgb(0_0_0/0.25)]"
|
||||
>
|
||||
{headline}
|
||||
</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -25,12 +25,12 @@
|
|||
bind:this={dialog}
|
||||
onclose={() => (open = false)}
|
||||
onclick={(e) => e.target === dialog && (open = false)}
|
||||
class="sheet m-0 ml-auto h-dvh max-h-dvh w-full max-w-md bg-bg text-ink p-0 backdrop:bg-black/40 backdrop:backdrop-blur-sm"
|
||||
class="sheet m-0 ml-auto h-dvh max-h-dvh w-full max-w-md bg-surface-2 text-ink p-0 backdrop:bg-black/40 backdrop:backdrop-blur-sm"
|
||||
aria-label="Menü"
|
||||
>
|
||||
<div class="flex flex-col h-full">
|
||||
<div class="flex items-center justify-between px-5 h-16 safe-top border-b border-line/60">
|
||||
<h2 class="font-display text-xl font-bold">Menü</h2>
|
||||
<h2 class="text-xl font-bold text-brand-ink">Menü</h2>
|
||||
<button class="btn btn-ghost btn-icon" aria-label="Menü schließen" onclick={() => (open = false)}>
|
||||
<X class="size-6" />
|
||||
</button>
|
||||
|
|
@ -43,11 +43,11 @@
|
|||
<ul class="card divide-y divide-line/70 overflow-hidden">
|
||||
{#each pages as p (p.id)}
|
||||
<li>
|
||||
<a href="/s/{p.slug}" class="tone-{p.color} flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
|
||||
<span class="grid place-items-center size-9 rounded-xl bg-tone-soft text-tone-ink">
|
||||
<a href="/s/{p.slug}" class="flex items-center gap-3 px-4 py-3 hover:bg-surface-2">
|
||||
<span class="grid place-items-center size-9 rounded-full bg-surface-2 text-brand-ink">
|
||||
<Icon name={p.icon} class="size-5" />
|
||||
</span>
|
||||
<span class="flex-1 font-semibold">{p.title}</span>
|
||||
<span class="flex-1 font-bold text-brand-ink">{p.title}</span>
|
||||
<ChevronRight class="size-5 text-ink-3" />
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
15
src/lib/components/PageTitle.svelte
Normal file
15
src/lib/components/PageTitle.svelte
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
/** Seitenkopf: gesperrte Kleinzeile mit Punktlinie, darunter die Überschrift. */
|
||||
let { eyebrow, title, intro = '', actions }: { eyebrow: string; title: string; intro?: string; actions?: Snippet } = $props();
|
||||
</script>
|
||||
|
||||
<header class="mb-8 lg:mb-10 space-y-3">
|
||||
<p class="eyebrow eyebrow-rule">{eyebrow}</p>
|
||||
<div class="flex flex-wrap items-end justify-between gap-4">
|
||||
<h1 class="text-3xl sm:text-4xl text-brand-ink">{title}</h1>
|
||||
{#if actions}<div class="flex flex-wrap gap-2">{@render actions()}</div>{/if}
|
||||
</div>
|
||||
{#if intro}<p class="text-lg text-ink-2 max-w-2xl">{intro}</p>{/if}
|
||||
</header>
|
||||
|
|
@ -4,46 +4,42 @@
|
|||
import { relative } from '$lib/dates';
|
||||
import type { PostCard } from '$lib/types';
|
||||
|
||||
let { post, variant = 'row' }: { post: PostCard; variant?: 'row' | 'hero' } = $props();
|
||||
let { post, variant = 'card' }: { post: PostCard; variant?: 'card' | 'row' } = $props();
|
||||
</script>
|
||||
|
||||
{#if variant === 'hero'}
|
||||
<a href="/meldungen/{post.slug}" class="card pressable group block overflow-hidden">
|
||||
<div class="aspect-[16/9] bg-brand-soft overflow-hidden">
|
||||
{#if variant === 'card'}
|
||||
<a href="/meldungen/{post.slug}" class="group block">
|
||||
<div class="aspect-[3/2] rounded-2xl overflow-hidden bg-surface-2">
|
||||
{#if post.cover}
|
||||
<img
|
||||
src={post.cover.url}
|
||||
alt={post.cover.alt}
|
||||
loading="lazy"
|
||||
class="size-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
|
||||
/>
|
||||
{:else}
|
||||
<div class="size-full grid place-items-center text-brand"><Newspaper class="size-14 opacity-50" /></div>
|
||||
<div class="size-full grid place-items-center text-ink-3"><Newspaper class="size-12 opacity-50" /></div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="p-5">
|
||||
<p class="text-sm text-ink-3 flex items-center gap-2">
|
||||
{#if post.pinned}<Pin class="size-4 text-brand" aria-label="Angeheftet" />{/if}
|
||||
{relative(post.publishedAt)}
|
||||
</p>
|
||||
<h3 class="font-display text-xl font-bold mt-1">{post.title}</h3>
|
||||
{#if post.teaser}<p class="text-ink-2 mt-2 line-clamp-2">{post.teaser}</p>{/if}
|
||||
</div>
|
||||
<p class="eyebrow !text-accent-ink mt-4 flex items-center gap-1.5">
|
||||
{#if post.pinned}<Pin class="size-3.5" aria-label="Angeheftet" />{/if}
|
||||
{relative(post.publishedAt)}
|
||||
</p>
|
||||
<h3 class="text-xl text-brand-ink mt-1.5 group-hover:underline decoration-2 underline-offset-4 decoration-accent">{post.title}</h3>
|
||||
{#if post.teaser}<p class="text-ink-2 mt-2 line-clamp-3">{post.teaser}</p>{/if}
|
||||
</a>
|
||||
{:else}
|
||||
<a href="/meldungen/{post.slug}" class="card pressable flex gap-4 p-3 items-center">
|
||||
<div class="size-24 sm:size-28 shrink-0 rounded-2xl overflow-hidden bg-brand-soft">
|
||||
<a href="/meldungen/{post.slug}" class="group flex gap-4 items-center">
|
||||
<div class="size-24 sm:size-28 shrink-0 rounded-2xl overflow-hidden bg-surface-2">
|
||||
{#if post.cover}
|
||||
<img src={post.cover.thumb} alt={post.cover.alt} class="size-full object-cover" loading="lazy" />
|
||||
{:else}
|
||||
<div class="size-full grid place-items-center text-brand"><Newspaper class="size-9 opacity-50" /></div>
|
||||
<div class="size-full grid place-items-center text-ink-3"><Newspaper class="size-8 opacity-50" /></div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="min-w-0 py-1 pr-1">
|
||||
<p class="text-sm text-ink-3 flex items-center gap-1.5">
|
||||
{#if post.pinned}<Pin class="size-3.5 text-brand" aria-label="Angeheftet" />{/if}
|
||||
{relative(post.publishedAt)}
|
||||
</p>
|
||||
<h3 class="font-display font-bold text-[1.08rem] leading-snug mt-0.5 line-clamp-2">{post.title}</h3>
|
||||
<div class="min-w-0">
|
||||
<p class="eyebrow !text-accent-ink !text-[0.7rem]">{relative(post.publishedAt)}</p>
|
||||
<h3 class="text-[1.05rem] text-brand-ink leading-snug mt-1 line-clamp-2 group-hover:underline decoration-accent underline-offset-4">{post.title}</h3>
|
||||
{#if post.teaser}<p class="text-sm text-ink-2 mt-1 line-clamp-2">{post.teaser}</p>{/if}
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
aria-pressed={prefs.current.size === s.value}
|
||||
onclick={() => prefs.set({ size: s.value })}
|
||||
>
|
||||
<span class="font-display font-bold leading-none {s.scale}">A</span>
|
||||
<span class="font-bold leading-none {s.scale}">A</span>
|
||||
<span class="text-xs mt-1">{s.label}</span>
|
||||
</button>
|
||||
{/each}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</script>
|
||||
|
||||
{#if contentEasy}
|
||||
<div class="tone-emerald bg-tone-soft text-tone-ink rounded-2xl px-4 py-3 flex items-center gap-3 text-sm">
|
||||
<div class="bg-accent-soft text-accent-ink rounded-full pl-4 pr-5 py-3 flex items-center gap-3 text-sm font-semibold">
|
||||
<BookHeart class="size-5 shrink-0" />
|
||||
<span class="flex-1">
|
||||
{useEasy ? 'Du liest diesen Text in Leichter Sprache.' : 'Diesen Text gibt es auch in Leichter Sprache.'}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<script lang="ts">
|
||||
import ChevronRight from '@lucide/svelte/icons/chevron-right';
|
||||
import ArrowUpRight from '@lucide/svelte/icons/arrow-up-right';
|
||||
import Icon from './Icon.svelte';
|
||||
|
||||
let { href, label, icon, color, sub = '' }: { href: string; label: string; icon: string; color: string; sub?: string } = $props();
|
||||
/** Bereichs-Link: ruhige Pille mit Symbol – führt zu einer Seite, einem Bereich oder einer Website. */
|
||||
let { href, label, icon, sub = '' }: { href: string; label: string; icon: string; sub?: string } = $props();
|
||||
const external = $derived(/^https?:\/\//.test(href));
|
||||
</script>
|
||||
|
||||
|
|
@ -9,16 +12,18 @@
|
|||
{href}
|
||||
target={external ? '_blank' : undefined}
|
||||
rel={external ? 'noopener' : undefined}
|
||||
class="tone-{color} pressable group relative flex flex-col justify-between gap-4 rounded-[1.4rem] bg-tone-soft p-4 min-h-32 overflow-hidden"
|
||||
class="group flex items-center gap-4 rounded-full bg-surface-2 hover:bg-brand-soft pl-1.5 pr-4 py-1.5 min-h-14 transition-colors"
|
||||
>
|
||||
<span
|
||||
class="grid place-items-center size-12 rounded-2xl bg-tone text-white shadow-[0_8px_18px_-8px_var(--tone)] transition-transform group-hover:-rotate-6 group-hover:scale-105"
|
||||
>
|
||||
<Icon name={icon} class="size-6" />
|
||||
<span class="grid place-items-center size-11 rounded-full bg-surface text-brand-ink shrink-0 transition-colors group-hover:bg-brand group-hover:text-on-brand">
|
||||
<Icon name={icon} class="size-5" strokeWidth={2.1} />
|
||||
</span>
|
||||
<span class="font-display font-bold text-[1.02rem] leading-tight text-tone-ink hyphens-auto" lang="de">
|
||||
{label}
|
||||
{#if sub}<span class="block mt-1 font-sans font-normal text-sm text-ink-2">{sub}</span>{/if}
|
||||
<span class="flex-1 min-w-0 py-1">
|
||||
<span class="block font-bold text-brand-ink leading-snug hyphens-auto" lang="de">{label}</span>
|
||||
{#if sub}<span class="block text-sm text-ink-2 leading-snug mt-0.5 line-clamp-2">{sub}</span>{/if}
|
||||
</span>
|
||||
<span aria-hidden="true" class="absolute -right-6 -top-6 size-24 rounded-full bg-tone opacity-[0.07]"></span>
|
||||
{#if external}
|
||||
<ArrowUpRight class="size-5 text-ink-3 shrink-0" />
|
||||
{:else}
|
||||
<ChevronRight class="size-5 text-ink-3 shrink-0 transition-transform group-hover:translate-x-0.5" />
|
||||
{/if}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -8,12 +8,16 @@ export type AppSettings = {
|
|||
greeting: string;
|
||||
/** Kurzer Text unter der Begrüßung */
|
||||
intro: string;
|
||||
/** Markenfarbe als Hex-Wert */
|
||||
/** Markenfarbe (Schrift, Buttons) als Hex-Wert */
|
||||
brandColor: string;
|
||||
/** Akzentfarbe (Kreis auf der Startseite, Hervorhebungen) */
|
||||
accentColor: string;
|
||||
logoId: number | null;
|
||||
/** Großes Bild oben auf der Startseite */
|
||||
heroEnabled: boolean;
|
||||
heroImageId: number | null;
|
||||
/** Text, der im Kreis auf dem Startbild umläuft (leer = keiner) */
|
||||
heroTagline: string;
|
||||
website: string;
|
||||
contactEmail: string;
|
||||
contactIntro: string;
|
||||
|
|
@ -27,12 +31,14 @@ export type AppSettings = {
|
|||
export const DEFAULT_SETTINGS: AppSettings = {
|
||||
appName: 'Werkstatt-App',
|
||||
orgName: 'Unsere Werkstätten',
|
||||
greeting: 'Schön, dass du da bist!',
|
||||
greeting: 'Willkommen in deiner Werkstatt!',
|
||||
intro: 'Hier findest du Neuigkeiten, Termine und alles Wichtige rund um deine Werkstatt.',
|
||||
brandColor: '#0e7c66',
|
||||
brandColor: '#2e2672',
|
||||
accentColor: '#85357c',
|
||||
logoId: null,
|
||||
heroEnabled: true,
|
||||
heroImageId: null,
|
||||
heroTagline: 'Arbeit, Bildung, Teilhabe',
|
||||
website: '',
|
||||
contactEmail: '',
|
||||
contactIntro: 'Du hast Fragen oder Ideen für die App? Schreib uns gerne!',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue