Components Two-Factor Authentication Two-Factor Authentication Component

Two-Factor Authentication Component

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

Preview

HTML Code

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 w-full max-w-md">
        <h2 class="text-2xl font-semibold text-gray-800 dark:text-gray-200 text-center mb-4">Two-Factor Authentication</h2>
        <p class="text-gray-600 dark:text-gray-400 text-center mb-6">Please enter the code sent to your registered mobile number.</p>
        <div class="flex flex-col items-center">
            <input type="text" placeholder="Enter your code" class="w-full p-3 rounded border border-gray-300 dark:border-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 transition-all mb-4"/>
        </div>
        <div class="flex items-center justify-between mb-4">
            <button class="transition-transform transform hover:scale-105 bg-blue-500 text-white p-3 rounded-lg shadow-md hover:shadow-lg focus:ring-2 focus:ring-blue-400 dark:bg-blue-600 dark:hover:bg-blue-500 dark:focus:ring-blue-300">Verify</button>
            <button class="text-blue-500 hover:underline dark:text-blue-400">Resend Code</button>
        </div>
        <hr class="my-4 border-gray-300 dark:border-gray-700"/>
        <div class="text-center">
            <img src="https://picsum.photos/40" alt="User Avatar" class="rounded-full mx-auto mb-2"/>
            <span class="text-gray-600 dark:text-gray-400">User's Name</span>
        </div>
    </div>
</div>

Related Components

Two-Factor Authentication Component

A simple two-factor authentication component designed with glassmorphism style, suitable for e-commerce platforms. It features a monochromatic color scheme and is responsive with support for dark mode.

Open

Two-Factor Authentication Component

A Two-Factor Authentication component designed with engaging microinteractions and a complementary color scheme. It is responsive and supports dark mode, suitable for showcasing work or products in a portfolio.

Open

Two-Factor Authentication Component

A minimalist two-factor authentication component designed for a portfolio with a triadic color scheme. It features a clean, interactive interface supporting dark mode, built using Tailwind CSS.

Open