PageSourceSearch

https://smartdevops.ai/assets/AdminLogin-BF5G48va.js

js smartdevops.ai collected 2026-10-05 15:06:02 UTC 1,560 bytes, 1 lines download raw bytes

1import{U as a,$ as g,ae as f,O as e,I as l,B as p,Z as j}from"./index-IBHyG7M_.js";import{L as d}from"./label-DPfgYCkJ.js";import{S as b}from"./shield-DUfxfOyh.js";const N=()=>{const[t,o]=a.useState(""),[r,c]=a.useState(""),[i,n]=a.useState(!1),{signIn:m}=g(),u=f(),x=async s=>{s.preventDefault(),n(!0);try{await m(t,r),u("/admin")}catch(h){j.error(h.message||"Login failed")}finally{n(!1)}};return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-hero",children:e.jsxs("div",{className:"w-full max-w-md p-8 rounded-2xl bg-card border border-border shadow-xl",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-xl bg-gradient-electric mb-4",children:e.jsx(b,{className:"w-7 h-7 text-primary-foreground"})}),e.jsx("h1",{className:"text-2xl font-display font-bold text-foreground",children:"Admin Login"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Smart Devops LLC Dashboard"})]}),e.jsxs("form",{onSubmit:x,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(d,{htmlFor:"email",children:"Email"}),e.jsx(l,{id:"email",type:"email",value:t,onChange:s=>o(s.target.value),required:!0})]}),e.jsxs("div",{children:[e.jsx(d,{htmlFor:"password",children:"Password"}),e.jsx(l,{id:"password",type:"password",value:r,onChange:s=>c(s.target.value),required:!0})]}),e.jsx(p,{type:"submit",className:"w-full bg-gradient-electric text-white",disabled:i,children:i?"Signing in...":"Sign In"})]})]})})};export{N as default};

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.