Login/Signup-Komponente
Eine reaktionsschnelle Login-/Signup-Komponente, die für den Dunkelmodus mit Tailwind CSS entwickelt wurde.
HTML-Code
<div class="min-h-screen flex items-center justify-center bg-gray-900 p-6">
<div class="bg-gray-800 rounded-lg shadow-lg p-8 max-w-sm w-full">
<h2 class="text-2xl text-white text-center mb-6">Welcome</h2>
<form>
<div class="mb-4">
<label class="block text-gray-300 mb-2" for="email">Email</label>
<input class="w-full p-3 rounded bg-gray-700 text-white focus:outline-none focus:ring focus:ring-blue-500" type="email" id="email" placeholder="Enter your email" required>
</div>
<div class="mb-4">
<label class="block text-gray-300 mb-2" for="password">Password</label>
<input class="w-full p-3 rounded bg-gray-700 text-white focus:outline-none focus:ring focus:ring-blue-500" type="password" id="password" placeholder="Enter your password" required>
</div>
<button class="w-full bg-blue-600 text-white p-3 rounded hover:bg-blue-500 transition duration-300" type="submit">Login</button>
</form>
<div class="text-center text-gray-400 mt-4">
<p>Don't have an account? <a href="#" class="text-blue-400">Sign up</a></p>
</div>
</div>
<div class="bg-gray-800 rounded-lg shadow-lg p-8 max-w-sm w-full mt-8">
<h2 class="text-2xl text-white text-center mb-6">Sign Up</h2>
<form>
<div class="mb-4">
<label class="block text-gray-300 mb-2" for="name">Name</label>
<input class="w-full p-3 rounded bg-gray-700 text-white focus:outline-none focus:ring focus:ring-blue-500" type="text" id="name" placeholder="Enter your name" required>
</div>
<div class="mb-4">
<label class="block text-gray-300 mb-2" for="email-signup">Email</label>
<input class="w-full p-3 rounded bg-gray-700 text-white focus:outline-none focus:ring focus:ring-blue-500" type="email" id="email-signup" placeholder="Enter your email" required>
</div>
<div class="mb-4">
<label class="block text-gray-300 mb-2" for="password-signup">Password</label>
<input class="w-full p-3 rounded bg-gray-700 text-white focus:outline-none focus:ring focus:ring-blue-500" type="password" id="password-signup" placeholder="Create a password" required>
</div>
<button class="w-full bg-blue-600 text-white p-3 rounded hover:bg-blue-500 transition duration-300" type="submit">Sign Up</button>
</form>
</div>
</div>
Verwandte Komponenten
Login/Signup-Komponente
Eine komplexe Login-/Registrierungskomponente unter Verwendung von Material Design-Prinzipien und einem monochromen Farbschema für Geschäfts- und Unternehmenswebsites mit Unterstützung für dunkle Themen.
Login/Signup-Komponente
Eine minimalistische und flache Design-Login/Signup-Komponente mit responsiven Effekten und Unterstützung für dunkle Themen, die Tailwind CSS verwendet.
Login/Signup-Komponente
Eine komplexe Login/Signup-Komponente, die mit einem skeuomorphen Stil entworfen wurde und ein Graustufen-Farbschema für eine Dashboard-Oberfläche verwendet. Es enthält verschiedene interaktive Elemente und ist reaktionsschnell mit Unterstützung für dunkle Themen.