diff --git a/app/app.css b/app/app.css index c9844a2..40610c4 100644 --- a/app/app.css +++ b/app/app.css @@ -1,17 +1,28 @@ @import "tailwindcss"; :root { - --background: #f9fafb; - --foreground: #111827; + --background: #f8fafc; + --foreground: #0f172a; + --sidebar-width: 16rem; } body { background: var(--background); color: var(--foreground); - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } * { box-sizing: border-box; } + +@keyframes fade-in { + from { opacity: 0; transform: translateY(8px); } + to { opacity: 1; transform: translateY(0); } +} + +.animate-fade-in { + animation: fade-in 0.3s ease-out forwards; +} diff --git a/app/components/layout/sidebar.tsx b/app/components/layout/sidebar.tsx index 2bf94ed..1c3e4be 100644 --- a/app/components/layout/sidebar.tsx +++ b/app/components/layout/sidebar.tsx @@ -1,13 +1,6 @@ import { Link, Form, useLocation } from "react-router"; -import { - Calculator, - Building2, - LayoutDashboard, - LogOut, - ChevronRight, -} from "lucide-react"; +import { Calculator, Building2, LayoutDashboard, LogOut, ChevronRight } from "lucide-react"; import { cn } from "@/lib/utils"; -import { Button } from "@/components/ui/button"; interface NavItem { label: string; @@ -20,57 +13,91 @@ const navItems: NavItem[] = [ { label: "Mandanten", href: "/companies", icon: }, ]; +function getInitials(name?: string | null): string { + if (!name) return "?"; + return name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2); +} + export function Sidebar({ userName }: { userName?: string | null }) { const location = useLocation(); const pathname = location.pathname; return ( -