From 708830fe0a11b62c9f82fa906badf84861defd1b Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 27 Jul 2026 01:36:24 +0200 Subject: [PATCH] avatar generator --- .projektstructure.txt | 2 +- PROJECT_CONTEXT.md | 1 + README.md | 1 + partials/landing/account/dashboard.php | 4 ++-- partials/landing/community/index.php | 4 ++-- partials/landing/community/thread.php | 4 ++-- partials/structure/nav.php | 2 +- src/App/AccountPages.php | 6 ++++-- src/App/{Avatar.php => Avatar/Lorelei.php} | 8 ++++---- src/App/Community.php | 8 +++++--- src/App/ProfileSettings.php | 4 +++- 11 files changed, 26 insertions(+), 18 deletions(-) rename src/App/{Avatar.php => Avatar/Lorelei.php} (97%) diff --git a/.projektstructure.txt b/.projektstructure.txt index d133331..78612a8 100755 --- a/.projektstructure.txt +++ b/.projektstructure.txt @@ -2,7 +2,7 @@ Anweisung: Projektstruktur (Basis-Template) wie in „papa-kind-treff“ Aktueller Projektstand - Papa-Kind-Treff nutzt im Mitgliederbereich DiceBear `lorelei` über einen internen API-Proxy mit lokalem Cache. -- Relevante Logik liegt in `src/App/Avatar.php`. +- Relevante Logik liegt in `src/App/Avatar/Lorelei.php`. - Der Avatar-Proxy liegt unter `public/page/api/avatar.php`. - Änderungen an Funktionen mit Cookies, LocalStorage, SessionStorage, Geolocation, Tracking oder Drittanbietern müssen immer auch in Datenschutz-/Cookie-Hinweisen und im Consent-Flow berücksichtigt werden. diff --git a/PROJECT_CONTEXT.md b/PROJECT_CONTEXT.md index 60658d1..a9613e2 100644 --- a/PROJECT_CONTEXT.md +++ b/PROJECT_CONTEXT.md @@ -11,6 +11,7 @@ Papa-Kind-Treff ist eine PHP-basierte Plattform für Väter. Kernbereiche sind l - Geschäftslogik unter `src/App/` - MySQL/MariaDB-Schema in `schema.sql` - Globales Frontend vor allem über `public/assets/js/app.js` und `public/assets/css/app.css` +- Avatar-Style `Lorelei` liegt getrennt unter `src/App/Avatar/Lorelei.php` ## Wichtige Produktentscheidungen - Die Ansprache im Frontend soll immer den aktuellen Nutzer direkt ansprechen. diff --git a/README.md b/README.md index 4e02bd7..82f1a09 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Papa-Kind-Treff ist eine PHP-basierte Plattform für Väter mit Fokus auf lokale - `owner` Die Rechteverteilung und Community-Logik sind in `src/App/CommunityAccess.php` abgebildet. +Die Lorelei-Avatarlogik liegt in `src/App/Avatar/Lorelei.php`. ## Consent und rechtlich relevante Integrationen Der aktuelle Code nutzt oder kann nutzen: diff --git a/partials/landing/account/dashboard.php b/partials/landing/account/dashboard.php index 6b38ffe..adff6fb 100755 --- a/partials/landing/account/dashboard.php +++ b/partials/landing/account/dashboard.php @@ -63,7 +63,7 @@ $sectionLinks = [
- +

Dein Profilbild

@@ -300,7 +300,7 @@ $sectionLinks = [
- +

Wähle eine Lorelei-Variante oder lade dir direkt neue Vorschläge. Die Vorschau aktualisiert sich sofort.

diff --git a/partials/landing/community/index.php b/partials/landing/community/index.php index dba6e51..5527a5e 100644 --- a/partials/landing/community/index.php +++ b/partials/landing/community/index.php @@ -115,7 +115,7 @@ $threads = $community ?>
-
+

@@ -206,7 +206,7 @@ $threads = $community ?>
-
+

diff --git a/partials/landing/community/thread.php b/partials/landing/community/thread.php index 1222bfe..0a65e71 100644 --- a/partials/landing/community/thread.php +++ b/partials/landing/community/thread.php @@ -154,7 +154,7 @@ $userVotes = ($access && $userId) ? $access->getUserPostVotes((int)$userId, $pos