Navigation: unfertige Bereiche ausblenden
Suche, Benachrichtigungen, Chats und Einstellungen sind noch Platzhalter und erscheinen vorerst nicht in Seitenleiste, TabBar und Kopfleiste. Die Routen bleiben bestehen; freigeschaltet wird über unfinished in Nav.tsx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
66ae3ab975
commit
0cddf2b00f
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Link, Outlet, useLocation } from "react-router";
|
||||
import { Menu, Settings } from "lucide-react";
|
||||
import { Sidebar, TabBar } from "./Nav";
|
||||
import { Sidebar, TabBar, isReady } from "./Nav";
|
||||
|
||||
// Tage ohne Datenverlust (fester Startpunkt, Kontinuität seit der alten
|
||||
// Version).
|
||||
@@ -46,9 +46,14 @@ export function Layout() {
|
||||
<Menu className="icon" />
|
||||
</button>
|
||||
<Link to="/"><h1>Kontrollverlust</h1></Link>
|
||||
<Link className="icon-btn mobile-only" to="/settings" aria-label="Einstellungen">
|
||||
<Settings className="icon" />
|
||||
</Link>
|
||||
{/* Ohne Einstellungsrad hält ein leerer Platzhalter den Titel mittig. */}
|
||||
{isReady("/settings") ? (
|
||||
<Link className="icon-btn mobile-only" to="/settings" aria-label="Einstellungen">
|
||||
<Settings className="icon" />
|
||||
</Link>
|
||||
) : (
|
||||
<span className="icon-btn mobile-only" aria-hidden="true"><span className="icon" /></span>
|
||||
)}
|
||||
</div>
|
||||
{path === "/" && (
|
||||
<p id="stats" className="tagline">
|
||||
|
||||
Reference in New Issue
Block a user