diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 482c19c..f74e65e 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '390'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '391'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/welcome.js b/backend/static/js/pages/welcome.js index 388172c..040d21c 100644 --- a/backend/static/js/pages/welcome.js +++ b/backend/static/js/pages/welcome.js @@ -1,6 +1,5 @@ /* ============================================================ BAN YARO — Willkommensseite - Über die App, Features, Installations-Anleitung. ============================================================ */ window.Page_welcome = (() => { @@ -8,9 +7,6 @@ window.Page_welcome = (() => { let _container = null; let _appState = null; - // ---------------------------------------------------------- - // INIT - // ---------------------------------------------------------- async function init(container, appState) { _container = container; _appState = appState; @@ -20,144 +16,208 @@ window.Page_welcome = (() => { function refresh() { _render(); } function onDogChange() {} + // ---------------------------------------------------------- + // FEATURES — Icon, Titel, Beschreibung, Zielseite + // ---------------------------------------------------------- + const FEATURES = [ + { icon: 'book-open', label: 'Tagebuch', page: 'diary' }, + { icon: 'first-aid', label: 'Gesundheit', page: 'health' }, + { icon: 'map-trifold', label: 'Karte', page: 'map' }, + { icon: 'path', label: 'Routen', page: 'routes' }, + { icon: 'target', label: 'Training', page: 'uebungen' }, + { icon: 'warning-octagon', label: 'Giftköder', page: 'poison' }, + { icon: 'users', label: 'Freunde', page: 'friends' }, + { icon: 'chat-circle-dots', label: 'Nachrichten', page: 'chat' }, + { icon: 'paw-print', label: 'Gassi-Treffen', page: 'walks' }, + { icon: 'house-line', label: 'Sitting', page: 'sitting' }, + { icon: 'push-pin', label: 'Forum', page: 'forum' }, + { icon: 'books', label: 'Rassen-Wiki', page: 'wiki' }, + { icon: 'calendar-dots', label: 'Events', page: 'events' }, + { icon: 'bell', label: 'Neuigkeiten', page: 'notifications' }, + { icon: 'handshake', label: 'Knigge', page: 'knigge' }, + { icon: 'magnifying-glass', label: 'Vermisste', page: 'lost' }, + ]; + // ---------------------------------------------------------- // RENDER // ---------------------------------------------------------- function _render() { const isInstalled = window.matchMedia('(display-mode: standalone)').matches || window.navigator.standalone === true; + const user = _appState?.user; _container.innerHTML = ` -
- Die Plattform für Hundebesitzer —
Tagebuch, Gesundheit, Community und mehr.
+
+
+ ${user + ? `Schön, dass du wieder da bist${user.name ? ', ' + UI.escape(user.name) + '' : ''}! 🐾` + : 'Die Community für Hundebesitzer — Tagebuch, Gesundheit, Karte und mehr.'}
-