tahamajs/IE / Projects /front /src /components /layout /DashboardLayout.tsx
tahamajs's picture
download
raw
1.76 kB
// src/components/layout/DashboardLayout.tsx
import { Outlet } from "react-router-dom";
import { DashboardSidebar } from "@/components/dashboard/DashboardSidebar";
import { DashboardHeader } from "@/components/dashboard/DashboardHeader";
import { useAuth } from "@/context/AuthContext";
import { motion } from "framer-motion";
export default function DashboardLayout() {
const { user } = useAuth();
return (
<div className="min-h-screen bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-100 transition-colors duration-300 relative overflow-hidden">
{/* Decorative ambient background */}
<div className="fixed top-[-10%] left-[20%] -z-10 w-[600px] h-[600px] bg-indigo-500/10 blur-[120px] rounded-full mix-blend-multiply dark:mix-blend-screen pointer-events-none" />
<div className="fixed bottom-[-10%] right-[20%] -z-10 w-[600px] h-[600px] bg-rose-500/10 blur-[120px] rounded-full mix-blend-multiply dark:mix-blend-screen pointer-events-none" />
<div className="mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8 relative z-10">
<DashboardHeader user={user ?? { username: "guest" }} />
<div className="flex flex-col gap-8 lg:flex-row mt-8">
<DashboardSidebar />
<main className="flex-1 min-w-0">
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, ease: "easeOut" }}
className="premium-glass bg-white/60 dark:bg-slate-900/40 backdrop-blur-xl border border-slate-200/50 dark:border-slate-800/50 shadow-xl rounded-3xl p-6 md:p-8"
>
<Outlet />
</motion.div>
</main>
</div>
</div>
</div>
);
}

Xet Storage Details

Size:
1.76 kB
·
Xet hash:
0c26a0346cf6c5c56072155d05291858ea1a202678c130d944af0e8816389a07

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.