1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea930183-f34a-46f9-abc3-bea29f522833",e._sentryDebugIdIdentifier="sentry-dbid-ea930183-f34a-46f9-abc3-bea29f522833")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6801],{18300:(e,t,l)=>{"use strict";l.d(t,{default:()=>x});var s=l(95155),r=l(12115),a=l(47083),i=l(30961),n=l(93836),d=l(82814),c=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:[n.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:c.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 m=l(29706);function x(e){let{project:t}=e,[l,i]=(0,r.useState)(""),[n,d]=(0,r.useState)("");return(0,r.useEffect)(()=>{i(t.credits),d(t.info)},[t]),(0,s.jsxs)(a.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)(m.default,{src:t.thumbnail,alt:t.title,fill:!0,className:"object-cover",placeholderText:"Project Hero"}),(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)(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,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"}),n.includes("#")||n.includes("**")||n.includes("##")?(0,s.jsx)(o,{content:n}):(0,s.jsx)("p",{className:"text-text-muted whitespace-pre-wrap",children:n})]}),(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})]})]})]})}},29706:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var s=l(95155),r=l(66766),a=l(12115);function i(e){let{src:t,alt:l="Image",placeholderText:i="Image Coming Soon",placeholderSize:n,...d}=e,[c,o]=(0,a.useState)(!1),{width:m,height:x,fill:u,sizes:h}=d,p=(0,a.useMemo)(()=>{let e="number"==typeof m?m:(null==n?void 0:n.width)||1200,t="number"==typeof x?x:(null==n?void 0:n.height)||(u?675:800),l=encodeURIComponent(i);return"https://placehold.co/".concat(e,"x").concat(t,"/111113/CCCCCC.png?text=").concat(l)},[m,x,u,n,i]),b=!t||""===t.trim()||c?p:t,g="string"==typeof b&&b.includes("placehold.co"),f="string"==typeof b&&b.startsWith("/images/");return(0,s.jsx)(r.default,{...d,src:b,alt:l,sizes:null!=h?h:u?"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw":void 0,unoptimized:g||f,onError:()=>o(!0)})}},47083:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var s=l(95155);function r(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})]})})}l(12115)},98058:(e,t,l)=>{Promise.resolve().then(l.bind(l,18300))}},e=>{e.O(0,[6766,9581,8895,4850,8441,2691,7358],()=>e(e.s=98058)),_N_E=e.O()}]); |