(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1192],{5385:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contacts",function(){return n(3534)}])},3534:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Contacts}});var a=n(5893),r=n(7294),o=n(5912),s=n(7626),i=n(9599),c=n(9008),l=n.n(c);function Contacts(){let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(""),[c,d]=(0,r.useState)(""),[u,p]=(0,r.useState)(""),[m,g]=(0,r.useState)(""),[h,x]=(0,r.useState)(!1),[f,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)(!1),[j,v]=(0,r.useState)(!1),handleSubmit=async e=>{if(e.preventDefault(),!n||!c||!m||!u){x(!0),setTimeout(()=>{x(!1)},4e3);return}try{let e=await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:c,topic:m,message:u})}),t=await e.json();"success"===t.status?(b(!0),setTimeout(()=>{b(!1)},4e3),o(""),d(""),g(""),p("")):(w(!0),setTimeout(()=>{w(!1)},4e3))}catch(e){console.error(e),v(!0),setTimeout(()=>{v(!1)},4e3)}},k=(0,r.useCallback)(()=>{t(e=>!e)},[t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:"Contact Trading Digits, your all-in-one crypto analytics tool"}),(0,a.jsx)("meta",{name:"description",content:"Get in touch with a crypto trading tool that unites all analytics on one page: market cap, satoshi, funding rates, gas tracker, and more"}),(0,a.jsx)("meta",{name:"keywords",content:"crypto, trading, calculator, cryptocurrency, analytics, blockchain, profit, currency, tools, market"}),(0,a.jsx)("meta",{property:"og:title",content:"Contact Trading Digits, your all-in-one crypto analytics tool"}),(0,a.jsx)("meta",{property:"og:description",content:"Get in touch with a crypto trading tool that unites all analytics on one page: market cap, satoshi, funding rates, gas tracker, and more"}),(0,a.jsx)("meta",{property:"og:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,a.jsx)("meta",{property:"og:url",content:"https://www.tradingdigits.io/contacts"}),(0,a.jsx)("meta",{name:"twitter:title",content:"Contact Trading Digits, your all-in-one crypto analytics tool"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Get in touch with a crypto trading tool that unites all analytics on one page: market cap, satoshi, funding rates, gas tracker, and more"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:"Promotional image with crypto-related illustration on black background, company name, and catchphrase about Trading Digits"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@trading_digits"}),(0,a.jsx)("link",{rel:"canonical",href:"https://www.tradingdigits.io/contacts"})]})}),{}),(0,a.jsx)("div",{className:"mt-11 md:mt-[95px] sm:mt-[90px] mt-[80px]",children:(0,a.jsxs)("div",{className:"pb-3 pt-2 sm:pt-1 pb-8 font-[Oxanium-Regular] text-sm h-screen",children:[(0,a.jsx)("div",{className:"flex items-center lg:justify-start justify-center my-1.75",children:(0,a.jsx)("h1",{className:"pl-2 sm:text-2xl text-xl font-[Oxanium-Regular]",children:"CONTACTS"})}),(0,a.jsxs)("p",{className:"mb-6 sm:text-sm text-xs px-2 lg:text-start text-center",children:["Please use the form below to get in touch with us should you have any questions, proposals, or feedback about our project. Or be sure to contact us at ",(0,a.jsx)("a",{href:"mailto:contact@tradingdigits.io",className:"text-blue-500 underline",children:"contact@tradingdigits.io"})," directly."]}),(0,a.jsxs)("form",{className:"flex flex-col xl:w-2/5 lg:w-1/2 sm:w-2/3 w-full gap-4 px-2",onSubmit:handleSubmit,children:[(0,a.jsx)("input",{type:"text",placeholder:"Name",className:"rounded p-2 bg-[#313952] placeholder-gray-200 focus:outline-none hover:border-gray-200 border-transparent border transition",value:n,onChange:e=>o(e.target.value)}),(0,a.jsx)("input",{type:"email",placeholder:"Email",className:"rounded p-2 bg-[#313952] placeholder-gray-200 focus:outline-none hover:border-gray-200 border-transparent border transition",value:c,onChange:e=>d(e.target.value)}),(0,a.jsx)(i.default,{id:"topicSelect",styles:{control:(e,t)=>({...e,borderRadius:"5px",fontSize:"14px",border:"1px solid transparent",backgroundColor:"#313952",boxShadow:t.isFocused?"none":e.boxShadow,padding:"2px 2px 2px 0px","&:hover":{border:"1px solid whitesmoke",transition:"150ms ease-in-out"}}),container:e=>({...e,borderRadius:"0.5rem",fontSize:"14px",border:"none",backgroundColor:"#313952"}),dropdownIndicator:(e,t)=>({...e,":hover":{cursor:"pointer",color:"#fff"}}),placeholder:e=>({...e,color:"whitesmoke"}),indicatorSeparator:e=>({...e,display:"none",margin:0,padding:0}),option:(e,t)=>({...e,backgroundColor:t.isSelected?"#6B46C1":"#1F2937",":hover":{backgroundColor:t.isSelected?"#6B46C1":"#4B5563",color:"#FFFFFF"},color:t.isSelected?"#FFFFFF":"#E5E7EB",cursor:"pointer",borderBottom:"1px solid #323232"}),menu:(e,t)=>({...e,maxHeight:200,overflow:"auto",backgroundColor:"#1F2937",borderRadius:"4px"}),input:e=>({...e,color:"whitesmoke"}),singleValue:e=>({...e,color:"whitesmoke"})},options:[{value:"Support:",label:"Support and tech questions"},{value:"Advertising:",label:"Advertise with us"},{value:"Feedback & Suggestions:",label:"Feedback and suggestions"},{value:"PR & Media:",label:"Media and PR inquiries"},{value:"Partnerships:",label:"Partnership proposals"}],placeholder:"Topic",onChange:e=>g(e.value)}),(0,a.jsx)("textarea",{placeholder:"Your message",className:"rounded p-2 bg-[#313952] placeholder-gray-200 resize-none focus:outline-none hover:border-gray-200 h-40 border-transparent border transition",value:u,onChange:e=>p(e.target.value)}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)("button",{className:"py-1.5 px-2.5 font-semibold tracking-wider rounded mt-2 flex items-center justify-center text-center max-w-full md:max-w-xs hover:text-[#27AE60] bg-[#27AE60] hover:bg-white transition",onMouseOver:k,onMouseOut:k,children:[(0,a.jsx)("img",{src:e?s.Y.messageIconHover:s.Y.messageIcon,alt:"Trading calculator icon",className:"w-6 mr-3"}),(0,a.jsx)("span",{className:"inline text-sm",children:"CONTACT US"})]}),h&&(0,a.jsx)("div",{className:"rounded bg-red-600 text-center items-center h-9 text-center flex ml-4 px-2 mt-2",children:"Please fill in all fields first"}),f&&(0,a.jsx)("div",{className:"rounded bg-green-600 text-center items-center h-9 text-center flex ml-4 px-2 mt-2",children:"Email sent successfully"}),y&&(0,a.jsx)("div",{className:"rounded bg-red-600 text-center items-center h-9 text-center flex ml-4 px-2 mt-2 block",children:"Failed to send email, please try again"}),j&&(0,a.jsx)("div",{className:"rounded bg-red-600 text-center items-center h-9 text-center flex ml-4 px-2 mt-2 block",children:"An error occurred, please try again later"})]})]})]})})]})}Contacts.layout=o.Z},7326:function(e,t,n){"use strict";function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return _assertThisInitialized}})},7462:function(e,t,n){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return _extends}})},9611:function(e,t,n){"use strict";function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return _setPrototypeOf}})}},function(e){e.O(0,[8391,4738,4817,2510,5372,9599,5912,9774,2888,179],function(){return e(e.s=5385)}),_N_E=e.O()}]);