PageSourceSearch

https://scrollstop.com/assets/signup-ls0z4sU8.js

js scrollstop.com collected 2026-09-25 20:38:52 UTC 2,686 bytes, 1 lines download raw bytes

1import{u as f,d as w,r as a,j as e,L as m,s as j,t as x}from"./index-dt5w-xvv.js";function N(){const s=f(),{session:n,loading:r}=w(),[c,p]=a.useState(""),[i,h]=a.useState(""),[l,b]=a.useState(""),[o,d]=a.useState(!1);a.useEffect(()=>{!r&&n&&s({to:"/admin"})},[r,n,s]);const g=async t=>{t.preventDefault(),d(!0);const{error:u}=await j.auth.signUp({email:i,password:l,options:{emailRedirectTo:`${window.location.origin}/admin`,data:{full_name:c}}});if(d(!1),u){x.error(u.message);return}x.success("Check your inbox to confirm your email."),s({to:"/login"})};return e.jsx("main",{className:"min-h-screen bg-brand-black flex items-center justify-center px-6",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx(m,{to:"/",className:"block text-center mb-12 text-xs font-black uppercase tracking-[0.3em] text-white/40 hover:text-white",children:"← Back to site"}),e.jsxs("div",{className:"glass rounded-card p-10 border border-white/10",children:[e.jsx("h1",{className:"text-4xl font-black tracking-tighter mb-2",children:"Create account"}),e.jsx("p",{className:"text-white/40 text-sm mb-8",children:"Join the SCROll STOP CMS"}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-black uppercase tracking-widest text-white/50",children:"Full name"}),e.jsx("input",{required:!0,value:c,onChange:t=>p(t.target.value),className:"mt-2 w-full bg-white/5 border border-white/10 rounded-card px-4 py-3 focus:outline-none focus:border-accent-cyan"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-black uppercase tracking-widest text-white/50",children:"Email"}),e.jsx("input",{type:"email",required:!0,value:i,onChange:t=>h(t.target.value),className:"mt-2 w-full bg-white/5 border border-white/10 rounded-card px-4 py-3 focus:outline-none focus:border-accent-cyan"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-black uppercase tracking-widest text-white/50",children:"Password"}),e.jsx("input",{type:"password",required:!0,minLength:6,value:l,onChange:t=>b(t.target.value),className:"mt-2 w-full bg-white/5 border border-white/10 rounded-card px-4 py-3 focus:outline-none focus:border-accent-cyan"})]}),e.jsx("button",{type:"submit",disabled:o,className:"w-full bg-accent-cyan text-brand-black font-black uppercase tracking-widest text-sm py-4 rounded-pill hover:opacity-90 disabled:opacity-50",children:o?"Creating…":"Create account"})]}),e.jsxs("p",{className:"mt-6 text-center text-sm text-white/40",children:["Already have an account? ",e.jsx(m,{to:"/login",className:"text-accent-cyan font-bold",children:"Sign in"})]})]})]})})}export{N as component};

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.