biohazard-vfx/.next/static/chunks/app/admin/layout-8225135dc6fefcad.js
Nicholai 0d1f6012ec
Some checks are pending
Build and Push to Docker Hub / Push Docker image to Docker Hub (push) Waiting to run
Build and Push Docker Image / build-and-push (push) Waiting to run
delinted and successfully builds
2025-08-16 06:37:34 -06:00

1 line
4.1 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[581],{61711:(e,a,t)=>{Promise.resolve().then(t.bind(t,95506))},95506:(e,a,t)=>{"use strict";t.d(a,{AdminSidebar:()=>d,Navigation:()=>o});var n=t(95155),s=t(6874),l=t.n(s),r=t(35695),i=t(12115),c=t(12108);function o(){let[e,a]=(0,i.useState)(!1),t=(0,r.usePathname)(),{data:s,status:o}=(0,c.useSession)(),d=[{href:"/",label:"Home"},{href:"/projects",label:"Projects"},{href:"/crew",label:"Crew"},{href:"/blog",label:"Blog"},{href:"/faq",label:"FAQ"},{href:"/contact",label:"Contact"}],h="authenticated"===o?[...d,{href:"/admin",label:"Admin"}]:d;return(0,i.useEffect)(()=>{let t=t=>{let n=document.getElementById("navigation-panel"),s=document.getElementById("menu-button");e&&n&&s&&!n.contains(t.target)&&!s.contains(t.target)&&a(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e]),(0,i.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e&&a(!1)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{id:"menu-button",onClick:()=>a(!e),className:"fixed top-6 left-6 z-50 w-12 h-12 flex flex-col justify-center items-center gap-1.5 rounded-lg bg-surface-700/80 backdrop-blur-sm transition-all duration-300 hover:bg-surface-600","aria-label":"Toggle menu",children:[(0,n.jsx)("span",{className:"block w-6 h-0.5 bg-white transition-all duration-300 ".concat(e?"rotate-45 translate-y-1":"-translate-y-1")}),(0,n.jsx)("span",{className:"block w-6 h-0.5 bg-white transition-all duration-300 ".concat(e?"opacity-0":"opacity-100")}),(0,n.jsx)("span",{className:"block w-6 h-0.5 bg-white transition-all duration-300 ".concat(e?"-rotate-45 -translate-y-1":"translate-y-1")})]}),e&&(0,n.jsx)("div",{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm transition-opacity duration-300",style:{pointerEvents:"auto"}}),(0,n.jsx)("nav",{id:"navigation-panel",className:"fixed left-0 top-0 z-50 h-full w-80 bg-surface-800 border-r border-surface-500/50 transition-transform duration-300 ease-out-expo ".concat(e?"translate-x-0":"-translate-x-full"),children:(0,n.jsxs)("div",{className:"flex h-full flex-col pt-20",children:[(0,n.jsxs)("div",{className:"px-6 pb-8",children:[(0,n.jsx)("h2",{className:"text-2xl font-display tracking-tight text-white",children:"Biohazard VFX"}),(0,n.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Visual Effects Studio"})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto px-6",children:(0,n.jsx)("ul",{className:"space-y-1",children:h.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(l(),{href:e.href,onClick:()=>a(!1),className:"flex items-center rounded-lg px-4 py-3 text-base font-medium transition-all duration-200 ".concat(t===e.href?"bg-surface-700 text-white":"text-text-muted hover:bg-surface-700 hover:text-white"),children:(0,n.jsx)("span",{children:e.label})})},e.href))})}),(0,n.jsx)("div",{className:"p-6 border-t border-surface-500/30",children:(0,n.jsx)("div",{className:"text-xs text-text-muted",children:(0,n.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," Biohazard VFX"]})})})]})})]})}function d(){let e=(0,r.usePathname)();return(0,n.jsx)("aside",{className:"w-64 h-screen bg-surface-800 border-r border-surface-500 fixed left-0 top-0",children:(0,n.jsxs)("div",{className:"p-6",children:[(0,n.jsx)("h2",{className:"text-2xl font-display text-white mb-8",children:"Admin Panel"}),(0,n.jsx)("nav",{children:(0,n.jsx)("ul",{className:"space-y-2",children:[{href:"/admin",label:"Dashboard",icon:"\uD83D\uDCCA"},{href:"/admin/projects",label:"Projects",icon:"\uD83C\uDFAC"},{href:"/admin/blog",label:"Blog",icon:"\uD83D\uDCDD"},{href:"/admin/team",label:"Team",icon:"\uD83D\uDC65"},{href:"/admin/faq",label:"FAQs",icon:"❓"},{href:"/admin/media",label:"Media",icon:"\uD83D\uDCC1"}].map(a=>(0,n.jsx)("li",{children:(0,n.jsxs)(l(),{href:a.href,className:"nav-item ".concat(e===a.href?"nav-item-active":""),children:[(0,n.jsx)("span",{className:"text-xl",children:a.icon}),(0,n.jsx)("span",{children:a.label})]})},a.href))})})]})})}}},e=>{e.O(0,[874,454,441,964,120],()=>e(e.s=61711)),_N_E=e.O()}]);