PageSourceSearch

https://hybridads.ai/assets/SignUpPage-Dxd48DnJ.js

js hybridads.ai collected 2026-10-05 15:02:25 UTC 9,230 bytes, 2 lines download raw bytes

1import{s as x,g as b,j as e,Z as C,M as A}from"./index-AZqOrfoe.js";import{r as n}from"./react-vendor-SIwY82C9.js";import{C as E}from"./check-circle-2-B9527Tcn.js";import{L as f}from"./loader-2-C8m8SJKs.js";import{A as P}from"./alert-circle-CkQ_2UH6.js";import{U as L}from"./user-BFuWvoCr.js";import{L as F}from"./lock-6vYXgWgV.js";import{E as U}from"./eye-off-DT8bSmRK.js";import{E as q}from"./eye-BKXK9VAb.js";import{A as I}from"./arrow-right-C_CuJ4ZH.js";import"./supabase-vendor-D1w7fZ3n.js";function W({navigate:r}){const[h,y]=n.useState(""),[s,j]=n.useState(""),[c,w]=n.useState(""),[d,N]=n.useState(!1),[u,g]=n.useState(!1),[p,i]=n.useState(""),[v,k]=n.useState(!1);n.useEffect(()=>{x.auth.getSession().then(async({data:{session:t}})=>{if(t){const a=await b(t.access_token);r(a)}})},[r]);const S=async t=>{if(t.preventDefault(),i(""),!c.trim()){i("Full name is required");return}g(!0);try{const{error:a}=await x.auth.signUp({email:h,password:s,options:{data:{full_name:c.trim()}}});if(a)throw a;k(!0);const{data:{session:l}}=await x.auth.getSession(),o=l?await b(l.access_token):"gtm-service";setTimeout(()=>r(o),1500)}catch(a){const l=a instanceof Error?a.message:"Something went wrong";l.includes("already registered")?i("This email is already registered. Try signing in instead."):l.includes("Password should be at least")?i("Password must be at least 6 characters"):i(l)}g(!1)},m=(()=>{if(s.length===0)return{level:0,label:"",color:""};if(s.length<6)return{level:1,label:"Too short",color:"bg-red-500"};const t=/[A-Z]/.test(s),a=/[0-9]/.test(s),l=/[^A-Za-z0-9]/.test(s),o=[s.length>=8,t,a,l].filter(Boolean).length;return o<=1?{level:2,label:"Weak",color:"bg-orange-500"}:o<=2?{level:3,label:"Fair",color:"bg-yellow-500"}:{level:4,label:"Strong",color:"bg-emerald-500"}})();return v?e.jsx("div",{className:"min-h-screen bg-gray-950 flex items-center justify-center p-6",children:e.jsxs("div",{className:"text-center max-w-sm animate-scale-in",children:[e.jsx("div",{className:"w-20 h-20 bg-emerald-500/10 border border-emerald-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:e.jsx(E,{className:"w-9 h-9 text-emerald-400"})}),e.jsx("h2",{className:"text-2xl font-bold text-white mb-3",children:"Account created!"}),e.jsx("p",{className:"text-gray-400 leading-relaxed mb-6",children:"Welcome to Hybrid Ads. Redirecting you now..."}),e.jsx(f,{className:"w-5 h-5 text-cyan-400 animate-spin mx-auto"})]})}):e.jsxs("div",{className:"min-h-screen bg-gray-950 flex",children:[e.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-900 via-gray-950 to-black"}),e.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle at 1px 1px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),e.jsxs("div",{className:"relative z-10 flex flex-col justify-between p-12 w-full",children:[e.jsx("button",{onClick:()=>r("home"),className:"flex items-center gap-3 group w-fit",children:e.jsx("img",{src:"/logo.png",alt:"Hybrid Ads",className:"h-16 w-auto",width:"64",height:"64"})}),e.jsxs("div",{className:"max-w-md",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-cyan-500 to-blue-600 flex items-center justify-center shadow-lg shadow-cyan-500/20",children:e.jsx(C,{className:"w-4 h-4 text-white"})}),e.jsx("span",{className:"text-xs font-bold text-cyan-400 uppercase tracking-wider",children:"Get Started Free"})]}),e.jsxs("h1",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["Scale your growth",e.jsx("br",{}),e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-blue-400",children:"with AI."})]}),e.jsx("p",{className:"text-gray-400 text-lg leading-relaxed mb-8",children:"Join performance marketers using AI to generate leads, create content, and optimize campaigns."}),e.jsx("div",{className:"grid grid-cols-3 gap-4",children:[{stat:"2M+",label:"Leads Generated"},{stat:"3,000+",label:"Campaigns Run"},{stat:"$0.03",label:"Per AI Email"}].map(t=>e.jsxs("div",{className:"bg-gray-900/50 border border-gray-800/50 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-xl font-bold text-white",children:t.stat}),e.jsx("p",{className:"text-[10px] text-gray-500 mt-1 uppercase tracking-wider",children:t.label})]},t.label))})]}),e.jsx("p",{className:"text-xs text-gray-600",children:"No credit card required. Cancel anytime."})]})]}),e.jsx("div",{className:"flex-1 flex items-center justify-center p-6 sm:p-12",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx("div",{className:"lg:hidden flex justify-center mb-8",children:e.jsx("button",{onClick:()=>r("home"),children:e.jsx("img",{src:"/logo.png",alt:"Hybrid Ads",className:"h-14 w-auto",width:"56",height:"56"})})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-white mb-2",children:"Create your account"}),e.jsx("p",{className:"text-gray-400",children:"Get started with Hybrid Ads in seconds"})]}),e.jsxs("form",{onSubmit:S,className:"space-y-5",children:[p&&e.jsxs("div",{className:"flex items-center gap-2.5 p-3.5 bg-red-500/10 border border-red-500/20 rounded-xl",children:[e.jsx(P,{className:"w-4 h-4 text-red-400 shrink-0"}),e.jsx("p",{className:"text-sm text-red-300",children:p})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Full Name"}),e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-3.5 to
1p-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),e.jsx("input",{type:"text",value:c,onChange:t=>w(t.target.value),placeholder:"John Smith",className:"w-full pl-11 pr-4 py-3 bg-gray-900 border border-gray-800 rounded-xl text-sm text-white placeholder-gray-600 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition-all",required:!0,autoComplete:"name"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(A,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),e.jsx("input",{type:"email",value:h,onChange:t=>y(t.target.value),placeholder:"[email protected]",className:"w-full pl-11 pr-4 py-3 bg-gray-900 border border-gray-800 rounded-xl text-sm text-white placeholder-gray-600 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition-all",required:!0,autoComplete:"email"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(F,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),e.jsx("input",{type:d?"text":"password",value:s,onChange:t=>j(t.target.value),placeholder:"Min 6 characters",className:"w-full pl-11 pr-11 py-3 bg-gray-900 border border-gray-800 rounded-xl text-sm text-white placeholder-gray-600 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition-all",required:!0,minLength:6,autoComplete:"new-password"}),e.jsx("button",{type:"button",onClick:()=>N(!d),className:"absolute right-3.5 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:d?e.jsx(U,{className:"w-4 h-4"}):e.jsx(q,{className:"w-4 h-4"})})]}),s.length>0&&e.jsxs("div",{className:"mt-2.5 flex items-center gap-2",children:[e.jsx("div",{className:"flex-1 flex gap-1",children:[1,2,3,4].map(t=>e.jsx("div",{className:`h-1 flex-1 rounded-full transition-all ${t<=m.level?m.color:"bg-gray-800"}`},t))}),e.jsx("span",{className:"text-[10px] font-semibold text-gray-500",children:m.label})]})]}),e.jsx("button",{type:"submit",disabled:u,className:"w-full flex items-center justify-center gap-2 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:opacity-50 disabled:cursor-not-allowed text-white font-bold py-3.5 rounded-xl text-sm transition-all shadow-lg shadow-cyan-500/20",children:u?e.jsx(f,{className:"w-4 h-4 animate-spin"}):e.jsxs(e.Fragment,{children:["Create Account",e.jsx(I,{className:"w-4 h-4"})]})})]}),e.jsx("div",{className:"mt-8 text-center",children:e.jsxs("p",{className:"text-sm text-gray-500",children:["Already have an account?"," ",e.jsx("button",{onClick:()=>r("sign-in"),className:"text-cyan-400 font-semibold hover:text-cyan-300 transition-colors",children:"Sign In"})]})}),e.jsx("div",{className:"mt-12 pt-6 border-t border-gray-800/50",children:e.jsxs("p",{className:"text-xs text-gray-600 text-center",children:["By creating an account, you agree to our"," ",e.jsx("button",{onClick:()=>r("terms"),className:"text-gray-400 hover:text-gray-300 underline underline-offset-2",children:"Terms of Service"})," ","and"," ",e.jsx("button",{onClick:()=>r("privacy"),className:"text-gray-400 hover:text-gray-300 underline underline-offset-2",children:"Privacy Policy"})]})})]})})]})}export{W as default};
2//# sourceMappingURL=SignUpPage-Dxd48DnJ.js.map

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.