Startseite: umlaufenden Kreistext entfernt

Der Akzentkreis bleibt, der Text am Kreisrand und das zugehörige
Einstellungsfeld entfallen.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-30 14:50:40 +00:00
parent 562fa56228
commit 82d4c910b2
8 changed files with 5 additions and 27 deletions

View file

@ -8,7 +8,7 @@ Tablet und Desktop.
**App (öffentlich)**
- Startseite mit großem Titelbild, Akzentkreis mit umlaufendem Text, Hinweis-Fahne (Schließzeit oder
- Startseite mit großem Titelbild, Akzentkreis, Hinweis-Fahne (Schließzeit oder
angeheftete Meldung), Suche, Bereichen, Neuigkeiten und Terminen
- Meldungen mit Titelbild, Galerie, Video (datensparsam erst nach Klick), Dateien und Ansprechpartnern
- Infoseiten in beliebiger Tiefe (z. B. „Dienste → Sozialer Dienst“)

View file

@ -85,7 +85,6 @@ db.insert(s.settings)
logoId: null,
heroEnabled: true,
heroImageId: null,
heroTagline: 'Arbeit, Bildung, Teilhabe',
website: 'https://example.org',
contactEmail: 'app@example.org',
contactIntro: 'Du hast Fragen, Lob oder Ideen für die App? Schreib uns – wir freuen uns!',

View file

@ -6,9 +6,8 @@
let {
image,
headline,
tagline,
highlight
}: { image: MediaItem | null; headline: string; tagline: string; highlight: Highlight | null } = $props();
}: { image: MediaItem | null; headline: 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">
@ -35,21 +34,11 @@
</a>
{/if}
<!-- Akzentkreis mit umlaufendem Text -->
<!-- Akzentkreis -->
<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>
></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)]"

View file

@ -16,8 +16,6 @@ export type AppSettings = {
/** 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;
@ -38,7 +36,6 @@ export const DEFAULT_SETTINGS: AppSettings = {
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!',

View file

@ -29,7 +29,6 @@ export const load = () => {
intro: s.intro,
heroEnabled: s.heroEnabled,
hero: getMedia(s.heroImageId),
heroTagline: s.heroTagline,
highlight: highlight(),
tiles: db.select().from(tiles).orderBy(asc(tiles.sortOrder), asc(tiles.id)).all(),
posts: listPosts({ limit: s.homeNewsCount }).items,

View file

@ -16,7 +16,7 @@
<div class="space-y-14 lg:space-y-20">
{#if data.heroEnabled}
<HomeHero image={data.hero} headline={data.greeting} tagline={data.heroTagline} highlight={data.highlight} />
<HomeHero image={data.hero} headline={data.greeting} highlight={data.highlight} />
{:else}
<h1 class="font-bold text-3xl sm:text-4xl text-brand-ink pt-4">{data.greeting}</h1>
{/if}

View file

@ -32,7 +32,6 @@ export const actions = {
logoId: f.int('logoId'),
heroEnabled: f.bool('heroEnabled'),
heroImageId: f.int('heroImageId'),
heroTagline: f.str('heroTagline', 40),
website,
contactEmail: f.str('contactEmail', 200),
contactIntro: f.str('contactIntro', 400),

View file

@ -55,11 +55,6 @@
Am besten ein Foto im Querformat, mindestens 1600 px breit. Solange keins gewählt ist, erscheint eine
Platzhalter in der Markenfarbe.
</p>
<div>
<label class="label" for="heroTagline">Text im Kreis</label>
<input id="heroTagline" name="heroTagline" class="field" maxlength="40" value={s.heroTagline} placeholder="z. B. Arbeit, Bildung, Teilhabe" />
<p class="hint">Läuft oben am Farbkreis entlang, höchstens 40 Zeichen. Leer lassen, wenn kein Text erscheinen soll.</p>
</div>
</div>
<div>
<label class="label" for="greeting">Begrüßung</label>