refactor: remove legacy layout components and unused mood tracker page

This commit is contained in:
poyrazavsever
2026-06-08 23:54:32 +03:00
parent 58c8620db6
commit 99d27f3a6a
3 changed files with 0 additions and 523 deletions
-19
View File
@@ -1,19 +0,0 @@
"use client";
import { User } from "lucide-react";
export function Header() {
return (
<header className="h-16 border-b border-border/40 bg-background/40 backdrop-blur-md flex items-center justify-between px-6 shrink-0 sticky top-0 z-10">
<div className="text-sm text-muted-foreground font-medium">
Kişisel Odak Alanı
</div>
<div className="flex items-center gap-3">
<div className="text-sm font-medium">Lokal Kullanıcı</div>
<div className="flex items-center justify-center h-9 w-9 bg-secondary text-secondary-foreground rounded-full border border-border/50">
<User className="h-5 w-5" />
</div>
</div>
</header>
);
}
-62
View File
@@ -1,62 +0,0 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import {
LayoutDashboard,
Book,
CheckSquare,
MessageCircle,
Settings,
BrainCircuit,
} from "lucide-react";
import { cn } from "@/lib/utils";
const routes = [
{ name: "Dashboard", path: "/", icon: LayoutDashboard },
{ name: "Günlük", path: "/journal", icon: Book },
{ name: "Görevler", path: "/tasks", icon: CheckSquare },
{ name: "Sohbet", path: "/chat", icon: MessageCircle },
{ name: "Ayarlar", path: "/settings", icon: Settings },
];
export function Sidebar() {
const pathname = usePathname();
return (
<aside className="border-r border-border bg-secondary min-h-screen flex flex-col shrink-0">
<div className="h-16 flex items-center px-6 border-b border-border text-primary">
<BrainCircuit className="h-6 w-6 mr-2" />
<h2 className="text-xl font-bold tracking-tight">MindSpace</h2>
</div>
<nav className="flex-1 p-4 space-y-1">
{routes.map((route) => {
const isActive =
pathname === route.path || pathname?.startsWith(route.path + "/");
// Home route exact match check
const isExactActive =
route.path === "/" ? pathname === "/" : isActive;
return (
<Link
key={route.path}
href={route.path}
className={cn(
"flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors text-sm font-medium",
isExactActive
? "bg-primary text-primary-foreground"
: "text-muted-foreground hover:bg-muted hover:text-foreground",
)}
>
<route.icon className="h-5 w-5" />
{route.name}
</Link>
);
})}
</nav>
<div className="p-4 border-t border-border/50 text-xs text-muted-foreground/60 text-center">
Local-First AI Workspace
</div>
</aside>
);
}