PageSourceSearch

https://ninjafish.com/_next/static/chunks/pages/contact-957562dc00aaaa72.js

js ninjafish.com collected 2026-10-02 16:03:20 UTC 3,809 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{1382:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return s(4126)}])},4126:function(e,t,s){"use strict";s.r(t);var a=s(5893),n=s(7294),o=s(9008),r=s.n(o);t.default=()=>{let[e,t]=(0,n.useState)(!1),[s,o]=(0,n.useState)({type:"",message:""}),i=async e=>{e.preventDefault(),o({type:"",message:""});let s=e.currentTarget,a=new FormData(s),n=(a.get("name")||"").toString().trim(),r=(a.get("email")||"").toString().trim(),i=(a.get("subject")||"Website Contact").toString().trim()||"Website Contact",c=(a.get("message")||"").toString().trim();if(!c&&!r){o({type:"error",message:"Please include a message or an email so we can respond."});return}t(!0);try{if(!(await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:r,subject:i,message:c})})).ok)throw Error("Failed to send. Please try again.");o({type:"success",message:"Message sent! We will get back to you soon."}),s.reset()}catch(e){o({type:"error",message:e instanceof Error?e.message:"Unable to send right now."})}finally{t(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:"Contact - Ninjafish Studios"}),(0,a.jsx)("meta",{name:"description",content:"Reach out to Ninjafish Studios with questions, feedback, or partnership ideas."})]}),(0,a.jsxs)("div",{className:"page-container",children:[(0,a.jsx)("section",{className:"page-hero",children:(0,a.jsx)("div",{className:"content-container",children:(0,a.jsx)("h1",{className:"page-title",children:"Contact Us"})})}),(0,a.jsx)("section",{className:"page-section",children:(0,a.jsx)("div",{className:"content-container",children:(0,a.jsx)("div",{className:"page-content",children:(0,a.jsxs)("div",{className:"form-container",children:[(0,a.jsxs)("div",{style:{marginBottom:"30px",textAlign:"center"},children:[(0,a.jsx)("h2",{style:{fontSize:"1.8rem",marginBottom:"15px",color:"var(--color-text)"},children:"We'd love to hear from you!"}),(0,a.jsx)("p",{style:{color:"#666",lineHeight:"1.6"},children:"Whether you have a suggestion, business inquiry, or just want to say hi, feel free to reach out using the form below."})]}),(0,a.jsxs)("form",{className:"contact-form",onSubmit:i,children:[(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsx)("label",{className:"form-label",htmlFor:"contact-name",children:"Your Name"}),(0,a.jsx)("input",{id:"contact-name",name:"name",type:"text",className:"form-input",placeholder:"Enter your name",autoComplete:"name"})]}),(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsx)("label",{className:"form-label",htmlFor:"contact-email",children:"Email Address"}),(0,a.jsx)("input",{id:"contact-email",name:"email",type:"email",className:"form-input",placeholder:"Enter your email",autoComplete:"email"})]}),(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsx)("label",{className:"form-label",htmlFor:"contact-subject",children:"Subject"}),(0,a.jsx)("input",{id:"contact-subject",name:"subject",type:"text",className:"form-input",placeholder:"What is this about?",autoComplete:"off"})]}),(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsx)("label",{className:"form-label",htmlFor:"contact-message",children:"Message"}),(0,a.jsx)("textarea",{id:"contact-message",name:"message",className:"form-textarea",placeholder:"Write your message here...",autoComplete:"off"})]}),(0,a.jsx)("button",{type:"submit",className:"submit-btn",disabled:e,children:e?"Sending...":"Send Message"}),s.message&&(0,a.jsx)("p",{style:{marginTop:"12px",color:"success"===s.type?"#0a7f4f":"#c0392b",fontWeight:600},"aria-live":"polite",children:s.message})]})]})})})})]})]})}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=1382)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.