feat: implement layout components, shared input UI, and define global color theme
This commit is contained in:
@@ -4,13 +4,13 @@ import { User } from "lucide-react";
|
||||
|
||||
export function Header() {
|
||||
return (
|
||||
<header className="h-16 border-b border-border bg-background flex items-center justify-between px-6 shrink-0">
|
||||
<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-muted text-muted-foreground rounded-full">
|
||||
<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>
|
||||
|
||||
@@ -24,7 +24,7 @@ export function Sidebar() {
|
||||
const pathname = usePathname();
|
||||
|
||||
return (
|
||||
<aside className="w-64 border-r border-border bg-card min-h-screen flex flex-col shrink-0">
|
||||
<aside className="w-64 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>
|
||||
|
||||
@@ -8,7 +8,7 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
||||
type={type}
|
||||
data-slot="input"
|
||||
className={cn(
|
||||
"h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
||||
"h-8 w-full min-w-0 rounded-lg border border-input bg-input-bg px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-sm",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user