组件 搜索框 搜索框组件

搜索框组件

一个为商业和企业网站设计的 3D 风格搜索框组件,具有深度复杂的界面、互动元素和暗模式支持。

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-6 bg-gradient-to-r from-gray-800 to-gray-700 rounded-lg shadow-lg transform transition-all duration-300 hover:scale-105">
    <h2 class="text-white text-2xl font-semibold mb-4">Search Our Resources</h2>
    <div class="relative w-full max-w-md">
        <input type="text" placeholder="Search..." class="w-full p-4 pl-10 text-gray-900 dark:text-gray-300 bg-white dark:bg-gray-800 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-300 transition-all duration-200" />
        <div class="absolute inset-y-0 left-0 flex items-center pl-3">
            <img src="https://picsum.photos/20/20" alt="Search Icon" class="w-5 h-5 text-gray-400 dark:text-gray-500" />
        </div>
    </div>
    <div class="flex justify-between items-center w-full mt-4">
        <button class="px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg shadow hover:bg-blue-700 transition-all duration-200">Search</button>
        <button class="px-4 py-2 text-sm font-medium text-gray-200 dark:text-gray-400 hover:underline">Advanced Search</button>
    </div>
</div>

相关组件

搜索框组件

使用 Tailwind CSS 的响应式搜索框,支持深色模式。

打开

搜索框组件

一个简单的 retro/vintage 风格的搜索框组件,专为博客或内容消费而设计。它使用单色配色方案,并支持深色主题。

打开

搜索框组件

一个具有响应式设计和暗黑主题支持的暗黑模式搜索框组件。未使用JavaScript。图像为占位符图像。

打开