biohazard-vfx/.next/static/chunks/app/projects/[id]/page-92f71c869fcc0d18.js
Nicholai 98a4c8f7db
Some checks failed
Build and Push to Docker Hub / Push Docker image to Docker Hub (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Fixed uploading and database integration, slightly updated NAV and made admin functionality live
2025-08-16 11:46:04 -06:00

1 line
4.9 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6801],{20117:(e,t,l)=>{"use strict";l.d(t,{default:()=>m});var s=l(95155),r=l(12115);function a(e){let{title:t,description:l,children:r,className:a="",fullWidth:i=!1}=e;return(0,s.jsx)("div",{className:"min-h-screen bg-bg-dark py-24 ".concat(a),children:(0,s.jsxs)("div",{className:i?"px-6 md:px-8 lg:px-10":"max-w-7xl mx-auto px-6 md:px-8 lg:px-10",children:[(0,s.jsxs)("header",{className:"mb-16 text-center",children:[(0,s.jsx)("h1",{className:"text-4xl font-montserrat font-bold text-primary",children:t}),l&&(0,s.jsx)("p",{className:"text-text-muted mt-4 max-w-2xl mx-auto",children:l})]}),(0,s.jsx)("main",{children:r})]})})}var i=l(30961),c=l(93836),d=l(82814),n=l(38391);function o(e){let{content:t,className:l=""}=e;return(0,s.jsx)("div",{className:"prose prose-invert prose-lg max-w-none ".concat(l),children:(0,s.jsx)(i.oz,{remarkPlugins:[c.A],components:{h1:e=>{let{children:t}=e;return(0,s.jsx)("h1",{className:"text-4xl font-bold text-primary mb-6 mt-8",children:t})},h2:e=>{let{children:t}=e;return(0,s.jsx)("h2",{className:"text-3xl font-bold text-primary mb-4 mt-6",children:t})},h3:e=>{let{children:t}=e;return(0,s.jsx)("h3",{className:"text-2xl font-semibold text-primary mb-3 mt-4",children:t})},p:e=>{let{children:t}=e;return(0,s.jsx)("p",{className:"text-text-light mb-4 leading-relaxed",children:t})},a:e=>{let{href:t,children:l}=e;return(0,s.jsx)("a",{href:t,className:"text-accent hover:text-accent/80 transition-colors underline",target:(null==t?void 0:t.startsWith("http"))?"_blank":void 0,rel:(null==t?void 0:t.startsWith("http"))?"noopener noreferrer":void 0,children:l})},ul:e=>{let{children:t}=e;return(0,s.jsx)("ul",{className:"list-disc list-inside mb-4 space-y-2 text-text-light",children:t})},ol:e=>{let{children:t}=e;return(0,s.jsx)("ol",{className:"list-decimal list-inside mb-4 space-y-2 text-text-light",children:t})},blockquote:e=>{let{children:t}=e;return(0,s.jsx)("blockquote",{className:"border-l-4 border-accent pl-4 my-4 italic text-text-muted",children:t})},code:e=>{let{inline:t,className:l,children:r,...a}=e,i=/language-(\w+)/.exec(l||"");return!t&&i?(0,s.jsx)(d.A,{style:n.A,language:i[1],PreTag:"div",className:"rounded-lg my-4",...a,children:String(r).replace(/\n$/,"")}):(0,s.jsx)("code",{className:"bg-bg-light px-2 py-1 rounded text-accent text-sm",...a,children:r})},img:e=>{let{src:t,alt:l}=e;return(0,s.jsx)("img",{src:t,alt:l,className:"rounded-lg my-6 w-full object-cover"})},table:e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"overflow-x-auto my-6",children:(0,s.jsx)("table",{className:"min-w-full divide-y divide-bg-light",children:t})})},th:e=>{let{children:t}=e;return(0,s.jsx)("th",{className:"px-4 py-2 bg-bg-light text-left text-primary font-semibold",children:t})},td:e=>{let{children:t}=e;return(0,s.jsx)("td",{className:"px-4 py-2 border-t border-bg-light text-text-light",children:t})},hr:()=>(0,s.jsx)("hr",{className:"my-8 border-bg-light"})},children:t})})}var x=l(66766);function m(e){let{project:t}=e,[l,i]=(0,r.useState)(""),[c,d]=(0,r.useState)("");return(0,r.useEffect)(()=>{i(t.credits),d(t.info)},[t]),(0,s.jsxs)(a,{title:t.title,description:t.description||void 0,children:[(0,s.jsxs)("div",{className:"relative h-96 md:h-[500px] rounded-xl overflow-hidden mb-12",children:[(0,s.jsx)(x.default,{src:t.thumbnail,alt:t.title,fill:!0,className:"object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"})]}),(0,s.jsx)("div",{className:"mb-12",children:t.video?(0,s.jsx)("video",{className:"w-full aspect-video rounded-lg",controls:!0,poster:t.thumbnail,children:(0,s.jsx)("source",{src:t.video,type:"video/mp4"})}):t.embed?(0,s.jsx)("div",{className:"aspect-video rounded-lg overflow-hidden bg-bg-light",children:(0,s.jsx)("iframe",{src:t.embed,className:"w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,s.jsx)(x.default,{src:t.thumbnail,alt:t.title,width:800,height:450,className:"w-full aspect-video object-cover rounded-lg"})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,s.jsxs)("div",{className:"bg-bg-light rounded-lg p-6",children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Project Details"}),c.includes("#")||c.includes("**")||c.includes("##")?(0,s.jsx)(o,{content:c}):(0,s.jsx)("p",{className:"text-text-muted whitespace-pre-wrap",children:c})]}),(0,s.jsxs)("div",{className:"bg-bg-light rounded-lg p-6",children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Credits"}),l.includes("#")||l.includes("**")||l.includes("##")?(0,s.jsx)(o,{content:l}):(0,s.jsx)("p",{className:"text-text-muted whitespace-pre-wrap",children:l})]})]})]})}},61266:(e,t,l)=>{Promise.resolve().then(l.bind(l,20117))}},e=>{e.O(0,[3063,9581,6832,8441,5964,7358],()=>e(e.s=61266)),_N_E=e.O()}]);