Login/Signup Component
A responsive Login/Signup component designed for dark mode using Tailwind CSS.
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>
Related Components
Login/Signup Component
A minimalist and flat design Login/Signup component with responsive effects and dark theme support, utilizing Tailwind CSS.
Login/Signup Component
A responsive Login/Signup component designed in a skeuomorphic style using Tailwind CSS, with dark theme support.