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
Un componente del sistema de clasificación responsivo diseñado en un estilo Brutalism usando Tailwind CSS. Es compatible con el tema oscuro y tiene un alto contraste con un diseño crudo y atrevido.
Componente del sistema de clasificación
Un componente complejo del sistema de clasificación para el comercio electrónico con un diseño minimalista/plano, una combinación de colores en escala de grises, un diseño responsivo y compatibilidad con temas oscuros mediante Tailwind CSS. Sin JavaScript. Utiliza picsum.photos y randomuser.me para imágenes y avatares.
Componente del sistema de clasificación
Un componente minimalista del sistema de calificación de diseño plano adecuado para sitios web comerciales, con un diseño receptivo y soporte para temas oscuros.