Components Two-Factor Authentication Two-Factor Authentication Component

Two-Factor Authentication Component

A Two-Factor Authentication Component styled in a brutalist design using Tailwind CSS, featuring responsive effects and dark theme support.

Preview

HTML Code

<div class="flex flex-col items-center justify-center min-h-screen p-4 bg-gray-100 dark:bg-gray-800">
    <div class="max-w-sm p-6 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 shadow-md rounded-lg flex flex-col">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4 text-center">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 text-center mb-6">
            Please enter the authentication code sent to your email.
        </p>
        <div class="flex flex-col mb-4">
            <label class="text-gray-600 dark:text-gray-400 text-sm mb-2" for="auth-code">Authentication Code</label>
            <input type="text" id="auth-code" class="p-2 border border-gray-300 dark:border-gray-700 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 transition duration-200" placeholder="Enter your code">
        </div>
        <button class="w-full p-2 bg-blue-600 text-white font-bold rounded hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-400 transition duration-200">Verify</button>
        <div class="mt-4 text-center">
            <img src="https://picsum.photos/50?random=1" alt="Placeholder" class="rounded-full mb-2">
            <span class="text-gray-600 dark:text-gray-400 text-sm">John Doe</span>
        </div>
    </div>
</div>

Related Components

Two-Factor Authentication Component

A simple two-factor authentication component featuring a vibrant color scheme and 3D design elements suitable for business websites.

Open

Two-Factor Authentication Component

A two-factor authentication component designed with microinteractions, responsive effects, and dark theme support using Tailwind CSS.

Open

Two-Factor Authentication Component

A responsive Two-Factor Authentication component designed with Neumorphism in a vibrant color scheme, suitable for business websites and supporting dark mode with Tailwind CSS.

Open