2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
|
|
import{j as e}from"./vendor-react-BHG7lGYR.js";import{L as i}from"./vendor-router-D-s5vIeO.js";import{d as n}from"./index-BWcMVITa.js";function m({title:t,subtitle:r,children:l,footerLinks:o,className:a}){return e.jsxs("div",{className:n("min-h-screen flex items-center justify-center bg-kodo-void py-12 px-4 sm:px-6 lg:px-8 relative overflow-hidden",a),role:"main","aria-label":"Page d'authentification",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-kodo-cyan/5 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-kodo-magenta/5 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"max-w-2xl w-full space-y-8 relative z-10 animate-fade-in",children:[e.jsxs("header",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center mb-6",children:[e.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-kodo-cyan to-kodo-cyan-dim flex items-center justify-center shadow-glow-cyan","aria-hidden":"true",children:e.jsx("span",{className:"text-kodo-void font-bold text-2xl",children:"V"})}),e.jsx("span",{className:"ml-3 font-bold text-3xl text-white",children:"Veza"})]}),e.jsx("h1",{id:"auth-form-title",className:"text-4xl font-bold text-white mb-2",children:t}),r&&e.jsx("p",{className:"text-sm text-kodo-secondary",role:"doc-subtitle",children:r})]}),e.jsx("section",{className:"glass rounded-2xl border border-white/10 py-8 px-6 sm:px-8 shadow-2xl backdrop-blur-xl w-full","aria-labelledby":"auth-form-title",children:l}),o&&o.length>0&&e.jsx("nav",{className:"text-center space-x-4","aria-label":"Navigation d'authentification",children:o.map(s=>e.jsx(i,{to:s.to,className:"text-sm text-kodo-steel dark:text-kodo-steel hover:text-white dark:hover:text-white transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded",children:s.label},s.to))})]})]})}function u({loading:t,variant:r="primary",className:l,children:o,disabled:a,...s}){return e.jsx("button",{className:n("w-full px-4 py-2 rounded-lg font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",r==="primary"?"bg-kodo-cyan text-white hover:bg-kodo-cyan focus:ring-blue-500 dark:bg-kodo-cyan dark:hover:bg-kodo-cyan":"bg-kodo-slate text-kodo-text-main hover:bg-kodo-slate focus:ring-gray-500 dark:bg-kodo-steel dark:text-kodo-text-main dark:hover:bg-kodo-steel",(a||t)&&"opacity-50 cursor-not-allowed",l),disabled:a||t,"aria-busy":t,"aria-disabled":a||t?"true":"false",...s,children:t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:"Chargement en cours"}),e.jsx("span",{"aria-hidden":"true",children:"Chargement..."})]}):o})}export{m as A,u as a};
|