biohazard-vfx/.next/static/chunks/app/projects/[id]/page-f32d9c7e3cc62dff.js
Nicholai 7ed45d15da
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
Dockerized baby
2025-08-19 05:35:01 -06:00

1 line
5.5 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6801],{20117:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var r=l(95155),s=l(12115);function a(e){let{title:t,description:l,children:s,className:a="",fullWidth:i=!1}=e;return(0,r.jsx)("div",{className:"min-h-screen bg-bg-dark py-24 ".concat(a),children:(0,r.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,r.jsxs)("header",{className:"mb-16 text-center",children:[(0,r.jsx)("h1",{className:"text-4xl font-montserrat font-bold text-primary",children:t}),l&&(0,r.jsx)("p",{className:"text-text-muted mt-4 max-w-2xl mx-auto",children:l})]}),(0,r.jsx)("main",{children:s})]})})}var i=l(30961),c=l(93836),n=l(82814),d=l(38391);function o(e){let{content:t,className:l=""}=e;return(0,r.jsx)("div",{className:"prose prose-invert prose-lg max-w-none ".concat(l),children:(0,r.jsx)(i.oz,{remarkPlugins:[c.A],components:{h1:e=>{let{children:t}=e;return(0,r.jsx)("h1",{className:"text-4xl font-bold text-primary mb-6 mt-8",children:t})},h2:e=>{let{children:t}=e;return(0,r.jsx)("h2",{className:"text-3xl font-bold text-primary mb-4 mt-6",children:t})},h3:e=>{let{children:t}=e;return(0,r.jsx)("h3",{className:"text-2xl font-semibold text-primary mb-3 mt-4",children:t})},p:e=>{let{children:t}=e;return(0,r.jsx)("p",{className:"text-text-light mb-4 leading-relaxed",children:t})},a:e=>{let{href:t,children:l}=e;return(0,r.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,r.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,r.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,r.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:s,...a}=e,i=/language-(\w+)/.exec(l||"");return!t&&i?(0,r.jsx)(n.A,{style:d.A,language:i[1],PreTag:"div",className:"rounded-lg my-4",...a,children:String(s).replace(/\n$/,"")}):(0,r.jsx)("code",{className:"bg-bg-light px-2 py-1 rounded text-accent text-sm",...a,children:s})},img:e=>{let{src:t,alt:l}=e;return(0,r.jsx)("img",{src:t,alt:l,className:"rounded-lg my-6 w-full object-cover"})},table:e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"overflow-x-auto my-6",children:(0,r.jsx)("table",{className:"min-w-full divide-y divide-bg-light",children:t})})},th:e=>{let{children:t}=e;return(0,r.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,r.jsx)("td",{className:"px-4 py-2 border-t border-bg-light text-text-light",children:t})},hr:()=>(0,r.jsx)("hr",{className:"my-8 border-bg-light"})},children:t})})}var m=l(29706);function x(e){let{project:t}=e,[l,i]=(0,s.useState)(""),[c,n]=(0,s.useState)("");return(0,s.useEffect)(()=>{i(t.credits),n(t.info)},[t]),(0,r.jsxs)(a,{title:t.title,description:t.description||void 0,children:[(0,r.jsxs)("div",{className:"relative h-96 md:h-[500px] rounded-xl overflow-hidden mb-12",children:[(0,r.jsx)(m.default,{src:t.thumbnail,alt:t.title,fill:!0,className:"object-cover",placeholderText:"Project Hero"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"})]}),(0,r.jsx)("div",{className:"mb-12",children:t.video?(0,r.jsx)("video",{className:"w-full aspect-video rounded-lg",controls:!0,poster:t.thumbnail,children:(0,r.jsx)("source",{src:t.video,type:"video/mp4"})}):t.embed?(0,r.jsx)("div",{className:"aspect-video rounded-lg overflow-hidden bg-bg-light",children:(0,r.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,r.jsx)(m.default,{src:t.thumbnail,alt:t.title,width:800,height:450,className:"w-full aspect-video object-cover rounded-lg",placeholderText:"Project Preview"})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,r.jsxs)("div",{className:"bg-bg-light rounded-lg p-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Project Details"}),c.includes("#")||c.includes("**")||c.includes("##")?(0,r.jsx)(o,{content:c}):(0,r.jsx)("p",{className:"text-text-muted whitespace-pre-wrap",children:c})]}),(0,r.jsxs)("div",{className:"bg-bg-light rounded-lg p-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Credits"}),l.includes("#")||l.includes("**")||l.includes("##")?(0,r.jsx)(o,{content:l}):(0,r.jsx)("p",{className:"text-text-muted whitespace-pre-wrap",children:l})]})]})]})}},29706:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i});var r=l(95155),s=l(66766),a=l(12115);function i(e){let{src:t,alt:l="Image",placeholderText:i="Image Coming Soon",placeholderSize:c,...n}=e,[d,o]=(0,a.useState)(!1),{width:m,height:x,fill:h}=n,u=(0,a.useMemo)(()=>{let e="number"==typeof m?m:(null==c?void 0:c.width)||1200,t="number"==typeof x?x:(null==c?void 0:c.height)||(h?675:800),l=encodeURIComponent(i);return"https://placehold.co/".concat(e,"x").concat(t,"/111113/CCCCCC?text=").concat(l)},[m,x,h,c,i]),p=!t||""===t.trim()||d?u:t;return(0,r.jsx)(s.default,{...n,src:p,alt:l,onError:()=>o(!0)})}},61266:(e,t,l)=>{Promise.resolve().then(l.bind(l,20117))}},e=>{e.O(0,[6766,9581,8895,8441,5964,7358],()=>e(e.s=61266)),_N_E=e.O()}]);