Startseite: umlaufenden Kreistext wiederhergestellt
Macht 82d4c91 rückgängig – der Text am Akzentkreis und das
Einstellungsfeld „Text im Kreis“ sind wieder da.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
82d4c910b2
commit
fdb6b0e70e
8 changed files with 27 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ Tablet und Desktop.
|
|||
|
||||
**App (öffentlich)**
|
||||
|
||||
- Startseite mit großem Titelbild, Akzentkreis, Hinweis-Fahne (Schließzeit oder
|
||||
- Startseite mit großem Titelbild, Akzentkreis mit umlaufendem Text, 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“)
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ 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!',
|
||||
|
|
|
|||
|
|
@ -6,8 +6,9 @@
|
|||
let {
|
||||
image,
|
||||
headline,
|
||||
tagline,
|
||||
highlight
|
||||
}: { image: MediaItem | null; headline: string; highlight: Highlight | null } = $props();
|
||||
}: { 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">
|
||||
|
|
@ -34,11 +35,21 @@
|
|||
</a>
|
||||
{/if}
|
||||
|
||||
<!-- Akzentkreis -->
|
||||
<!-- 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"
|
||||
></div>
|
||||
>
|
||||
{#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)]"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ 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;
|
||||
|
|
@ -36,6 +38,7 @@ 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!',
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ 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,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<div class="space-y-14 lg:space-y-20">
|
||||
{#if data.heroEnabled}
|
||||
<HomeHero image={data.hero} headline={data.greeting} highlight={data.highlight} />
|
||||
<HomeHero image={data.hero} headline={data.greeting} tagline={data.heroTagline} highlight={data.highlight} />
|
||||
{:else}
|
||||
<h1 class="font-bold text-3xl sm:text-4xl text-brand-ink pt-4">{data.greeting}</h1>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ 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),
|
||||
|
|
|
|||
|
|
@ -55,6 +55,11 @@
|
|||
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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue