design sidebar & head layout & page dashboard

This commit is contained in:
Ehsan
2024-09-10 02:00:41 +03:30
parent 60749d3b8c
commit dffdab7139
41 changed files with 1350 additions and 170 deletions
+32
View File
@@ -0,0 +1,32 @@
'use client';
import { useEffect } from "react";
import Header from './header';
import Sidebar from './sidebar';
import UserDetail from './userDetail';
// AOS
import Aos from "aos";
import "aos/dist/aos.css";
function LayoutPanel({ children, data }) {
useEffect(() => {
Aos.init({ duration: 1000 });
}, [])
return (
<div className="flex min-h-screen">
<Sidebar />
<main className="w-full">
<Header />
<section className="my-[24px] opacity-element mx-[16px] bg-[#FAFAFA]">
{children}
</section>
</main>
<UserDetail data={data} />
</div>
)
}
export default LayoutPanel