profi sayfası

This commit is contained in:
2026-01-10 20:38:06 +03:00
parent dd2d7b8379
commit a41da2286f
17 changed files with 476 additions and 93 deletions

View File

@@ -1,3 +1,4 @@
import { getProfile } from "@/lib/data"
import { createClient } from "@/lib/supabase-server"
import { redirect } from "next/navigation"
import { Sidebar } from "@/components/dashboard/sidebar"
@@ -15,6 +16,8 @@ export default async function DashboardLayout({
redirect("/login")
}
const profile = await getProfile(user.id)
return (
<div className="flex min-h-screen w-full flex-col bg-muted/40">
<aside className="fixed inset-y-0 left-0 z-10 hidden w-64 flex-col border-r bg-background sm:flex">
@@ -24,7 +27,7 @@ export default async function DashboardLayout({
<Sidebar className="flex-1" />
</aside>
<div className="flex flex-col sm:gap-4 sm:py-4 sm:pl-64">
<DashboardHeader />
<DashboardHeader user={user} profile={profile} />
<main className="grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8">
{children}
</main>