Boersenchecker
+= e((string) $currentViewMeta['title']) ?>
+= e((string) $currentViewMeta['description']) ?>
+diff --git a/modules/boersenchecker/assets/boersenchecker.css b/modules/boersenchecker/assets/boersenchecker.css index da5ab8dd..a1749399 100644 --- a/modules/boersenchecker/assets/boersenchecker.css +++ b/modules/boersenchecker/assets/boersenchecker.css @@ -12,6 +12,63 @@ color: var(--bc-text); } +.bc-frame { + height: 100%; + min-height: 0; +} + +.bc-sidebar { + gap: 0; +} + +.bc-brand { + margin-bottom: 18px; +} + +.bc-nav-list { + gap: 12px; +} + +.bc-nav-button { + text-decoration: none; +} + +.bc-nav-button strong { + display: block; + margin-bottom: 4px; +} + +.bc-main { + background: transparent; +} + +.bc-panel-shell { + max-width: 1280px; +} + +.bc-hero { + align-items: flex-start; +} + +.bc-pill-row { + display: flex; + gap: 10px; + flex-wrap: wrap; +} + +.bc-pill { + display: inline-flex; + align-items: center; + min-height: 36px; + padding: 8px 14px; + border-radius: 999px; + border: 1px solid color-mix(in srgb, var(--bc-accent) 34%, transparent); + background: color-mix(in srgb, var(--bc-accent) 10%, white); + color: var(--bc-text); + font-size: 0.86rem; + font-weight: 700; +} + .bc-page { display: grid; gap: 16px; @@ -331,6 +388,10 @@ } @media (max-width: 980px) { + .bc-frame { + grid-template-columns: 1fr; + } + .bc-hero-top { grid-template-columns: 1fr; } diff --git a/modules/boersenchecker/pages/index.php b/modules/boersenchecker/pages/index.php index 6f99f7c6..b7dd24b3 100644 --- a/modules/boersenchecker/pages/index.php +++ b/modules/boersenchecker/pages/index.php @@ -19,6 +19,33 @@ if (!in_array($view, $allowedViews, true)) { $view = 'overview'; } +$viewMeta = [ + 'overview' => [ + 'label' => 'Ueberblick', + 'title' => 'Depot-Ueberblick', + 'description' => 'Kennzahlen, Kursverlauf und Performance fuer das ausgewaehlte Depot.', + 'nav_description' => 'Marktueberblick, Positionen und gespeicherte Kurse.', + ], + 'depotverwaltung' => [ + 'label' => 'Depotverwaltung', + 'title' => 'Depotverwaltung', + 'description' => 'Depots, Positionen und manuelle Kursdaten zentral verwalten.', + 'nav_description' => 'Depots pflegen, FX abrufen und Positionen bearbeiten.', + ], + 'aktienverwaltung' => [ + 'label' => 'Aktienverwaltung', + 'title' => 'Aktienverwaltung', + 'description' => 'Wertpapier-Stammdaten, Suche und Kursverlauf pro Aktie pflegen.', + 'nav_description' => 'Ticker, ISIN, Markt und Kursverlauf pro Instrument.', + ], + 'setup' => [ + 'label' => 'Setup', + 'title' => 'Setup', + 'description' => 'API-Zugaenge, Datenbankoptionen und Modulvorgaben verwalten.', + 'nav_description' => 'Schluessel, Timeouts und Modulkonfiguration speichern.', + ], +]; + $assetVersion = static function (string $relativePath): string { $fullPath = dirname(__DIR__) . '/' . ltrim($relativePath, '/'); $mtime = is_file($fullPath) ? filemtime($fullPath) : false; @@ -91,10 +118,6 @@ $renderSetup = static function (): void { } } - echo module_shell_header('boersenchecker', [ - 'title' => 'Setup', - 'description' => 'Modulkonfiguration, API-Zugang und optionale separate Datenbank.', - ]); ?>
Boersenchecker
+= e((string) $currentViewMeta['description']) ?>
+