Feedback Components
A complex feedback component designed for business/corporate websites in dark mode, utilizing a complementary color scheme.
HTML Code
<div class="bg-gray-900 p-6 rounded-lg shadow-md dark:bg-gray-800">
<h2 class="text-2xl font-bold text-white mb-4">Feedback Component</h2>
<form class="space-y-4">
<div>
<label for="name" class="block text-gray-300 dark:text-gray-200">Name</label>
<input type="text" id="name" class="mt-1 p-2 w-full rounded-md border border-gray-700 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:border-gray-600" placeholder="Your Name" required />
</div>
<div>
<label for="email" class="block text-gray-300 dark:text-gray-200">Email</label>
<input type="email" id="email" class="mt-1 p-2 w-full rounded-md border border-gray-700 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:border-gray-600" placeholder="Your Email" required />
</div>
<div>
<label for="feedback" class="block text-gray-300 dark:text-gray-200">Feedback</label>
<textarea id="feedback" rows="4" class="mt-1 p-2 w-full rounded-md border border-gray-700 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:border-gray-600" placeholder="Your Feedback" required></textarea>
</div>
<div class="flex items-center mb-4">
<input type="checkbox" id="subscribe" class="h-4 w-4 text-teal-500 border-gray-700 rounded dark:bg-gray-900 dark:border-gray-600" />
<label for="subscribe" class="ml-2 text-gray-300 dark:text-gray-200">Subscribe to our newsletter</label>
</div>
<button type="submit" class="w-full bg-teal-600 hover:bg-teal-500 rounded-md text-white font-semibold py-2 transition duration-200 ease-in-out">Submit</button>
</form>
<div class="mt-6">
<h3 class="text-lg font-semibold text-gray-400 dark:text-gray-300">Recent Feedback</h3>
<div class="mt-2 bg-gray-800 p-4 rounded-md shadow-md dark:bg-gray-700">
<div class="flex items-center mb-2">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3" />
<div>
<p class="text-gray-200 dark:text-gray-100 font-bold">John Doe</p>
<p class="text-gray-300 dark:text-gray-400">Great service! Highly recommend.</p>
</div>
</div>
<div class="flex items-center mb-2">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3" />
<div>
<p class="text-gray-200 dark:text-gray-100 font-bold">Jane Smith</p>
<p class="text-gray-300 dark:text-gray-400">Loved the experience, will come back!</p>
</div>
</div>
</div>
</div>
</div>
Related Components
Brutalist Feedback Component
A brutalist feedback component with high contrast and bold typography.
Feedback Component
Skeuomorphism-inspired feedback component featuring an analogous color scheme for a dashboard. Designed to be simple, responsive, and supports dark mode using Tailwind CSS. Utilizes shadcn/ui for enhanced styling and components.
Feedback Component
A feedback component designed for social media interfaces, incorporating microinteractions and a grayscale color scheme, with dark theme support.