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

评分系统组件

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

一个复杂的、受等宽空间启发的评级系统组件,具有秋天的色彩,适用于工业和制造应用。具有简洁的设计、多个交互元素、完全响应能力和暗模式支持。

打开

Monospace_Developer_Rating_System_Component

一个干净的、受代码启发的评级系统组件,适用于社交媒体界面,具有等宽字体、终端美学和互补色。它完全响应,支持深色模式。

打开

评分系统组件

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

打开