组件 手风琴 带有柔和简约设计的手风琴组件

带有柔和简约设计的手风琴组件

一个复杂的、响应式、兼容暗主题的手风琴组件,适用于作品集,采用极简/平面渐变美学,使用Tailwind CSS设计。包括多个交互元素,并使用picsum.photos作为图片来源。

预览

HTML 代码

<div class="max-w-md mx-auto bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden md:max-w-2xl m-5">
  <div class="md:flex">
    <div class="md:flex-shrink-0">
      <img class="h-48 w-full object-cover md:w-48" src="https://picsum.photos/seed/accordion1/400/300" alt="Project image">
    </div>
    <div class="p-8">
      <div class="uppercase tracking-wide text-sm text-indigo-500 dark:text-indigo-300 font-semibold">Project Name 1</div>
      <a href="#" class="block mt-1 text-lg leading-tight font-medium text-black dark:text-white hover:underline">Project Title</a>
      <p class="mt-2 text-gray-500 dark:text-gray-400">This is a brief description of the project, highlighting its purpose and key features.</p>
      <div class="mt-4">
        <details class="group">
          <summary class="flex justify-between items-center font-medium cursor-pointer list-none text-gray-700 dark:text-gray-300">
            <span>Details</span>
            <span class="transition group-open:rotate-180">
              <svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M12 15l-6-6 6-6"></path><path d="M18 15l-6-6 6-6"></path></svg>
            </span>
          </summary>
          <p class="text-gray-500 dark:text-gray-400 mt-3">
            More detailed information about the project, technologies used, challenges faced, and solutions implemented.
          </p>
        </details>
      </div>
    </div>
  </div>
</div>

<div class="max-w-md mx-auto bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden md:max-w-2xl m-5">
  <div class="md:flex">
    <div class="md:flex-shrink-0">
      <img class="h-48 w-full object-cover md:w-48" src="https://picsum.photos/seed/accordion2/400/300" alt="Project image">
    </div>
    <div class="p-8">
      <div class="uppercase tracking-wide text-sm text-green-500 dark:text-green-300 font-semibold">Project Name 2</div>
      <a href="#" class="block mt-1 text-lg leading-tight font-medium text-black dark:text-white hover:underline">Another Project Title</a>
      <p class="mt-2 text-gray-500 dark:text-gray-400">This is a brief description of the second project, highlighting its purpose and key features.</p>
       <div class="mt-4">
        <details class="group">
          <summary class="flex justify-between items-center font-medium cursor-pointer list-none text-gray-700 dark:text-gray-300">
            <span>Details</span>
            <span class="transition group-open:rotate-180">
              <svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M12 15l-6-6 6-6"></path><path d="M18 15l-6-6 6-6"></path></svg>
            </span>
          </summary>
          <p class="text-gray-500 dark:text-gray-400 mt-3">
            More detailed information about the project, technologies used, challenges faced, and solutions implemented.
          </p>
        </details>
      </div>
    </div>
  </div>
</div>

相关组件

Neon_Glow_Accordion_Fashion_Beauty

一个简单、响应迅速的手风琴组件,具有霓虹灯/发光效果和秋季配色方案,适用于时尚和美容品牌。包括深色模式支持。

打开

社交媒体手风琴

响应式手风琴组件,支持社交媒体界面的黑暗主题,采用材料设计原则、三元配色方案和简单布局。不使用JavaScript,仅使用带有Tailwind CSS类的HTML。黑暗模式样式使用dark:前缀。

打开

复古仪表板手风琴

Retro/Vintage Accordion Component for Dashboard,具有互补的配色方案和复杂的复杂性。包括使用 Tailwind CSS 的响应式设计和深色主题支持。无 JavaScript。图片来自 picsum.photos 和头像来自 randomuser.me。

打开