PageSourceSearch

https://eleniyourcoach.com/assets/LoginPage-DHXCDwkw.js

js eleniyourcoach.com collected 2026-10-09 22:01:47 UTC 2,927 bytes, 1 lines download raw bytes

1import{u as h,a as b,f as y,r as a,j as e,S as j,L as c,s as N,i as w}from"./index-CPjgkGeh.js";import{N as v}from"./Navbar-MYJHbt-m.js";import{M as L}from"./mail-BWwPRoBK.js";import{L as S}from"./lock-CDnjZATE.js";import{E,a as k}from"./eye-DK9P10bT.js";import"./logo-CkGmKs1s.js";import"./linkedin-BpBonHv6.js";const D=()=>{const{t:s}=h(),{lp:r}=b(),m=y(),[n,p]=a.useState(""),[l,x]=a.useState(""),[o,f]=a.useState(!1),[d,i]=a.useState(!1),g=async t=>{t.preventDefault(),i(!0);const{error:u}=await N.auth.signInWithPassword({email:n,password:l});i(!1),u?w.error(u.message):m(r("/dashboard"))};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(j,{title:"Login | Eleni Your Coach",description:"Sign in to your account",noindex:!0}),e.jsx(v,{}),e.jsx("div",{className:"flex items-center justify-center min-h-screen pt-20 px-4",children:e.jsx("div",{className:"w-full max-w-md",children:e.jsxs("div",{className:"bg-card rounded-2xl border border-border shadow-sm p-8",children:[e.jsx("h1",{className:"text-2xl font-display text-foreground text-center mb-6",children:s("auth.login")}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"email",value:n,onChange:t=>p(t.target.value),placeholder:s("auth.email"),required:!0,className:"w-full pl-10 pr-4 py-3 rounded-lg border border-border bg-background font-body text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/30"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(S,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:o?"text":"password",value:l,onChange:t=>x(t.target.value),placeholder:s("auth.password"),required:!0,className:"w-full pl-10 pr-10 py-3 rounded-lg border border-border bg-background font-body text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/30"}),e.jsx("button",{type:"button",onClick:()=>f(!o),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:o?e.jsx(E,{className:"w-4 h-4"}):e.jsx(k,{className:"w-4 h-4"})})]}),e.jsx("button",{type:"submit",disabled:d,className:"w-full bg-primary text-primary-foreground py-3 rounded-lg font-body font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:d?"...":s("auth.login")})]}),e.jsxs("div",{className:"mt-4 text-center space-y-2",children:[e.jsx(c,{to:r("/forgot-password"),className:"text-sm text-primary hover:underline font-body block",children:s("auth.forgotPassword")}),e.jsxs("p",{className:"text-sm text-muted-foreground font-body",children:[s("auth.noAccount")," ",e.jsx(c,{to:r("/signup"),className:"text-primary hover:underline",children:s("auth.signup")})]})]})]})})})]})};export{D 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.