feat: adding header

This commit is contained in:
Ruben 2025-03-25 21:08:14 +01:00
parent cc6341adb2
commit 99f3be65bc
4 changed files with 27 additions and 9 deletions

View File

@ -1,16 +1,16 @@
import { ReactNode } from "react"; import { ReactNode } from "react";
import Image from "next/image";
import { icons } from "#/assets/icons"
import "../../assets/css/admin.css" import "../../assets/css/admin.css"
import Sidebar from "../components/sidebar"; import Sidebar from "../components/sidebar";
import Header from "../components/adminHeader";
export default function Dashboard({ children }: { children: ReactNode }) { export default function Dashboard({ children }: { children: ReactNode }) {
return ( return (
<div className="r-flex-between"> <div className="r-flex-between">
<Sidebar/> <Sidebar />
<main className="flex-grow-1 min-w-0 pt-md-1 pt-sm-5"> <main className="flex-grow-1 min-w-0 pt-md-1 pt-sm-5">
<Header/>
<div className="p-4"> <div className="p-4">
{children} {children}
</div> </div>

View File

@ -0,0 +1,18 @@
import Image from "next/image";
import { icons } from "#/assets/icons"
export default function AdminHeader() {
return (
<>
<nav className="header r-flex-between px-[44px] py-[20px] ">
<p className="name text-[26px]">Bienvenue, <span>Ken B.</span> </p>
<div className="r-flex-between justify-center items-center r-gap-12">
<Image src={icons.notificationsIcon} alt="Notifications" />
<Image src={icons.profilePicture} alt="ProfilePicture" />
<Image src={icons.arrowUp} alt="arrowUp" />
</div>
</nav>
</>
)
}

View File

@ -18,8 +18,8 @@ export default function Sidebar() {
return ( return (
<> <>
<div className="sidebar r-m-0 d-flex flex-column pt-[16px] max-w-[90px] h-[100vh] relative "> <div className="sidebar r-m-0 d-flex flex-column pt-[25px] max-w-[90px] h-[100vh] relative ">
<div className="logo r-flex-center pt-[13px] px-[20px] "> <div className="logo r-flex-center px-[20px] ">
<Image src={icons.logo} alt="Logo" className="scale-95" /> <Image src={icons.logo} alt="Logo" className="scale-95" />
</div> </div>
<div className="nav-menu r-column-center h-max pt-[160px] r-gap-40 "> <div className="nav-menu r-column-center h-max pt-[160px] r-gap-40 ">

View File

@ -1,20 +1,20 @@
@import "tailwindcss"; @import "tailwindcss";
:root { :root {
--foreground: #000000; --foreground: #04060F;
--background: #ffffff; --background: #ffffff;
--primary: #246BFD; --primary: #246BFD;
--cinder: #E7E5E4; --cinder: #E7E5E4;
} }
[ data-theme="dark"] { [ data-theme="dark"] {
--foreground: #000000; --foreground: #04060F;
--background: #ffffff; --background: #ffffff;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--foreground: #000000; --foreground: #04060F;
--background: #ffffff; --background: #ffffff;
} }
} }