一个为投资组合设计的社交媒体组件,采用响应式设计和使用 Tailwind CSS 的暗黑主题支持。它包括用户头像和姓名的占位符。
<div class="bg-gray-100 dark:bg-gray-800 p-6 rounded-lg shadow-md w-full max-w-sm mx-auto"> <div class="flex items-center"> <img class="w-12 h-12 rounded-full mr-4" src="https://randomuser.me/api/portraits/women/81.jpg" alt="Avatar"> <h2 class="text-xl font-semibold text-gray-800 dark:text-white">Jane Doe</h2> </div> <p class="mt-4 text-gray-600 dark:text-gray-300">Sharing my latest design project! Check out the details and let me know what you think.</p> <div class="flex justify-between items-center mt-6"> <div class="flex space-x-4"> <svg class="w-6 h-6 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4.764a2 2 0 011.803 2.855l-1.782 5.583a2 2 0 01-1.803 1.112H9.118c-.748 0-1.504-.316-1.88-.922l-.443-.665A2 2 0 015 15.999v-3l2-2h2.586a1 1 0 01.707.293l2.586 2.586z"></path></svg> <svg class="w-6 h-6 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.913 9.913 0 01-3.981-.815Thead6C.851 17.542.001 14.824.001 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path></svg> <svg class="w-6 h-6 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"></path></svg> </div> <span class="text-gray-500 dark:text-gray-400 text-sm">2h ago</span> </div> </div>
一个粗犷风格的社交组件,展示了作品集项目,采用三原色方案,适合展示作品或产品。
一个复古/复古社交媒体组件,具有简单的布局和互补色彩方案。支持暗模式,并且响应式。
一个响应式和交互式电子商务社交组件,具有 3D 设计美学、互补配色方案和深色模式支持。包含用户评论/推荐、星级评分和“分享”号召性用语。