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

粗犷主义评级系统组件

一个使用 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>

相关组件

评分系统组件

一个评分系统组件,采用新拟态风格,具有响应效果和黑暗主题支持。

打开

Monospace 森林评级系统组件

一个简洁的、受代码启发的评级系统组件,带有森林绿色调色板,适用于投资组合。具有用于评级的交互式星号并显示平均评级,完全响应并支持深色模式。

打开

评分系统组件

一个玻璃形态风格的评分系统组件,适合展示作品或产品的作品集,具有响应式设计和暗主题支持。

打开