nun Ohne Tailwind

This commit is contained in:
rxf
2026-03-12 09:11:43 +01:00
parent a949ebcdc8
commit 0faa144e4f
8 changed files with 204 additions and 694 deletions

View File

@@ -7,19 +7,19 @@ export default function LoginPage() {
const [state, loginAction, isPending] = useActionState(login, undefined);
return (
<div className="min-h-screen bg-white py-4 px-4">
<main className="max-w-6xl mx-auto border-2 border-black rounded-lg p-6 bg-[#FFFFDD]">
<div className="flex justify-between items-center mb-6">
<h1 className="text-3xl font-bold">Tabletten-Übersicht</h1>
<div className="login-wrapper">
<main className="login-outer">
<div className="login-header">
<h1 className="login-page-title">Tabletten-Übersicht</h1>
</div>
<div className="flex justify-center py-10">
<div className="w-full max-w-sm bg-white border border-gray-300 rounded-xl shadow-md p-8">
<h2 className="text-xl font-semibold text-gray-900 mb-6 text-center">Anmeldung</h2>
<div className="login-center">
<div className="login-card">
<h2 className="login-card-title">Anmeldung</h2>
<form action={loginAction} className="space-y-5">
<form action={loginAction} className="login-form">
<div>
<label htmlFor="username" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="username" className="login-label">
Benutzername
</label>
<input
@@ -28,14 +28,14 @@ export default function LoginPage() {
type="text"
required
autoComplete="off"
className="w-full px-3 py-2 border-2 border-gray-400 rounded-lg bg-white text-gray-900 focus:border-blue-500 focus:outline-none text-sm"
className="login-input"
placeholder="Benutzername"
disabled={isPending}
/>
</div>
<div>
<label htmlFor="password" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="password" className="login-label">
Passwort
</label>
<input
@@ -44,14 +44,14 @@ export default function LoginPage() {
type="password"
required
autoComplete="new-password"
className="w-full px-3 py-2 border-2 border-gray-400 rounded-lg bg-white text-gray-900 focus:border-blue-500 focus:outline-none text-sm"
className="login-input"
placeholder="Passwort"
disabled={isPending}
/>
</div>
{state?.error && (
<div className="bg-red-50 border border-red-300 text-red-700 px-3 py-2 rounded-lg text-sm">
<div className="login-error">
{state.error}
</div>
)}
@@ -59,7 +59,7 @@ export default function LoginPage() {
<button
type="submit"
disabled={isPending}
className="w-full py-2 px-4 bg-[#85B7D7] hover:bg-[#6a9fc5] text-black font-medium rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed text-sm"
className="login-submit"
>
{isPending ? 'Anmeldung läuft...' : 'Anmelden'}
</button>