3D_Vibrant_Simple_Social_Carousel
소셜 미디어 인터페이스를 위한 간단하고 생생하며 반응이 빠른 3D 스타일의 캐러셀 슬라이더 구성 요소로, 다크 모드를 지원합니다.
HTML 코드
<div class="relative w-full max-w-4xl mx-auto py-8 px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-purple-100 to-pink-100 dark:from-gray-900 dark:to-teal-950 rounded-lg shadow-xl overflow-hidden">
<h2 class="text-3xl sm:text-4xl font-extrabold text-center text-purple-800 dark:text-purple-300 mb-8 drop-shadow-md">What's Happening?</h2>
<!-- Carousel Container (simplified for static HTML, typically JS driven) -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 transform perspective-1000">
<!-- Card 1 -->
<div class="col-span-1 transform rotateY-10 scale-95 md:hover:rotateY-0 md:hover:scale-100 transition-all duration-500 ease-in-out bg-white dark:bg-gray-800 rounded-xl shadow-2xl p-6 border-b-4 border-l-2 border-purple-500 dark:border-purple-700 flex flex-col justify-between overflow-hidden relative cursor-pointer group">
<div class="absolute inset-0 bg-gradient-to-br from-purple-400/20 to-pink-400/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-0"></div>
<div class="flex items-center mb-4 z-10">
<img class="w-12 h-12 rounded-full ring-2 ring-purple-400 dark:ring-purple-600 mr-4" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar">
<div>
<p class="font-semibold text-lg text-purple-700 dark:text-purple-300">Alice Johnson</p>
<p class="text-sm text-gray-500 dark:text-gray-400">@alice_j</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-200 mb-4 z-10">"Just launched my new project! Super excited for feedback. 🎉 Check it out!"</p>
<img class="w-full h-40 object-cover rounded-md mb-4 shadow-md z-10" src="https://picsum.photos/id/1025/400/250" alt="Post Image">
<div class="flex justify-between items-center text-gray-500 dark:text-gray-400 text-sm z-10">
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-pink-500 dark:text-pink-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg> 12K Likes</span>
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-teal-500 dark:text-teal-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10c0 3.866-3.582 7-8 7a8.88 8.88 0 01-4-1l-3 1 1-3a8.88 8.88 0 01-1-4c0-3.866 3.582-7 8-7s8 3.134 8 7zM9 9a1 1 0 000 2h2a1 1 0 100-2H9z" clip-rule="evenodd"></path></svg> 345 Comments</span>
</div>
</div>
<!-- Card 2 (Center) -->
<div class="col-span-1 transform scale-105 md:hover:scale-110 md:hover:rotateY-0 transition-all duration-500 ease-in-out z-20 bg-white dark:bg-gray-800 rounded-xl shadow-2xl p-6 border-b-4 border-l-2 border-teal-500 dark:border-teal-700 flex flex-col justify-between overflow-hidden relative cursor-pointer group">
<div class="absolute inset-0 bg-gradient-to-br from-teal-400/20 to-purple-400/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-0"></div>
<div class="flex items-center mb-4 z-10">
<img class="w-12 h-12 rounded-full ring-2 ring-teal-400 dark:ring-teal-600 mr-4" src="https://randomuser.me/api/portraits/men/33.jpg" alt="User Avatar">
<div>
<p class="font-semibold text-lg text-teal-700 dark:text-teal-300">Mark Davis</p>
<p class="text-sm text-gray-500 dark:text-gray-400">@mark_d</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-200 mb-4 z-10">"Amazing sunset view from my balcony tonight! Truly breathtaking. #NatureLover"</p>
<img class="w-full h-40 object-cover rounded-md mb-4 shadow-md z-10" src="https://picsum.photos/id/1016/400/250" alt="Post Image">
<div class="flex justify-between items-center text-gray-500 dark:text-gray-400 text-sm z-10">
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-pink-500 dark:text-pink-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg> 2.5K Likes</span>
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-teal-500 dark:text-teal-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10c0 3.866-3.582 7-8 7a8.88 8.88 0 01-4-1l-3 1 1-3a8.88 8.88 0 01-1-4c0-3.866 3.582-7 8-7s8 3.134 8 7zM9 9a1 1 0 000 2h2a1 1 0 100-2H9z" clip-rule="evenodd"></path></svg> 88 Comments</span>
</div>
</div>
<!-- Card 3 -->
<div class="col-span-1 transform -rotateY-10 scale-95 md:hover:rotateY-0 md:hover:scale-100 transition-all duration-500 ease-in-out bg-white dark:bg-gray-800 rounded-xl shadow-2xl p-6 border-b-4 border-l-2 border-pink-500 dark:border-pink-700 flex flex-col justify-between overflow-hidden relative cursor-pointer group">
<div class="absolute inset-0 bg-gradient-to-br from-pink-400/20 to-teal-400/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-0"></div>
<div class="flex items-center mb-4 z-10">
<img class="w-12 h-12 rounded-full ring-2 ring-pink-400 dark:ring-pink-600 mr-4" src="https://randomuser.me/api/portraits/women/12.jpg" alt="User Avatar">
<div>
<p class="font-semibold text-lg text-pink-700 dark:text-pink-300">Sophia Lee</p>
<p class="text-sm text-gray-500 dark:text-gray-400">@sophia_l</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-200 mb-4 z-10">"Enjoying a perfect cup of coffee with a good book. Simple pleasures! ☕📚"</p>
<img class="w-full h-40 object-cover rounded-md mb-4 shadow-md z-10" src="https://picsum.photos/id/1084/400/250" alt="Post Image">
<div class="flex justify-between items-center text-gray-500 dark:text-gray-400 text-sm z-10">
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-pink-500 dark:text-pink-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path></svg> 987 Likes</span>
<span class="flex items-center"><svg class="w-4 h-4 mr-1 text-teal-500 dark:text-teal-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10c0 3.866-3.582 7-8 7a8.88 8.88 0 01-4-1l-3 1 1-3a8.88 8.88 0 01-1-4c0-3.866 3.582-7 8-7s8 3.134 8 7zM9 9a1 1 0 000 2h2a1 1 0 100-2H9z" clip-rule="evenodd"></path></svg> 210 Comments</span>
</div>
</div>
</div>
<!-- Navigation (can be added with JS for actual carousel functionality) -->
<div class="absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2">
<div class="w-3 h-3 rounded-full bg-purple-500 dark:bg-purple-400 shadow-md"></div>
<div class="w-3 h-3 rounded-full bg-pink-400 dark:bg-pink-500 opacity-60"></div>
<div class="w-3 h-3 rounded-full bg-teal-400 dark:bg-teal-500 opacity-60"></div>
</div>
<!-- Subtle 3D background elements -->
<div class="absolute top-0 left-0 w-32 h-32 bg-purple-400/20 dark:bg-purple-600/30 rounded-full blur-xl -translate-x-1/4 -translate-y-1/4"></div>
<div class="absolute bottom-0 right-0 w-48 h-48 bg-pink-400/20 dark:bg-pink-600/30 rounded-full blur-xl translate-x-1/4 translate-y-1/4"></div>
</div>
관련 구성 요소
Carousel Slider 구성 요소
Tailwind CSS를 사용하여 "포트폴리오 - 작업 또는 제품 전시"를 위해 "보색 - 색상환에서 서로 반대편에 있는 색상" 및 복잡성 수준 "복잡함 - 여러 대화형 요소가 있는 풍부한 인터페이스"를 사용하여 디자인 스타일 "Neumorphism - 미묘한 그림자를 사용하여 배경에서 돌출되는 것처럼 보이는 요소를 만드는 소프트 UI 스타일"로 웹 구성 요소 Carousel Slider Component를 구현합니다. 어두운 테마를 지원하는 반응형 디자인을 만들 수 있습니다. JavaScript 코드가 필요하지 않으며 Tailwind 클래스가 있는 HTML만 필요합니다. 다크 모드의 경우 스타일링을 위해 Tailwind의 dark: 접두사를 사용합니다. 이미지가 필요한 경우 이미지에는 picsum.photos를 사용하고 아바타에는 randomuser.me 를 사용합니다.
Carousel Slider 구성 요소
스포츠/피트니스 애플리케이션용으로 설계된 간단하고 반응이 빠른 캐러셀 슬라이더 구성 요소로, 어두운 모드 UI, 흑백 색 구성표, 밝은 강조 색상을 갖추고 있습니다.