light/dark mode

This commit is contained in:
Oliver Bryan
2026-01-11 16:23:13 +00:00
parent 5d7faa9ed7
commit 7f40e73678
4 changed files with 54 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ import { ProjectSelect } from "@/components/project-select";
import { ServerConfigurationDialog } from "@/components/server-configuration-dialog";
import { useAuthenticatedSession } from "@/components/session-provider";
import SmallUserDisplay from "@/components/small-user-display";
import ThemeToggle from "@/components/theme-toggle";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
@@ -388,6 +389,7 @@ export default function App() {
)}
</div>
<div className={`flex gap-${BREATHING_ROOM} items-center`}>
<ThemeToggle />
<DropdownMenu>
<DropdownMenuTrigger className="text-sm">
<SmallUserDisplay user={user} />

View File

@@ -1,6 +1,7 @@
import { Icon } from "@iconify/react";
import { Link } from "react-router-dom";
import { useSession } from "@/components/session-provider";
import ThemeToggle from "@/components/theme-toggle";
import { Button } from "@/components/ui/button";
export default function Landing() {
@@ -11,6 +12,7 @@ export default function Landing() {
<header className="relative flex items-center justify-center p-2 border-b">
<div className="text-3xl font-basteleur font-700">Issue</div>
<nav className="absolute right-2 flex items-center gap-4">
<ThemeToggle />
{!isLoading && user ? (
<>
{user && (