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

评分系统组件

一个复古/怀旧风格的评分系统组件,使用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>

相关组件

复古评分系统

复古/复古柔和色调评分系统

打开

Monospace 森林评级系统组件

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

打开

评级系统组件

一个简单的响应式评级系统组件,具有棕褐色/棕色调、深色模式支持和以微交互为中心的样式,适用于政府/公共服务网站。

打开