Navigation: Rechtstexte ohne Icon
Die Sigillen als Navigations-Icons wirkten zu prätentiös; Datenschutz, Beitragsordnung und Impressum stehen jetzt nur als Text in der Seitenleiste. 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
2b17f6b58c
commit
66ae3ab975
+5
-10
@@ -4,7 +4,7 @@ import { Bell, ChartColumn, House, LogOut, MessageSquare, Search, Settings, User
|
||||
import { api } from "./api";
|
||||
import { useAuthChanged, useMe } from "./auth";
|
||||
|
||||
type Target = { title: string; icon: ReactNode; to: string; end?: boolean };
|
||||
type Target = { title: string; icon?: ReactNode; to: string; end?: boolean };
|
||||
|
||||
// useMainTargets liefert die fünf wichtigsten Ziele (TabBar, Kopf der
|
||||
// Seitenleiste). Das Profil zeigt angemeldet aufs eigene Profil, sonst auf
|
||||
@@ -26,16 +26,11 @@ const moreTargets: Target[] = [
|
||||
{ title: "Statistik", icon: <ChartColumn className="icon" />, to: "/stats" },
|
||||
];
|
||||
|
||||
// Die Rechtstexte tragen die Sigillen aus static/assets/sigils statt
|
||||
// lucide-Icons.
|
||||
function Sigil({ name }: { name: string }) {
|
||||
return <img className="icon sigil" src={`/static/assets/sigils/${name}.svg`} alt="" />;
|
||||
}
|
||||
|
||||
// Die Rechtstexte stehen ohne Icon in der Seitenleiste.
|
||||
const docs: Target[] = [
|
||||
{ title: "Datenschutz", icon: <Sigil name="chaos_star" />, to: "/datenschutz" },
|
||||
{ title: "Beitragsordnung", icon: <Sigil name="anarchy_a" />, to: "/beitragsordnung" },
|
||||
{ title: "Impressum", icon: <Sigil name="sab_cat" />, to: "/impressum" },
|
||||
{ title: "Datenschutz", to: "/datenschutz" },
|
||||
{ title: "Beitragsordnung", to: "/beitragsordnung" },
|
||||
{ title: "Impressum", to: "/impressum" },
|
||||
];
|
||||
|
||||
// Sidebar: alle Ziele mit Icon und Titel. Auf dem Desktop immer sichtbar,
|
||||
|
||||
@@ -104,11 +104,6 @@ h2 {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Sigillen sind schwarze Bilder: im aktiven (invertierten) Eintrag weiß. */
|
||||
#sidebar a.active .sigil {
|
||||
filter: invert(1);
|
||||
}
|
||||
|
||||
#topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user