组件 评级系统 评分系统组件

评分系统组件

一个复古/怀旧风格的评分系统组件,使用Tailwind CSS设计,具有响应式设计和暗主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 p-5 rounded-lg shadow-lg max-w-md mx-auto">
    <h2 class="text-2xl font-bold text-center text-gray-800 dark:text-white mb-4">Rate This Item</h2>
    <div class="flex justify-center mb-4">
        <img src="https://picsum.photos/200/100" alt="Item Image" class="rounded-md">
    </div>
    <div class="flex justify-center mb-4">
        <img src="https://randomuser.me/api/portraits/men/10.jpg" alt="User Avatar" class="rounded-full w-12 h-12 border-2 border-gray-300 dark:border-gray-600 mr-2">
        <span class="text-gray-800 dark:text-white self-center">John Doe</span>
    </div>
    <div class="flex justify-center mb-4">
        <span class="text-yellow-500 text-3xl">★ ★ ★ ★ ☆</span>
    </div>
    <div class="flex justify-between mt-4">
        <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline transition duration-300 ease-in-out">Submit</button>
        <button class="bg-gray-300 dark:bg-gray-700 hover:bg-gray-400 dark:hover:bg-gray-600 text-gray-800 dark:text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline transition duration-300 ease-in-out">Cancel</button>
    </div>
</div>

相关组件

评级系统组件

一个用于电子商务的复杂评级系统组件,具有极简/扁平设计、灰度配色方案、响应式设计和使用 Tailwind CSS 的深色主题支持。无 JavaScript。将 picsum.photos 和 randomuser.me 用于图像和头像。

打开

评分系统组件

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

打开

评分系统组件

一个响应式网页组件,用于对物品进行评分,具备拟物化设计,仿照现实世界对应物。适合在作品集展示工作或产品。

打开