组件 CAPTCHA 验证码 新拟态验证码组件

新拟态验证码组件

一个响应式、复杂的验证码组件,采用拟物化风格,专为电子商务网站设计,支持深色主题,使用Tailwind CSS。

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center bg-gray-200 dark:bg-gray-800">
    <div class="bg-white dark:bg-gray-900 rounded-lg shadow-lg p-8 max-w-sm w-full">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-100 mb-4">We are not robots!</h2>
        <p class="text-gray-600 dark:text-gray-300 mb-6">Please complete the CAPTCHA to continue.</p>
        <div class="flex flex-col mb-4">
            <img src="https://picsum.photos/200/100?random=1" alt="Random" class="rounded-lg shadow-inner mb-4">
            <span class="text-sm text-gray-500 dark:text-gray-400">Select all images with cars</span>
        </div>
        <div class="grid grid-cols-2 gap-2 mb-4">
            <img src="https://picsum.photos/200/200?random=2" class="rounded-lg shadow-inner cursor-pointer hover:shadow-lg" alt="Random Image 1">
            <img src="https://picsum.photos/200/200?random=3" class="rounded-lg shadow-inner cursor-pointer hover:shadow-lg" alt="Random Image 2">
            <img src="https://picsum.photos/200/200?random=4" class="rounded-lg shadow-inner cursor-pointer hover:shadow-lg" alt="Random Image 3">
            <img src="https://picsum.photos/200/200?random=5" class="rounded-lg shadow-inner cursor-pointer hover:shadow-lg" alt="Random Image 4">
        </div>
        <div class="flex flex-col mb-4">
            <label class="text-sm text-gray-600 dark:text-gray-300 mb-2">Enter the text you see:</label>
            <div class="bg-gray-100 dark:bg-gray-700 rounded-lg p-3 shadow-inner">
                <input type="text" class="w-full bg-transparent outline-none text-gray-800 dark:text-gray-100" placeholder="Type here...">
            </div>
        </div>
        <div>
            <button class="w-full bg-blue-500 hover:bg-blue-600 dark:bg-blue-700 dark:hover:bg-blue-600 text-white font-semibold py-2 rounded-lg shadow">Verify</button>
        </div>
    </div>
</div>

相关组件

Glassmorphism_CAPTCHA_Component_Forest_Green

响应式 glassmorphism 风格的 CAPTCHA 组件,采用森林绿色配色方案,适用于制造/工业应用。包括深色模式支持。

打开

Retro_Vintage_Captcha_Component

适用于商业/公司网站的复古/复古主题 CAPTCHA 组件,具有类似的配色方案、响应式设计和深色模式支持。它唤起了 80 年代/90 年代的美学。

打开

CAPTCHA 组件

一个简单、干净、以等宽为主题的 CAPTCHA 组件,适用于食品/餐厅网站,具有灰度配色方案和完全响应能力,支持深色模式。

打开