Minimalistisches Anmeldeformular
Ein minimalistisches Anmeldeformular für E-Commerce-Websites mit Unterstützung für responsives Design und Dunkelmodus. Verwendet ein analoges Farbschema. Kein JavaScript.
HTML-Code
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
<div class="w-full max-w-md p-8 space-y-6 bg-white rounded-lg shadow-md dark:bg-gray-800">
<h2 class="text-2xl font-bold text-center text-gray-900 dark:text-white">Login</h2>
<form class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Email address</label>
<input id="email" name="email" type="email" autocomplete="email" required class="relative block w-full px-3 py-2 mt-1 text-gray-900 placeholder-gray-500 border border-gray-300 rounded-md appearance-none cursor-text focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:border-gray-600">
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Password</label>
<input id="password" name="password" type="password" autocomplete="current-password" required class="relative block w-full px-3 py-2 mt-1 text-gray-900 placeholder-gray-500 border border-gray-300 rounded-md appearance-none cursor-text focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:border-gray-600">
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" name="remember-me" type="checkbox" class="w-4 h-4 text-indigo-600 border-gray-300 rounded dark:text-indigo-500 dark:border-gray-600 dark:bg-gray-700 focus:ring-indigo-500">
<label for="remember-me" class="block ml-2 text-sm text-gray-900 dark:text-gray-300">Remember me</label>
</div>
<div class="text-sm">
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-500 dark:hover:text-indigo-400">Forgot your password?</a>
</div>
</div>
<div>
<button type="submit" class="relative flex justify-center w-full px-4 py-2 text-sm font-medium text-white bg-indigo-600 border border-transparent rounded-md group hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:bg-indigo-700 dark:hover:bg-indigo-600">
Sign in
</button>
</div>
</form>
<div class="text-sm text-center">
<p class="text-gray-600 dark:text-gray-400">Don't have an account? <a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-500 dark:hover:text-indigo-400">Sign up</a></p>
</div>
</div>
</div>
Verwandte Komponenten
Komponente des Anmeldeformulars
Responsives Anmeldeformular mit Materialdesign, triadischem Farbschema und Unterstützung für den Dunkelmodus mit Tailwind CSS.
Komponente des Anmeldeformulars
Eine mit Glassmorphism entworfene Login-Formularkomponente mit mattglasähnlichen durchscheinenden Elementen und responsiven Effekten, die dunkle Themen mit Tailwind CSS unterstützen.
Komponente des 3D-Anmeldeformulars
Ein responsives Anmeldeformular mit 3D-Design, triadischem Farbschema und Unterstützung für dunkle Themen. Geeignet für Social-Media-Schnittstellen.