组件 评级系统 Brutalism_Travel_Rating_System

Brutalism_Travel_Rating_System

一个简单的野兽派风格的评级系统组件,适用于旅行和旅游网站,具有酷炫的中性色和深色模式支持。

预览

HTML 代码

<div class="p-4 sm:p-6 md:p-8 bg-gray-100 dark:bg-gray-800 font-mono">厕
  <div class="max-w-md mx-auto border-2 border-gray-900 dark:border-gray-50 bg-white dark:bg-gray-950 p-4 sm:p-6 shadow-[8px_8px_0px_0px_rgba(17,24,39,1)] dark:shadow-[8px_8px_0px_0px_rgba(229,231,235,1)]">
    <h2 class="text-xl sm:text-2xl font-bold text-gray-900 dark:text-gray-50 mb-4 uppercase tracking-widest">RATE YOUR TRIP</h2>
    
    <div class="flex items-center space-x-2 sm:space-x-4 mb-6">
      <img src="https://picsum.photos/id/1015/60/60" alt="Destination" class="w-16 h-16 sm:w-20 sm:h-20 object-cover border-2 border-gray-900 dark:border-gray-50 flex-shrink-0">
      <div class="flex-grow">
        <p class="text-lg sm:text-xl font-bold text-gray-900 dark:text-gray-50">Alpine Adventure</p>
        <p class="text-xs sm:text-sm text-gray-700 dark:text-gray-300">Zurich, Switzerland</p>
      </div>
    </div>

    <div class="flex justify-between mb-6">
      <button class="flex-1 py-3 px-2 sm:px-4 text-center text-gray-900 dark:text-gray-50 text-xl sm:text-2xl transition-colors duration-200
                     border-2 border-r-0 border-gray-900 dark:border-gray-50 hover:bg-gray-200 dark:hover:bg-gray-800">
        ★
      </button>
      <button class="flex-1 py-3 px-2 sm:px-4 text-center text-gray-900 dark:text-gray-50 text-xl sm:text-2xl transition-colors duration-200
                     border-2 border-r-0 border-gray-900 dark:border-gray-50 hover:bg-gray-200 dark:hover:bg-gray-800">
        ★
      </button>
      <button class="flex-1 py-3 px-2 sm:px-4 text-center text-gray-900 dark:text-gray-50 text-xl sm:text-2xl transition-colors duration-200
                     border-2 border-r-0 border-gray-900 dark:border-gray-50 hover:bg-gray-200 dark:hover:bg-gray-800">
        ★
      </button>
      <button class="flex-1 py-3 px-2 sm:px-4 text-center text-gray-900 dark:text-gray-50 text-xl sm:text-2xl transition-colors duration-200
                     border-2 border-r-0 border-gray-900 dark:border-gray-50 hover:bg-gray-200 dark:hover:bg-gray-800">
        ★
      </button>
      <button class="flex-1 py-3 px-2 sm:px-4 text-center text-gray-900 dark:text-gray-50 text-xl sm:text-2xl transition-colors duration-200
                     border-2 border-gray-900 dark:border-gray-50 hover:bg-gray-200 dark:hover:bg-gray-800">
        ★
      </button>
    </div>

    <button class="w-full bg-gray-900 dark:bg-gray-50 text-white dark:text-gray-900 py-3 sm:py-4 
                   text-lg sm:text-xl font-bold uppercase tracking-widest 
                   border-2 border-gray-900 dark:border-gray-50 
                   hover:bg-gray-700 dark:hover:bg-gray-300 transition-colors duration-200 shadow-[4px_4px_0px_0px_rgba(17,24,39,1)] dark:shadow-[4px_4px_0px_0px_rgba(229,231,235,1)]">
      SUBMIT RATING
    </button>
  </div>
</div>

相关组件

评分系统组件

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

打开

评分系统组件

一个支持深色主题的响应式评级系统组件,采用极简/平面风格设计,具有用于社交媒体界面的柔和配色方案。它是一个具有多个交互元素的复杂组件。

打开

评级系统组件

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

打开