Navigation: Seitenleiste auf dem Desktop, Kopf- und TabBar mobil

Desktop: feste Seitenleiste mit allen Zielen (Icon + Titel). Mobil: Kopfleiste
mit Menü, Titel und Einstellungen, unten die TabBar mit Feed, Suche,
Benachrichtigungen, Chats und Profil; das Menü blendet die Seitenleiste als
Schublade ein. Suche, Benachrichtigungen, Chats und Einstellungen sind
Platzhalter, /me leitet aufs eigene Profil bzw. zum Login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
irrlicht
2026-10-09 21:48:30 +02:00
co-authored by Claude Opus 5.5
parent f84ba061a8
commit 15b0bfc69c
8 changed files with 451 additions and 53 deletions
+148 -6
View File
@@ -52,7 +52,8 @@ header {
padding: 0.5rem 0;
}
/* Rechtliche Links über der Überschrift. */
/* Rechtliche Links über der Überschrift (nur noch die statischen Rechtstexte,
die App hat die Seitenleiste). */
#legal {
margin-bottom: 0.3rem;
}
@@ -62,7 +63,8 @@ header {
}
/* Klick auf die Überschrift führt zurück zum Feed. */
header > a {
header > a,
#topbar > a {
text-decoration: none;
}
@@ -102,13 +104,153 @@ h2 {
width: auto;
}
#headerbar {
background-color: white;
text-align: center;
/* --- Navigation ---
Desktop (ab 900 px): Seitenleiste fest links, Inhalt rechts daneben.
Mobil: Kopfleiste oben (Menü, Titel, Einstellungen), TabBar unten, die
Seitenleiste ist eine Schublade hinter dem Menü. */
.icon {
flex: 0 0 auto;
vertical-align: middle;
}
#headerbar a {
#topbar {
display: flex;
align-items: center;
justify-content: center;
}
.icon-btn {
display: inline-flex;
padding: 0.4rem;
margin: 0;
border: none;
background-color: white;
color: black;
}
#sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 30;
width: 15rem;
overflow-y: auto;
background-color: white;
border-right: 1px solid black;
}
#sidebar ul {
list-style: none;
margin: 0;
padding: 0.5rem 0;
}
#sidebar ul + ul {
border-top: 1px solid black;
}
#sidebar a,
#sidebar button {
display: flex;
align-items: center;
gap: 0.6rem;
width: 100%;
box-sizing: border-box;
margin: 0;
padding: 0.4rem 1rem;
border: none;
text-align: left;
text-decoration: none;
color: black;
background-color: white;
}
#sidebar button span {
font-size: 1.2rem;
}
#sidebar a:hover,
#sidebar button:hover {
text-decoration: underline;
}
/* Aktuelles Ziel invertiert (NavLink setzt .active). */
#sidebar a.active,
#tabbar a.active {
background-color: black;
color: white;
}
#tabbar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
display: flex;
background-color: white;
border-top: 1px solid black;
}
#tabbar a {
flex: 1;
display: flex;
justify-content: center;
padding: 0.6rem 0;
}
.backdrop {
position: fixed;
inset: 0;
z-index: 25;
background-color: rgba(0, 0, 0, 0.4);
}
@media (max-width: 899px) {
header {
position: sticky;
top: 0;
z-index: 10;
padding: 0;
border-bottom: 1px solid black;
}
#topbar {
justify-content: space-between;
}
#topbar h1 {
font-size: 1.6rem;
}
/* Geschlossen: aus dem Bild und aus der Tab-Reihenfolge. */
#sidebar {
visibility: hidden;
transform: translateX(-100%);
}
#sidebar.open {
visibility: visible;
transform: none;
}
/* Platz für die TabBar, damit das Seitenende nicht darunter liegt. */
.page {
padding-bottom: 3.5rem;
}
}
@media (min-width: 900px) {
.page {
margin-left: 15rem;
}
.mobile-only,
#tabbar,
.backdrop {
display: none;
}
}
/* --- Inhaltsspalte --- */