Search Box Component
A responsive search box component with a brutalist design, using a complementary color scheme suitable for business websites.
HTML Code
<div class="flex flex-col items-center justify-center min-h-screen p-4 bg-gray-800 dark:bg-gray-900">
<h1 class="text-4xl font-bold text-white mb-4">Find What You Need</h1>
<div class="flex items-center border-b-2 border-yellow-400 dark:border-blue-400">
<input type="text" placeholder="Search..." class="p-2 bg-gray-700 dark:bg-gray-800 text-yellow-400 dark:text-blue-400 placeholder-yellow-300 placeholder-opacity-50 dark:placeholder-blue-300 dark:placeholder-opacity-50 outline-none w-full" />
<button class="bg-yellow-400 dark:bg-blue-400 text-gray-900 dark:text-white font-bold p-2 ml-2 hover:bg-yellow-500 dark:hover:bg-blue-500 transition duration-200">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Search" class="w-4 h-4 inline-block" />
</button>
</div>
<div class="mt-4">
<img src="https://picsum.photos/300/200" alt="Random Image" class="w-full max-w-md rounded-lg shadow-lg" />
</div>
</div>
Related Components
Organic Nature-Inspired Search Box
A simple, responsive search box component with an organic, nature-inspired design and a rainbow gradient, suitable for business or corporate websites. Includes dark mode support.
Brutalist Search Box
A brutalist search box component for a dashboard, featuring a complementary color scheme and moderate complexity, with responsive design and dark theme support using Tailwind CSS.
Glassmorphism Search Box Component
A responsive glassmorphism-style search box component with grayscale colors, suitable for blogs or content sites, featuring a frosted glass-like translucent input and button. Includes dark mode support.