Componente del sistema de clasificación
Un componente de calificación de diseño minimalista y plano adecuado para aplicaciones de tablero, con tonos joya y capacidad de respuesta total con soporte para modo oscuro.
Código HTML
<div class="p-4 sm:p-6 md:p-8 bg-white dark:bg-gray-800 rounded-lg shadow-lg max-w-sm mx-auto transition-colors duration-300">
<h2 class="text-lg sm:text-xl font-semibold text-gray-800 dark:text-white mb-4 text-center sm:text-left">Overall Satisfaction</h2>
<div class="flex items-center justify-center sm:justify-start mb-4">
<div class="flex space-x-1">
<!-- Active Stars -->
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-emerald-500 dark:text-emerald-400 fill-current" viewBox="0 0 24 24">
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.896l-7.416 3.896 1.48-8.279L.001 9.306l8.332-1.151L12 .587z" />
</svg>
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-emerald-500 dark:text-emerald-400 fill-current" viewBox="0 0 24 24">
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.896l-7.416 3.896 1.48-8.279L.001 9.306l8.332-1.151L12 .587z" />
</svg>
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-emerald-500 dark:text-emerald-400 fill-current" viewBox="0 0 24 24">
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.896l-7.416 3.896 1.48-8.279L.001 9.306l8.332-1.151L12 .587z" />
</svg>
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-emerald-500 dark:text-emerald-400 fill-current" viewBox="0 0 24 24">
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.896l-7.416 3.896 1.48-8.279L.001 9.306l8.332-1.151L12 .587z" />
</svg>
<!-- Inactive Stars -->
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-gray-300 dark:text-gray-600 fill-current" viewBox="0 0 24 24">
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.896l-7.416 3.896 1.48-8.279L.001 9.306l8.332-1.151L12 .587z" />
</svg>
</div>
<span class="ml-3 text-lg sm:text-xl font-bold text-gray-800 dark:text-white">4.0</span>
</div>
<p class="text-sm sm:text-base text-gray-600 dark:text-gray-300 text-center sm:text-left">Based on 125 ratings</p>
</div>
Componentes relacionados
Componente del sistema de clasificación
Componente del sistema de clasificación retro / vintage para comercio electrónico con esquema de color complementario. Responsivo con soporte de modo oscuro. No se necesita JavaScript, solo HTML con Tailwind CSS.
Componente del sistema de clasificación brutalista
Un componente del sistema de calificación responsivo diseñado en un estilo brutalista usando Tailwind CSS, con soporte para temas oscuros.
Componente 24 del sistema de clasificación
Un componente del sistema de clasificación diseñado en 3D que admite temas oscuros y efectos responsivos. Este componente cuenta con estrellas para las calificaciones, avatares de usuario y una sección de comentarios.