PageSourceSearch

https://scrollstop.com/assets/login-CzkbWf63.js

js scrollstop.com collected 2026-09-25 20:39:07 UTC 2,358 bytes, 1 lines download raw bytes

1import{u as h,d as b,r as s,j as e,L as n,s as g,t as f}from"./index-dt5w-xvv.js";function j(){const a=h(),{session:r,loading:c}=b(),[i,x]=s.useState(""),[o,m]=s.useState(""),[l,d]=s.useState(!1);s.useEffect(()=>{!c&&r&&a({to:"/admin"})},[c,r,a]);const p=async t=>{t.preventDefault(),d(!0);const{error:u}=await g.auth.signInWithPassword({email:i,password:o});if(d(!1),u){f.error(u.message);return}a({to:"/admin"})};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(n,{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:"Sign in"}),e.jsx("p",{className:"text-white/40 text-sm mb-8",children:"SCROll STOP CMS"}),e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[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=>x(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,value:o,onChange:t=>m(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:l,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:l?"Signing in...":"Sign in"})]}),e.jsx("p",{className:"mt-6 text-center text-sm",children:e.jsx(n,{to:"/forgot-password",className:"text-white/60 hover:text-accent-cyan font-bold",children:"Forgot password?"})}),e.jsxs("p",{className:"mt-3 text-center text-sm text-white/40",children:["Don't have an account? ",e.jsx(n,{to:"/signup",className:"text-accent-cyan font-bold",children:"Sign up"})]})]})]})})}export{j 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.