组件 社交组件 社交组件组件

社交组件组件

一张简单、响应式的社交媒体卡片,用于新闻/新闻内容,具有工业美学和秋季配色方案,包括深色模式支持。

预览

HTML 代码

<div class="bg-stone-100 dark:bg-stone-900 p-4 sm:p-6 lg:p-8 font-sans antialiased text-stone-800 dark:text-stone-200">
  <div class="max-w-xs mx-auto border-2 border-stone-400 dark:border-stone-700 rounded-lg overflow-hidden shadow-lg bg-stone-50 dark:bg-stone-800 transition-colors duration-300">
    <div class="relative">
      <img class="w-full h-32 object-cover object-center" src="https://picsum.photos/400/250?random=1" alt="News Article Cover">
      <span class="absolute top-2 left-2 bg-amber-700 text-amber-50 text-xs px-2 py-1 rounded font-mono uppercase tracking-wide">News</span>
    </div>
    <div class="p-4">
      <h3 class="text-lg font-bold text-amber-800 dark:text-amber-500 mb-2 leading-tight">Headline Connects Community Leaders</h3>
      <p class="text-sm text-stone-600 dark:text-stone-400 mb-4 line-clamp-3">
        Local officials and community organizers gathered today to discuss new initiatives aimed at fostering stronger neighborhood bonds and addressing pressing local issues.
      </p>
      <div class="flex items-center justify-between text-stone-500 dark:text-stone-400 text-xs">
        <div class="flex items-center space-x-2">
          <img class="w-6 h-6 rounded-full border border-stone-300 dark:border-stone-600" src="https://randomuser.me/api/portraits/men/75.jpg" alt="Author Avatar">
          <span class="font-medium">John Doe</span>
        </div>
        <span>Oct 26, 2023</span>
      </div>
    </div>
  </div>
</div>

相关组件

社交组件

复杂的社交组件部分,专为商业/企业网站设计,采用材料设计原则和灰度色彩方案。它具有响应式设计和黑暗主题支持。

打开

社交组件

具有粗野派和柔和设计的仪表板的社交组件。它显示带有姓名、头衔和头像的用户配置文件,并包含用于社交作(如关注、消息和共享)的按钮。该组件响应迅速,并支持深色模式。

打开

社交组件组件

社交组件 具有拟物化设计、互补配色方案和中等复杂性的组件。它专为商业/公司网站设计,响应式并支持深色主题。

打开