Components Rating System Bauhaus Pastel Rating System Component

Bauhaus Pastel Rating System Component

A responsive and functional rating system component with geometric forms and pastel colors, suitable for dashboard integration. Includes dark mode support.

Preview

HTML Code

<div class="p-4 sm:p-6 md:p-8 bg-gradient-to-br from-purple-50 to-pink-50 dark:from-gray-800 dark:to-gray-900 min-h-screen flex items-center justify-center font-sans">
  <div class="w-full max-w-md mx-auto bg-white dark:bg-gray-700 rounded-lg shadow-xl p-6 sm:p-8 border border-gray-100 dark:border-gray-600 transition-all duration-300 ease-in-out">
    <h3 class="text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-100 mb-6 text-center tracking-wide">Rate Our Service</h3>
    
    <div class="flex justify-center items-center gap-2 sm:gap-3 mb-8">
      <button aria-label="1 star rating" class="rating-star text-3xl sm:text-4xl text-gray-300 dark:text-gray-500 hover:text-yellow-400 dark:hover:text-yellow-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-300 rounded-sm">
        &#9733;
      </button>
      <button aria-label="2 star rating" class="rating-star text-3xl sm:text-4xl text-gray-300 dark:text-gray-500 hover:text-yellow-400 dark:hover:text-yellow-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-300 rounded-sm">
        &#9733;
      </button>
      <button aria-label="3 star rating" class="rating-star text-3xl sm:text-4xl text-yellow-400 dark:text-yellow-300 hover:text-yellow-400 dark:hover:text-yellow-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-300 rounded-sm">
        &#9733;
      </button>
      <button aria-label="4 star rating" class="rating-star text-3xl sm:text-4xl text-gray-300 dark:text-gray-500 hover:text-yellow-400 dark:hover:text-yellow-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-300 rounded-sm">
        &#9733;
      </button>
      <button aria-label="5 star rating" class="rating-star text-3xl sm:text-4xl text-gray-300 dark:text-gray-500 hover:text-yellow-400 dark:hover:text-yellow-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-300 rounded-sm">
        &#9733;
      </button>
    </div>
    
    <div class="mb-6">
      <label for="comments" class="block text-sm font-medium text-gray-700 dark:text-gray-200 mb-2">Comments (Optional):</label>
      <textarea id="comments" rows="4" class="block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:ring-2 focus:ring-blue-300 focus:border-blue-300 dark:bg-gray-800 dark:text-gray-100 resize-none transition-colors duration-200 placeholder-gray-400 dark:placeholder-gray-500" placeholder="Tell us about your experience..."></textarea>
    </div>
    
    <div class="flex justify-center">
      <button type="submit" class="w-full max-w-xs py-2 px-4 border border-transparent rounded-md shadow-sm text-lg font-semibold text-white bg-blue-500 hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-gray-800 dark:focus:ring-blue-600 transition-colors duration-200 ease-in-out transform hover:-translate-y-0.5">
        Submit Rating
      </button>
    </div>
  </div>
</div>

Related Components

Rating System Component

A rating system component designed in a retro/vintage style, utilizing a complementary color scheme and a complex interface for blog content. This component supports dark mode and is responsive using Tailwind CSS.

Open

Neumorphic Vibrant Rating System Component

A complex, interactive rating system component designed with a Neumorphic style and vibrant color scheme, suitable for forum and community platforms. It includes star ratings, up/down voting, and a numerical display, with full responsiveness and dark mode support.

Open

Rating System Component

Retro/Vintage Rating System Component for E-commerce with Complementary Color Scheme.Responsive with Dark Mode Support. No JavaScript needed, only HTML with Tailwind CSS.

Open