(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9261],{4221:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/crypto-newsletter",function(){return l(9304)}])},9304:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Newsletter}});var s=l(5893),n=l(7294),i=l(5912),r=l(9008),a=l.n(r),x=l(7094),o=l(8688),c=l(7119);let m=n.memo(()=>(0,s.jsx)(c.ZP,{id:"tsparticles",options:{background:{color:{value:"#212125"}},particles:{number:{value:125,density:{enable:!0,area:850}},size:{value:2},links:{enable:!0,distance:150,color:"#ffffff",opacity:.8,width:1},move:{enable:!0,speed:2,direction:"none",outModes:{default:"bounce"}}},interactivity:{events:{onHover:{enable:!0,mode:"repulse"},onClick:{enable:!0,mode:"push"}},modes:{push:{quantity:4},repulse:{distance:100,duration:.4}}},detectRetina:!0},className:"absolute top-0 left-0 w-full h-full"}));function Newsletter(){let[e,t]=(0,n.useState)(!1),[l,i]=(0,n.useState)(""),[r,c]=(0,n.useState)("Get Whitelisted"),[d,u]=(0,n.useState)(null),p=(0,o.eI)("https://swmkwzrguapkaodkgcmt.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InN3bWt3enJndWFwa2FvZGtnY210Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTIxODI1NDMsImV4cCI6MjAyNzc1ODU0M30.At51g7QDyI7Pk-nx_-S5ShAcme7bjhSUqX8YsVvGB9A"),handleClick=async()=>{if(!l||!l.includes("@")||!l.includes(".")){u("PLEASE ENTER A VALID EMAIL"),setTimeout(()=>{u(null)},5e3);return}try{let{data:e,error:t}=await p.from("newsletter_subscribers").select("email").eq("email",l.toLowerCase().trim());if(t){console.error("Error checking email: ",t.message),u("ERROR CHECKING EMAIL"),setTimeout(()=>{u(null)},5e3);return}if(e.length>0){u("EMAIL ALREADY SUBSCRIBED"),setTimeout(()=>{u(null)},5e3);return}let{error:s}=await p.from("newsletter_subscribers").insert([{email:l.toLowerCase().trim()}]);if(s){console.error("Error inserting data: ",s.message),s.message.includes("duplicate key value violates unique constraint")?u("EMAIL ALREADY SUBSCRIBED"):u("ERROR SUBSCRIBING EMAIL"),setTimeout(()=>{u(null)},5e3);return}i(""),c("DONE!"),setTimeout(()=>{c("Get Whitelisted")},3e3)}catch(e){console.error("Unhandled error: ",e.message),u("AN ERROR OCCURRED"),setTimeout(()=>{u(null)},5e3)}},scrollToNext=e=>{let t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth"}):console.error("Next section not found")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(a(),{children:[(0,s.jsx)("title",{children:"Best Crypto Newsletter: Analytics, Insights, and Hidden Gems"}),(0,s.jsx)("meta",{name:"description",content:"Dive into the best crypto newsletter that's full of trading alpha, featuring a weekly dose of TA, industry news, and market analytics"}),(0,s.jsx)("meta",{name:"keywords",content:"best, crypto, newsletter, analytics, cryptocurrency, market, analytics, alpha, altcoin, bitcoin"}),(0,s.jsx)("meta",{property:"og:title",content:"Best Crypto Newsletter: Analytics, Insights, and Hidden Gems"}),(0,s.jsx)("meta",{property:"og:description",content:"Dive into the best crypto newsletter that's full of trading alpha, featuring a weekly dose of TA, industry news, and market analytics"}),(0,s.jsx)("meta",{property:"og:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,s.jsx)("meta",{property:"og:url",content:"https://www.tradingdigits.io/crypto-newsletter"}),(0,s.jsx)("meta",{name:"twitter:title",content:"Best Crypto Newsletter: Analytics, Insights, and Hidden Gems"}),(0,s.jsx)("meta",{name:"twitter:description",content:"Dive into the best crypto newsletter that's full of trading alpha, featuring a weekly dose of TA, industry news, and market analytics"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://www.tradingdigits.io/assets/images/ogImage.jpg"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:image:alt",content:"Promotional image with crypto-related illustration on black background, company name, and catchphrase about Trading Digits"}),(0,s.jsx)("meta",{name:"twitter:site",content:"@trading_digits"}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.tradingdigits.io/crypto-newsletter"})]})}),{}),(0,s.jsxs)("div",{className:"relative h-screen",id:"section1",children:[(0,s.jsx)(m,{}),(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-center",children:[(0,s.jsxs)("h1",{className:"mb-12 text-zinc-50 font-bold tracking-wider 3xl:leading-[115px] lg:leading-[65px] min-[560px]:leading-[45px] leading-[35px] 3xl:text-8xl 2xl:text-6xl xl:text-5xl lg:text-6xl min-[560px]:text-4xl min-[420px]:text-3xl text-2xl",children:["THE BEST NEWSLETTER ",(0,s.jsx)("br",{}),"IN THE CRYPTO SPACE"]}),(0,s.jsx)("p",{className:"text-zinc-100 mb-8 px-4 min-[420px]:w-2/3 w-5/6 3xl:text-2xl 2xl:text-lg xl:text-base lg:text-lg min-[420px]:text-sm text-presm",children:"Get the latest crypto insights delivered straight to your inbox. Bitcoin and altcoin technical analysis from the most experienced traders, collabs with builders and market analysts, proprietary crypto analytics, and more. Coming Q1 2025. To be delivered every week, all year."}),(0,s.jsxs)("div",{className:"relative flex justify-center items-center w-full",children:[d&&(0,s.jsx)("p",{className:"text-red-500 text-xs absolute bottom-0 mb-[-30px] font-bold px-3 bg-zinc-700 py-1 rounded",children:d}),(0,s.jsx)("input",{type:"email",value:l,onChange:e=>i(e.target.value),placeholder:"Enter your email",className:"2xl:w-[300px] 3xl:py-3 py-2 3xl:px-8 px-4 max-[420px] px-2 rounded-l-lg focus:outline-none focus:border-transparent text-black 3xl:text-2xl"}),(0,s.jsx)("button",{onClick:handleClick,className:"transition duration-300 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 3xl:py-3 px-2 3xl:px-4 rounded-r-lg 3xl:text-2xl",children:r})]}),(0,s.jsxs)("p",{className:"text-zinc-200 mt-8 sm:text-sm text-presm text-wrap max-[420px]:w-2/3 3xl:text-lg",children:["And follow us on ",(0,s.jsx)("a",{href:"https://twitter.com/trading_digits",target:"_blank",rel:"noreferrer",className:"text-blue-500 underline hover:text-blue-400 hover:transition-all duration-150 font-semibold",children:"Twitter"})," for exclusive updates as we prepare for launch."]}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 w-full flex justify-center sm:pb-12 pb-20",children:(0,s.jsxs)("button",{className:"group flex flex-col items-center justify-center",onClick:()=>scrollToNext("section2"),children:[(0,s.jsx)("div",{className:"text-center text-zinc-300 group-hover:text-zinc-100 transition",children:"FIND OUT MORE"}),(0,s.jsx)(x.Ejh,{className:"text-4xl text-blue-500 group-hover:text-blue-400 transition"})]})})]})]}),(0,s.jsx)("div",{id:"section2",className:"relative h-screen flex flex-col items-center justify-center text-white p-10",children:(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full",children:[(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-center",children:[(0,s.jsxs)("h1",{className:"text-zinc-50 font-bold mb-12 tracking-wider 3xl:leading-[115px] lg:leading-[65px] min-[560px]:leading-[45px] leading-[35px] 3xl:text-8xl lg:text-6xl min-[560px]:text-4xl min-[420px]:text-3xl text-2xl",children:["TECHNICAL ANALYSIS ",(0,s.jsx)("br",{}),"INSIGHTS"]}),(0,s.jsx)("p",{className:"text-zinc-100 mb-8 px-4 min-[420px]:w-2/3 w-5/6 3xl:text-2xl lg:text-lg min-[420px]:text-sm text-presm",children:"Access the best TA on Bitcoin and alts, find alpha about this cycle's most promising coins, and be the first to discover hidden crypto gems."})]}),(0,s.jsxs)("button",{className:"group absolute sm:bottom-12 bottom-16 left-1/2 transform -translate-x-1/2 flex flex-col items-center justify-center",onClick:()=>scrollToNext("section3"),children:[(0,s.jsx)("div",{className:"text-center text-zinc-300 group-hover:text-zinc-100 transition",children:"NEXT"}),(0,s.jsx)(x.Ejh,{className:"text-4xl text-blue-500 group-hover:text-blue-400 transition"})]})]})}),(0,s.jsx)("div",{id:"section3",className:"relative h-screen flex flex-col items-center justify-center text-white p-10",children:(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full",children:[(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-center",children:[(0,s.jsxs)("h1",{className:"text-zinc-50 font-bold mb-12 tracking-wider 3xl:leading-[115px] lg:leading-[65px] min-[560px]:leading-[45px] leading-[35px] 3xl:text-8xl lg:text-6xl min-[560px]:text-4xl min-[420px]:text-3xl text-2xl",children:["COLLABORATIONS ",(0,s.jsx)("br",{}),"WITH INDUSTRY LEADERS"]}),(0,s.jsx)("p",{className:"text-zinc-100 mb-8 px-4 min-[420px]:w-2/3 w-5/6 3xl:text-2xl lg:text-lg min-[420px]:text-sm text-presm",children:"Dive into the inspiring journeys of builders of the industry's best projects that are shaping the future of cryptocurrency and uncover the secrets to their successes."})]}),(0,s.jsxs)("button",{className:"group absolute sm:bottom-12 bottom-16 left-1/2 transform -translate-x-1/2 flex flex-col items-center justify-center",onClick:()=>scrollToNext("section4"),children:[(0,s.jsx)("div",{className:"text-center text-zinc-300 group-hover:text-zinc-100 transition",children:"NEXT"}),(0,s.jsx)(x.Ejh,{className:"text-4xl text-blue-500 group-hover:text-blue-400 transition"})]})]})}),(0,s.jsx)("div",{id:"section4",className:"relative h-screen flex flex-col items-center justify-center text-white p-10",children:(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full",children:[(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-center",children:[(0,s.jsxs)("h1",{className:"text-zinc-50 font-bold mb-12 tracking-wider 3xl:leading-[115px] lg:leading-[65px] min-[560px]:leading-[45px] leading-[35px] 3xl:text-8xl lg:text-6xl min-[560px]:text-4xl min-[420px]:text-3xl text-2xl",children:["PRORIETARY",(0,s.jsx)("br",{}),"CRYPTO ANALYTICS"]}),(0,s.jsx)("p",{className:"text-zinc-100 mb-8 px-4 min-[420px]:w-2/3 w-5/6 3xl:text-2xl lg:text-lg min-[420px]:text-sm text-presm",children:"Receive carefully curated digests of the week's most important events in the crypto markets, as seen through proprietary crypto analytics tools featured on Trading Digits platform."})]}),(0,s.jsxs)("button",{className:"group absolute sm:bottom-12 bottom-16 left-1/2 transform -translate-x-1/2 flex flex-col items-center justify-center",onClick:()=>scrollToNext("section5"),children:[(0,s.jsx)("div",{className:"text-center text-zinc-300 group-hover:text-zinc-100 transition",children:"NEXT"}),(0,s.jsx)(x.Ejh,{className:"text-4xl text-blue-500 group-hover:text-blue-400 transition"})]})]})}),(0,s.jsx)("div",{id:"section5",className:"relative h-screen flex flex-col items-center justify-center text-white p-10",children:(0,s.jsxs)("div",{className:"absolute top-15 left-0 w-full h-full",children:[(0,s.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center text-center",children:[(0,s.jsx)("h1",{className:"max-[460px]:px-6 text-zinc-50 font-bold mb-10 tracking-wider 3xl:leading-[115px] lg:leading-[65px] min-[560px]:leading-[45px] leading-[35px] 3xl:text-8xl lg:text-6xl min-[560px]:text-4xl min-[420px]:text-3xl text-2xl",children:"SPOT-ON. EDUCATIVE. FREE."}),(0,s.jsx)("p",{className:"text-zinc-200 mb-8 min-[420px]:w-2/3 w-5/6 3xl:text-2xl lg:text-lg min-[420px]:text-sm text-presm",children:"Coming Q3 2024. To be delivered straight to your inbox every week, all year."}),(0,s.jsxs)("div",{className:"flex justify-center items-center w-full",children:[(0,s.jsx)("input",{type:"email",placeholder:"Enter your email",className:"3xl:py-3 py-2 3xl:px-8 px-4 max-[420px]:px-2 rounded-l-lg focus:outline-none focus:border-transparent text-black 3xl:text-2xl"}),(0,s.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 3xl:py-3 px-2 3xl:px-4 rounded-r-lg 3xl:text-2xl",children:r})]})]}),(0,s.jsxs)("button",{className:"group absolute sm:bottom-12 bottom-16 left-1/2 transform -translate-x-1/2 flex flex-col items-center justify-center",onClick:()=>scrollToNext("section1"),children:[(0,s.jsx)("div",{className:"text-center text-zinc-300 group-hover:text-zinc-100 transition",children:"TAKE ME BACK"}),(0,s.jsx)(x.bbr,{className:"text-4xl text-blue-500 group-hover:text-blue-400 transition"})]})]})})]})}Newsletter.layout=i.Z}},function(e){e.O(0,[8391,4738,4817,2510,509,5372,8688,5912,9774,2888,179],function(){return e(e.s=4221)}),_N_E=e.O()}]);