diff --git a/CLAUDE.md b/CLAUDE.md index 2a8351d..b98f7b6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ > **Plattform:** Olares One (Kubernetes), Repo und CI auf Gitea — kein Supabase, > kein Vercel (E-0001). Eigene Gestaltung, nicht AImighty (E-0002). > Verteilung über den Markt, Repo öffentlich (E-0005). -> **Status:** 26.11.3 — Arbeitspakete 1 und 2 fertig: Anmeldung mit Passkeys, +> **Status:** 26.11.4 (Gestaltung E-0009) — Arbeitspakete 1 und 2 fertig: Anmeldung mit Passkeys, > Datenmodell (24 Tabellen, E-0007/E-0008), Test mit zwei Haushalten, Sicherung nach > `/app/data`. Als Nächstes Arbeitspaket 3, Seed (`docs/PROJEKTSTART.md`). > **Letzte Aktualisierung:** 6. November 2026 @@ -74,10 +74,14 @@ Datenmodells (`households`, `dishes`, `rounds`, `slots`, …). 5. **Der Wochenvorschlag ist Regelwerk, keine KI** (`lib/suggest.ts`, mit Tests): Wünsche zuerst, dann Vetos, Kostenbalance, Basis-Wechsel, keine Wiederholung der Vorrunde, Frisches zuerst; jeder Slot trägt einen Satz, warum. -6. **Gestaltung (E-0002):** warme Palette (Creme, Terrakotta, Salbei) als - CSS-Variablen, dunkler Modus von Anfang an, shadcn/ui, Icons aus Lucide, keine - Emojis, Schrift lokal (nie vom CDN). Leere Zustände sagen, was als Nächstes zu - tun ist. Mobile zuerst. +6. **Gestaltung (E-0002, E-0009):** Pastell Coral & Lavendel, nur als Token in + `app/globals.css` (nie Farbwerte am Bauteil); Hauptaktion als Pille in Coral mit + dunkler Schrift, Etiketten `.eyebrow` in tiefem Lavendel, Überschriften in Newsreader + (lokal, `app/fonts/`), Abschnitte mit feinen Linien statt Kästen. Dunkler Modus von + Anfang an; `tests/contrast.test.ts` verlangt 4,5:1. shadcn/ui, Icons aus Lucide, + keine Emojis, nichts vom CDN. Leere Zustände sagen, was als Nächstes zu tun ist. + Mobile zuerst. Ändert sich das Symbol: `docs/icon/lunch.svg`, dann + `scripts/app-icons.mjs`, und `olares/icon.png` per PR nach `aimighty/bilder`. 7. **PWA:** Serwist; App-Shell und Rezepte offline, Einkaufsliste als lokale Warteschlange mit Abgleich. Wake Lock im Kochmodus. Web Push mit Opt-in beim ersten sinnvollen Anlass, Kinder nie per Push. diff --git a/OlaresManifest.yaml b/OlaresManifest.yaml index 2a8ccee..753fba4 100644 --- a/OlaresManifest.yaml +++ b/OlaresManifest.yaml @@ -21,7 +21,7 @@ metadata: title: What's cooking? description: The family decides together what's for dinner — and the shopping list writes itself. Runs entirely on your own box. icon: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png - version: 26.11.3 + version: 26.11.4 categories: - Applications @@ -61,7 +61,7 @@ permission: appData: true spec: - versionName: '26.11.3' + versionName: '26.11.4' featuredImage: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png promoteImage: diff --git a/app/(app)/mehr/page.tsx b/app/(app)/mehr/page.tsx index 9ef3575..05102c8 100644 --- a/app/(app)/mehr/page.tsx +++ b/app/(app)/mehr/page.tsx @@ -6,10 +6,11 @@ import { requireSession } from "@/lib/auth/session"; import { withHousehold } from "@/lib/db"; import { isLocale } from "@/lib/locale"; +// Abschnitte ohne Kasten: ein Etikett in Versalien, getrennt durch eine feine Linie. function Section({ title, children }: { title: string; children: React.ReactNode }) { return ( -
-

{title}

+
+

{title}

{children}
); @@ -32,11 +33,13 @@ export default async function MorePage() { const date = new Intl.DateTimeFormat(locale, { dateStyle: "medium" }); return ( -
-

{t("title")}

+
+
+

{t("household")}

+

{session.householdName}

+
-
-

{t("members")}

+
    {members.map((m) => (
  • diff --git a/app/(app)/page.tsx b/app/(app)/page.tsx index d1417f0..5101997 100644 --- a/app/(app)/page.tsx +++ b/app/(app)/page.tsx @@ -1,16 +1,30 @@ import { CookingPot } from "lucide-react"; -import { getTranslations } from "next-intl/server"; +import { getLocale, getTranslations } from "next-intl/server"; import { requireSession } from "@/lib/auth/session"; // „Heute“ — vorerst nur der leere Zustand. Er sagt, was als Nächstes kommt. +// Wo später das Foto des Gerichts steht, steht bis dahin eine Illustration +// (Konzept, „Design-Richtung“: keine Stockfotos). export default async function TodayPage() { - await requireSession(); + const session = await requireSession(); const t = await getTranslations("today"); + const date = new Intl.DateTimeFormat(await getLocale(), { weekday: "long", day: "numeric", month: "long" }).format(new Date()); return ( -
    - -

    {t("emptyTitle")}

    -

    {t("emptyText")}

    +
    +
    +

    {t("eyebrow", { date })}

    +

    {t("greeting", { name: session.displayName })}

    +
    +
    +
    + +
    +
    +

    {t("emptyEyebrow")}

    +

    {t("emptyTitle")}

    +

    {t("emptyText")}

    +
    +
    ); } diff --git a/app/fonts/Newsreader-OFL.txt b/app/fonts/Newsreader-OFL.txt new file mode 100644 index 0000000..03ad13c --- /dev/null +++ b/app/fonts/Newsreader-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader) Newsreader-Italic[opsz,wght].ttf: Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/fonts/newsreader-latin-opsz-normal.woff2 b/app/fonts/newsreader-latin-opsz-normal.woff2 new file mode 100644 index 0000000..c6e5b0e Binary files /dev/null and b/app/fonts/newsreader-latin-opsz-normal.woff2 differ diff --git a/app/globals.css b/app/globals.css index d6c8fda..2fa206d 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,38 +1,42 @@ @import "tailwindcss"; -/* Farben nur als Token (E-0002): warme Palette — Creme, Terrakotta, Salbei. - Dunkler Modus von Anfang an. Werte als OKLCH, Kontrast Text/Fläche >= 4.5:1. */ +/* Farben nur als Token (E-0009, löst die Palette aus E-0002 ab): Pastell, + Coral und Lavendel. Viel helle Fläche, das Foto des Gerichts trägt die + Seite. Die Hauptaktion ist ein Knopf in Pastell-Coral mit dunkler Schrift, + Etiketten und Links in einem tiefen Lavendel. Pastell nie als Schriftfarbe + auf Hell — dafür ist es zu blass. Dunkler Modus von Anfang an; Kontrast + Text/Fläche mindestens 4,5:1 (tests/contrast.test.ts). */ :root { - --background: oklch(0.975 0.012 85); /* Creme */ - --foreground: oklch(0.27 0.02 50); /* warmes Dunkelbraun */ - --muted: oklch(0.935 0.018 80); - --muted-foreground: oklch(0.47 0.025 55); - --card: oklch(0.99 0.008 85); + --background: oklch(0.995 0.004 300); + --foreground: oklch(0.23 0.015 295); + --muted: oklch(0.965 0.022 300); /* Lavendel, ganz hell: Flächen */ + --muted-foreground: oklch(0.47 0.02 295); + --card: oklch(0.995 0.004 300); --card-foreground: var(--foreground); - --border: oklch(0.87 0.02 75); - --primary: oklch(0.55 0.13 40); /* Terrakotta */ - --primary-foreground: oklch(0.99 0.008 85); - --secondary: oklch(0.89 0.04 145); /* Salbei, hell */ - --secondary-foreground: oklch(0.3 0.04 150); - --accent: oklch(0.62 0.06 150); /* Salbei */ - --ring: oklch(0.55 0.13 40); - --radius: 0.875rem; + --border: oklch(0.9 0.015 300); + --primary: oklch(0.82 0.095 32); /* Pastell-Coral: die Hauptaktion */ + --primary-foreground: oklch(0.28 0.06 30); + --secondary: oklch(0.94 0.035 300); + --secondary-foreground: var(--foreground); + --accent: oklch(0.48 0.11 295); /* tiefer Lavendel: Etiketten, Links */ + --ring: oklch(0.48 0.11 295); + --radius: 1rem; } @media (prefers-color-scheme: dark) { :root { - --background: oklch(0.2 0.012 55); - --foreground: oklch(0.94 0.015 80); - --muted: oklch(0.26 0.015 55); - --muted-foreground: oklch(0.74 0.02 70); - --card: oklch(0.24 0.014 55); - --border: oklch(0.34 0.015 55); - --primary: oklch(0.7 0.12 42); - --primary-foreground: oklch(0.2 0.012 55); - --secondary: oklch(0.33 0.04 150); - --secondary-foreground: oklch(0.92 0.03 145); - --accent: oklch(0.72 0.07 150); - --ring: oklch(0.7 0.12 42); + --background: oklch(0.2 0.015 295); + --foreground: oklch(0.95 0.008 300); + --muted: oklch(0.25 0.02 295); + --muted-foreground: oklch(0.76 0.02 300); + --card: oklch(0.24 0.018 295); + --border: oklch(0.35 0.02 295); + --primary: oklch(0.82 0.095 32); + --primary-foreground: oklch(0.26 0.05 30); + --secondary: oklch(0.3 0.025 295); + --secondary-foreground: var(--foreground); + --accent: oklch(0.84 0.07 300); + --ring: oklch(0.84 0.07 300); } } @@ -52,6 +56,7 @@ --color-ring: var(--ring); --radius-xl: var(--radius); --font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif; + --font-serif: var(--font-newsreader), ui-serif, Georgia, serif; } html { @@ -66,3 +71,25 @@ body { /* iPhone: Inhalt nie hinter Insel oder Home-Leiste */ padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); } + +@layer base { + /* Überschriften in der Serifenschrift, etwas enger gesetzt. */ + h1, + h2 { + font-family: var(--font-newsreader), ui-serif, Georgia, serif; + font-weight: 500; + letter-spacing: -0.01em; + } +} + +@layer components { + /* Kleines Etikett in Versalien über einem Abschnitt („ZUTATEN“, „HEUTE“). */ + .eyebrow { + font-family: var(--font-sans); + font-size: 0.75rem; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--accent); + } +} diff --git a/app/layout.tsx b/app/layout.tsx index 8538f82..1d0e107 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,19 @@ import type { Metadata, Viewport } from "next"; import { GeistSans } from "geist/font/sans"; +import localFont from "next/font/local"; import { NextIntlClientProvider } from "next-intl"; import { getLocale, getTranslations } from "next-intl/server"; import "./globals.css"; +// Überschriften in einer Serifenschrift (E-0009), lokal aus app/fonts — +// nie vom CDN. Newsreader, SIL Open Font License (app/fonts/Newsreader-OFL.txt). +const serif = localFont({ + src: "./fonts/newsreader-latin-opsz-normal.woff2", + weight: "200 800", + variable: "--font-newsreader", + display: "swap", +}); + export async function generateMetadata(): Promise { const t = await getTranslations("app"); return { @@ -20,15 +30,15 @@ export const viewport: Viewport = { initialScale: 1, viewportFit: "cover", themeColor: [ - { media: "(prefers-color-scheme: light)", color: "#faf6ee" }, - { media: "(prefers-color-scheme: dark)", color: "#221d19" }, + { media: "(prefers-color-scheme: light)", color: "#fdfcfe" }, + { media: "(prefers-color-scheme: dark)", color: "#1c1823" }, ], }; export default async function RootLayout({ children }: { children: React.ReactNode }) { const locale = await getLocale(); return ( - + {children} diff --git a/app/manifest.ts b/app/manifest.ts index 805a2c3..7a55168 100644 --- a/app/manifest.ts +++ b/app/manifest.ts @@ -9,8 +9,8 @@ export default async function manifest(): Promise { description: t("tagline"), start_url: "/", display: "standalone", - background_color: "#faf6ee", - theme_color: "#faf6ee", + background_color: "#fdfcfe", + theme_color: "#fdfcfe", icons: [ { src: "/icon-192.png", sizes: "192x192", type: "image/png" }, { src: "/icon-512.png", sizes: "512x512", type: "image/png" }, diff --git a/components/app-nav.tsx b/components/app-nav.tsx index 36a5b41..61583fc 100644 --- a/components/app-nav.tsx +++ b/components/app-nav.tsx @@ -19,7 +19,7 @@ export function AppNav() { return (