与社交互动和分享相关的组件
一个为投资组合设计的社交媒体组件,采用响应式设计和使用 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>
具有野兽派设计的社交组件,具有响应效果和黑暗主题支持。
<div class="bg-white dark:bg-gray-900 text-black dark:text-white border-4 border-black dark:border-white p-6"> <div class="flex justify-between items-center mb-4"> <h2 class="text-2xl font-bold font-mono">Social Feed</h2> <button class="bg-black dark:bg-white text-white dark:text-black px-4 py-2 border-2 border-black dark:border-white font-mono">Follow</button> </div> <div class="space-y-6"> <div class="border-2 border-black dark:border-white p-4"> <div class="flex items-center mb-4"> <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full border-2 border-black dark:border-white"> <div class="ml-4"> <p class="font-bold font-mono">John Doe</p> <p class="text-sm font-mono">@johndoe</p> </div> </div> <p class="mb-4 font-mono">This is an example social media post. Exciting content and brutalist design!</p> <img src="https://picsum.photos/600/400" alt="Post Image" class="w-full h-48 object-cover border-2 border-black dark:border-white"> <div class="flex justify-between mt-4 font-mono"> <span>Likes: 100</span> <span>Comments: 20</span> </div> </div> <div class="border-2 border-black dark:border-white p-4"> <div class="flex items-center mb-4"> <img src="https://randomuser.me/api/portraits/women/2.jpg" alt="Avatar" class="w-10 h-10 rounded-full border-2 border-black dark:border-white"> <div class="ml-4"> <p class="font-bold font-mono">Jane Smith</p> <p class="text-sm font-mono">@janesmith</p> </div> </div> <p class="mb-4 font-mono">Another brutalist-inspired post. Raw and captivating!</p> <div class="flex justify-between mt-4 font-mono"> <span>Likes: 50</span> <span>Comments: 15</span> </div> </div> </div> </div>
一个野兽派社交组件,展示大胆的设计与高对比度,具有响应效果,并支持暗黑主题,使用Tailwind CSS。特色用户头像、社交媒体链接和占位符图像.
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md transition-all duration-300"> <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">Connect With Us</h2> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> <div class="bg-gray-200 dark:bg-gray-700 p-4 rounded-lg text-center"> <img src="https://picsum.photos/200/200?random=1" alt="Profile 1" class="rounded-full mb-2 mx-auto" /> <p class="text-lg font-semibold">John Doe</p> <a href="#" class="text-blue-500 dark:text-blue-300 hover:underline">@john_doe</a> </div> <div class="bg-gray-200 dark:bg-gray-700 p-4 rounded-lg text-center"> <img src="https://picsum.photos/200/200?random=2" alt="Profile 2" class="rounded-full mb-2 mx-auto" /> <p class="text-lg font-semibold">Jane Smith</p> <a href="#" class="text-blue-500 dark:text-blue-300 hover:underline">@jane_smith</a> </div> <div class="bg-gray-200 dark:bg-gray-700 p-4 rounded-lg text-center"> <img src="https://picsum.photos/200/200?random=3" alt="Profile 3" class="rounded-full mb-2 mx-auto" /> <p class="text-lg font-semibold">Alice Johnson</p> <a href="#" class="text-blue-500 dark:text-blue-300 hover:underline">@alice_j</a> </div> <div class="bg-gray-200 dark:bg-gray-700 p-4 rounded-lg text-center"> <img src="https://picsum.photos/200/200?random=4" alt="Profile 4" class="rounded-full mb-2 mx-auto" /> <p class="text-lg font-semibold">Bob Brown</p> <a href="#" class="text-blue-500 dark:text-blue-300 hover:underline">@bob_brown</a> </div> </div> <div class="mt-6"> <h3 class="text-xl font-bold text-gray-900 dark:text-white">Follow Us</h3> <div class="flex space-x-4 mt-2"> <a href="#" class="text-gray-600 dark:text-gray-400">Facebook</a> <a href="#" class="text-gray-600 dark:text-gray-400">Twitter</a> <a href="#" class="text-gray-600 dark:text-gray-400">Instagram</a> <a href="#" class="text-gray-600 dark:text-gray-400">LinkedIn</a> </div> </div> </div>
具有拟物化设计、响应式效果和深色主题支持的社交媒体组件。
<div class="skeuosocial-component bg-gray-200 dark:bg-gray-800 rounded-xl shadow-xl p-6 max-w-sm mx-auto"> <div class="flex items-center mb-4"> <img class="w-12 h-12 rounded-full border-2 border-gray-300 dark:border-gray-700 shadow-md" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar"> <div class="ml-4"> <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">John Doe</h2> <p class="text-sm text-gray-600 dark:text-gray-400">Web Developer</p> </div> </div> <p class="text-gray-700 dark:text-gray-300 mb-4"> This is a skeuomophic social media component design using Tailwind CSS. </p> <img class="rounded-lg shadow-md mb-4" src="https://picsum.photos/400/250" alt="Post Image"> <div class="flex justify-between items-center text-gray-600 dark:text-gray-400"> <div class="flex items-center"> <svg class="w-5 h-5 mr-1" fill="currentColor" viewBox="0 0 20 20"><path d="M10 12.586l4.95-4.95a1 1 0 111.414 1.414L10 15.414l-6.364-6.364a1 1 0 111.414-1.414L10 12.586z"></path></svg> <span>120 Likes</span> </div> <div class="flex items-center"> <svg class="w-5 h-5 mr-1" fill="currentColor" viewBox="0 0 20 20"><path d="M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3 1h10v8H5V6zm1 1v6h8V7H6z"></path></svg> <span>Opens</span> </div> <div class="flex items-center"> <svg class="w-5 h-5 mr-1" fill="currentColor" viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16zm0 3a1 1 0 011 1v5a1 1 0 01-2 0V6a1 1 0 011-1zm0 10a1 1 0 100-2 1 1 0 000 2z"></path></svg> <span>Share</span> </div> </div> </div>
一个采用拟物化风格设计的社交组件部分,具有响应效果和支持深色主题。
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg max-w-md mx-auto flex flex-col items-center"> <h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Connect with Us</h2> <div class="flex flex-row space-x-4"> <div class="bg-gray-200 dark:bg-gray-700 rounded-lg p-4 shadow hover:shadow-lg transition-shadow duration-300"> <img src="https://picsum.photos/100/100?random=1" alt="Facebook" class="rounded-full mb-2"> <h3 class="font-bold text-gray-700 dark:text-gray-200">Facebook</h3> <p class="text-gray-600 dark:text-gray-400">Follow us on Facebook.</p> </div> <div class="bg-gray-200 dark:bg-gray-700 rounded-lg p-4 shadow hover:shadow-lg transition-shadow duration-300"> <img src="https://picsum.photos/100/100?random=2" alt="Twitter" class="rounded-full mb-2"> <h3 class="font-bold text-gray-700 dark:text-gray-200">Twitter</h3> <p class="text-gray-600 dark:text-gray-400">Follow us on Twitter.</p> </div> <div class="bg-gray-200 dark:bg-gray-700 rounded-lg p-4 shadow hover:shadow-lg transition-shadow duration-300"> <img src="https://picsum.photos/100/100?random=3" alt="Instagram" class="rounded-full mb-2"> <h3 class="font-bold text-gray-700 dark:text-gray-200">Instagram</h3> <p class="text-gray-600 dark:text-gray-400">Follow us on Instagram.</p> </div> </div> <div class="mt-6 flex flex-col items-center"> <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="rounded-full w-16 h-16 mb-2"> <h4 class="font-semibold text-gray-800 dark:text-white">John Doe</h4> <p class="text-gray-600 dark:text-gray-400">@johndoe</p> </div> </div>
一个网络组件,具有玻璃形态设计,带有磨砂玻璃般的半透明元素和模糊效果,响应式效果,以及黑暗主题支持。
<div class="flex justify-center items-center min-h-screen bg-gray-100 dark:bg-gray-900 transition-colors duration-500"> <div class="bg-white dark:bg-gray-800 bg-opacity-60 dark:bg-opacity-80 backdrop-blur-md rounded-lg shadow-lg p-6 max-w-lg w-full"> <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4 text-center">Connect with Us</h2> <div class="flex items-center justify-around flex-wrap mb-4"> <div class="flex flex-col items-center"> <img src="https://picsum.photos/80/80?random=1" alt="User Avatar" class="rounded-full mb-2"> <p class="text-gray-800 dark:text-white">User 1</p> <a href="#" class="text-blue-500 hover:underline">Follow</a> </div> <div class="flex flex-col items-center"> <img src="https://picsum.photos/80/80?random=2" alt="User Avatar" class="rounded-full mb-2"> <p class="text-gray-800 dark:text-white">User 2</p> <a href="#" class="text-blue-500 hover:underline">Follow</a> </div> <div class="flex flex-col items-center"> <img src="https://picsum.photos/80/80?random=3" alt="User Avatar" class="rounded-full mb-2"> <p class="text-gray-800 dark:text-white">User 3</p> <a href="#" class="text-blue-500 hover:underline">Follow</a> </div> </div> <div class="text-center"> <button class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 transition duration-300">View More</button> </div> </div> </div>