1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="bdbde2c4-58e8-4163-825f-31a362fec65b",e._sentryDebugIdIdentifier="sentry-dbid-bdbde2c4-58e8-4163-825f-31a362fec65b")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{861:(e,s,t)=>{"use strict";t.d(s,{TM:()=>n,pd:()=>r,y9:()=>c});var a=t(95155);function r(e){let{label:s,error:t,helperText:r,className:n="",id:c,...l}=e,i=c||(null==s?void 0:s.toLowerCase().replace(/\s+/g,"-"));return(0,a.jsxs)("div",{className:"space-y-2",children:[s&&(0,a.jsx)("label",{htmlFor:i,className:"label",children:s}),(0,a.jsx)("input",{id:i,className:"input ".concat(t?"border-red-500":""," ").concat(n),...l}),t&&(0,a.jsx)("p",{className:"text-sm text-red-400",children:t}),r&&!t&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:r})]})}function n(e){let{label:s,error:t,helperText:r,className:n="",id:c,...l}=e,i=c||(null==s?void 0:s.toLowerCase().replace(/\s+/g,"-"));return(0,a.jsxs)("div",{className:"space-y-2",children:[s&&(0,a.jsx)("label",{htmlFor:i,className:"label",children:s}),(0,a.jsx)("textarea",{id:i,className:"input min-h-[120px] ".concat(t?"border-red-500":""," ").concat(n),...l}),t&&(0,a.jsx)("p",{className:"text-sm text-red-400",children:t}),r&&!t&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:r})]})}function c(e){let{title:s,description:t,children:r}=e;return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-white",children:s}),t&&(0,a.jsx)("p",{className:"text-sm text-text-muted mt-1",children:t})]}),r]})}},18983:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var a=t(95155),r=t(12115),n=t(32941),c=t(861),l=t(49903),i=t(29706),o=t(6874),d=t.n(o),m=t(49509);function u(){let[e,s]=(0,r.useState)({firstName:"",lastName:"",email:"",subject:"",message:""}),[t,o]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),[h,p]=(0,r.useState)(""),g=async a=>{if(a.preventDefault(),p(""),!t)return void p("Please agree to the Terms of Use and Privacy Policy.");let r=m.env.NEXT_PUBLIC_WEB3FORMS_ACCESS_KEY;if(!r)return void p("Form configuration error. Missing Web3Forms access key.");x(!0);try{let t=await fetch("https://api.web3forms.com/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:r,subject:"New Contact Form Submission from Biohazard VFX",from_name:"".concat(e.firstName," ").concat(e.lastName),replyto:e.email,formatted_message:"Name: ".concat(e.firstName," ").concat(e.lastName,"\n")+"Email: ".concat(e.email,"\n")+"Subject: ".concat(e.subject,"\n")+"Message:\n".concat(e.message),firstName:e.firstName,lastName:e.lastName,email:e.email,user_subject:e.subject,message:e.message,consent_terms:!0,consent_privacy:!0,source:"ContactPage"})});(await t.json()).success?(p("Thank you! Your message has been sent."),s({firstName:"",lastName:"",email:"",subject:"",message:""}),o(!1)):p("There was an error sending your message. Please try again.")}catch(e){p("There was an error sending your message. Please try again.")}finally{x(!1)}},b=e=>{s(s=>({...s,[e.target.name]:e.target.value}))};return(0,a.jsx)("div",{className:"min-w-screen",children:(0,a.jsx)(n.wn,{className:"pt-32 ",children:(0,a.jsx)(n.mc,{children:(0,a.jsxs)("div",{className:"min-w-2xl mx-auto",children:[(0,a.jsx)(n.zY,{title:"Connect",subtitle:"Let's bring your vision to life"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("form",{onSubmit:g,className:"space-y-8",noValidate:!0,children:[(0,a.jsxs)(c.y9,{title:"Contact Information",description:"Tell us who you are",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,a.jsx)(c.pd,{label:"First Name",id:"firstName",name:"firstName",value:e.firstName,onChange:b,required:!0,placeholder:"First Name",autoComplete:"given-name"}),(0,a.jsx)(c.pd,{label:"Last Name",id:"lastName",name:"lastName",value:e.lastName,onChange:b,required:!0,placeholder:"Last Name",autoComplete:"family-name"})]}),(0,a.jsx)(c.pd,{label:"Email",type:"email",id:"email",name:"email",value:e.email,onChange:b,required:!0,placeholder:"your@email.com",autoComplete:"email"})]}),(0,a.jsxs)(c.y9,{title:"Your Message",description:"What can we help you with?",children:[(0,a.jsx)(c.pd,{label:"Subject",id:"subject",name:"subject",value:e.subject,onChange:b,required:!0,placeholder:"Project inquiry, collaboration, etc."}),(0,a.jsx)(c.TM,{label:"Message",id:"message",name:"message",value:e.message,onChange:b,required:!0,rows:6,placeholder:"Yap yap yap... spit your truth, we're all ears."})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-white/10 p-4 bg-surface-700/40 space-y-3",children:[(0,a.jsxs)("p",{className:"text-sm text-text-secondary",children:[(0,a.jsx)("strong",{children:"Privacy notice at collection:"})," We collect the info you enter (name, email, subject, message) to respond to your inquiry and operate this form. See our"," ",(0,a.jsx)(d(),{href:"/privacy",className:"link",children:"Privacy Policy"})," for details."]}),(0,a.jsxs)("label",{className:"flex items-start gap-3 text-sm text-text-secondary",children:[(0,a.jsx)("input",{type:"checkbox",className:"mt-1 h-4 w-4",checked:t,onChange:e=>o(e.target.checked),required:!0,"aria-describedby":"consent-help"}),(0,a.jsxs)("span",{children:["I agree to the"," ",(0,a.jsx)(d(),{href:"/terms",className:"link",children:"Terms of Use"})," and acknowledge the"," ",(0,a.jsx)(d(),{href:"/privacy",className:"link",children:"Privacy Policy"}),"."]})]}),(0,a.jsx)("p",{id:"consent-help",className:"sr-only",children:"You must agree before submitting."}),(0,a.jsx)("input",{type:"checkbox",name:"botcheck",tabIndex:-1,style:{display:"none"},"aria-hidden":"true"})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(l.$n,{type:"submit",disabled:u||!t,isLoading:u,className:"w-full",size:"lg",children:"Send Message"}),h&&(0,a.jsx)("div",{className:"text-center p-4 rounded-lg ".concat(h.includes("Thank you")?"bg-green-500/10 text-green-400 border border-green-500/20":"bg-red-500/10 text-red-400 border border-red-500/20"),children:h})]})]}),(0,a.jsxs)("div",{className:"mt-12 text-center",children:[(0,a.jsx)("p",{className:"text-text-muted mb-2",children:"We usually reply within 24 hours."}),(0,a.jsxs)("p",{className:"text-text-muted",children:["Email:"," ",(0,a.jsx)("a",{href:"mailto:contact@biohazardvfx.com",className:"link",children:"contact@biohazardvfx.com"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["DMCA notices only:"," ",(0,a.jsx)("a",{href:"mailto:Davane@biohazardvfx.com",className:"link",children:"Davane@biohazardvfx.com"})]})]})]}),(0,a.jsxs)("div",{className:"relative h-96 rounded-xl overflow-hidden",children:[(0,a.jsx)(i.default,{src:"/images/contact-studio.jpg",alt:"Biohazard VFX Studio",fill:!0,className:"object-cover",placeholderText:"Studio Image"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 to-transparent flex items-end p-6",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-2xl font-display font-bold text-white mb-2",children:"Let's Create Together"}),(0,a.jsx)("p",{className:"text-text-secondary",children:"Reach out to discuss your next project"})]})})]})]})]})})})})}},29706:(e,s,t)=>{"use strict";t.d(s,{default:()=>c});var a=t(95155),r=t(66766),n=t(12115);function c(e){let{src:s,alt:t="Image",placeholderText:c="Image Coming Soon",placeholderSize:l,...i}=e,[o,d]=(0,n.useState)(!1),{width:m,height:u,fill:x,sizes:h}=i,p=(0,n.useMemo)(()=>{let e="number"==typeof m?m:(null==l?void 0:l.width)||1200,s="number"==typeof u?u:(null==l?void 0:l.height)||(x?675:800),t=encodeURIComponent(c);return"https://placehold.co/".concat(e,"x").concat(s,"/111113/CCCCCC.png?text=").concat(t)},[m,u,x,l,c]),g=!s||""===s.trim()||o?p:s,b="string"==typeof g&&g.includes("placehold.co"),f="string"==typeof g&&g.startsWith("/images/");return(0,a.jsx)(r.default,{...i,src:g,alt:t,sizes:null!=h?h:x?"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw":void 0,unoptimized:b||f,onError:()=>d(!0)})}},32941:(e,s,t)=>{"use strict";t.d(s,{mc:()=>c,wn:()=>n,xA:()=>l,zY:()=>r});var a=t(95155);function r(e){let{title:s,subtitle:t,actions:r}=e;return(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-display tracking-tight text-white mb-2",children:s}),t&&(0,a.jsx)("p",{className:"text-text-muted text-base max-w-3xl",children:t})]}),r&&(0,a.jsx)("div",{className:"flex items-center gap-2",children:r})]})})}function n(e){let{children:s,className:t=""}=e;return(0,a.jsx)("section",{className:"section-spacing ".concat(t),children:s})}function c(e){let{children:s,className:t=""}=e;return(0,a.jsx)("div",{className:"w-full px-4 sm:px-6 lg:px-8 ".concat(t),children:s})}function l(e){let{children:s,cols:t=3,gap:r="md",className:n=""}=e;return(0,a.jsx)("div",{className:"grid ".concat({1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t]," ").concat({sm:"gap-3",md:"gap-4",lg:"gap-6"}[r]," ").concat(n),children:s})}t(12115)},41101:(e,s,t)=>{Promise.resolve().then(t.bind(t,18983))},49903:(e,s,t)=>{"use strict";t.d(s,{$n:()=>r});var a=t(95155);function r(e){let{variant:s="primary",size:t="md",isLoading:r=!1,children:n,className:c="",disabled:l,...i}=e;return(0,a.jsx)("button",{className:"".concat({primary:"btn-primary",secondary:"btn-secondary",ghost:"btn-ghost",danger:"btn bg-destructive text-destructive-foreground hover:bg-brand-primary"}[s]," ").concat({sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}[t]," ").concat(c," ").concat(r?"opacity-75 cursor-wait":""),disabled:l||r,...i,children:r?(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"spinner w-3 h-3"}),"Loading..."]}):n})}t(6874),t(12115)}},e=>{e.O(0,[6874,6766,4850,8441,2691,7358],()=>e(e.s=41101)),_N_E=e.O()}]); |