组件 评级系统 粗犷主义评级系统组件

粗犷主义评级系统组件

一个使用 Tailwind CSS 设计的响应式评分系统组件,采用粗野主义风格,并支持暗黑主题。

预览

HTML 代码

<div class="flex flex-col items-center bg-white dark:bg-gray-800 p-5 rounded-lg shadow-md w-80">
    <h2 class="text-xl font-bold text-gray-800 dark:text-gray-200 mb-4">Rate Us!</h2>
    <div class="flex items-center mb-5">
        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="rounded-full w-12 h-12 mr-3 border-2 border-gray-800 dark:border-gray-200">
        <span class="text-lg font-semibold text-gray-800 dark:text-gray-200">John Doe</span>
    </div>
    <div class="flex space-x-1 mb-4">
        <span class="cursor-pointer text-3xl text-yellow-500">★</span>
        <span class="cursor-pointer text-3xl text-yellow-500">★</span>
        <span class="cursor-pointer text-3xl text-yellow-500">★</span>
        <span class="cursor-pointer text-3xl text-gray-300 dark:text-gray-500">★</span>
        <span class="cursor-pointer text-3xl text-gray-300 dark:text-gray-500">★</span>
    </div>
    <textarea class="w-full h-24 p-2 border-2 border-gray-800 dark:border-gray-200 bg-transparent text-gray-800 dark:text-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-yellow-500" placeholder="Leave your feedback..."></textarea>
    <button class="mt-4 px-4 py-2 bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 font-semibold rounded-md hover:bg-gray-700 dark:hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-yellow-500">Submit</button>
</div>

相关组件

评级系统组件

一个复杂的、复古主题的社交媒体评级系统组件,具有单色配色方案。它是完全响应的,并支持暗模式。此组件仅使用 HTML 和 Tailwind CSS,不使用 JavaScript。

打开

评分系统组件

适用于商业网站的极简扁平化设计评级系统组件,具有响应式布局和深色主题支持。

打开

评分系统组件

以复古/复古风格设计的评级系统组件,为博客内容使用互补的配色方案和复杂的界面。此组件支持深色模式,并使用 Tailwind CSS 进行响应。

打开