구성 요소 제품 리뷰 제품 리뷰 구성 요소

제품 리뷰 구성 요소

Tailwind CSS로 구축된 반응형 제품 리뷰 구성 요소로, 호버링에 대한 마이크로 인터랙션, 어두운 테마 지원 및 자리 표시자 이미지를 제공합니다. JavaScript는 사용되지 않습니다.

미리 보기

HTML 코드

<div class="container mx-auto p-4 sm:p-6 lg:p-8 bg-gray-50 dark:bg-gray-900 min-h-screen font-sans">
    <h2 class="text-2xl sm:text-3xl font-bold text-center mb-8 text-gray-900 dark:text-white">Customer Reviews</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">

        <!-- Review Card -->
        <div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-md transition-all duration-300 ease-in-out hover:shadow-lg hover:-translate-y-1">
            <div class="flex items-start mb-4">
                <img class="w-12 h-12 rounded-full object-cover mr-4" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
                <div class="flex-grow">
                    <p class="font-semibold text-gray-900 dark:text-white">John Doe</p>
                    <div class="flex items-center text-yellow-500 dark:text-yellow-400">
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                    </div>
                </div>
                <span class="text-sm text-gray-500 dark:text-gray-400 ml-4 flex-shrink-0">July 15, 2023</span>
            </div>
            <p class="text-gray-700 dark:text-gray-300 leading-relaxed">Absolutely love this product! It exceeded my expectations in every way. The build quality is superb, and it performs flawlessly. Highly recommended!</p>
        </div>

        <!-- Review Card with Product Image -->
        <div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-md transition-all duration-300 ease-in-out hover:shadow-lg hover:-translate-y-1">
             <img class="w-full h-32 object-cover rounded-md mb-6" src="https://picsum.photos/seed/product1/400/300" alt="Product Image">
            <div class="flex items-start mb-4">
                <img class="w-12 h-12 rounded-full object-cover mr-4" src="https://randomuser.me/api/portraits/women/45.jpg" alt="Avatar">
                <div class="flex-grow">
                    <p class="font-semibold text-gray-900 dark:text-white">Jane Smith</p>
                    <div class="flex items-center text-yellow-500 dark:text-yellow-400">
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                    </div>
                </div>
                <span class="text-sm text-gray-500 dark:text-gray-400 ml-4 flex-shrink-0">July 10, 2023</span>
            </div>
            <p class="text-gray-700 dark:text-gray-300 leading-relaxed">Solid product, works as advertised. The setup was easy, and the features are intuitive. Deducted one star because the documentation could be clearer on advanced settings.</p>
        </div>

        <!-- Review Card -->
        <div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-md transition-all duration-300 ease-in-out hover:shadow-lg hover:-translate-y-1">
            <div class="flex items-start mb-4">
                <img class="w-12 h-12 rounded-full object-cover mr-4" src="https://randomuser.me/api/portraits/men/78.jpg" alt="Avatar">
                <div class="flex-grow">
                    <p class="font-semibold text-gray-900 dark:text-white">Robert Johnson</p>
                    <div class="flex items-center text-yellow-500 dark:text-yellow-400">
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                    </div>
                </div>
                <span class="text-sm text-gray-500 dark:text-gray-400 ml-4 flex-shrink-0">July 1, 2023</span>
            </div>
            <p class="text-gray-700 dark:text-gray-300 leading-relaxed">Outstanding performance! This is exactly what I was looking for. Setup was a breeze, and it's been working perfectly since day one. Five stars!</p>
        </div>

        <!-- Review Card with Product Image -->
        <div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-md transition-all duration-300 ease-in-out hover:shadow-lg hover:-translate-y-1">
            <img class="w-full h-32 object-cover rounded-md mb-6" src="https://picsum.photos/seed/product2/400/300" alt="Product Image">
            <div class="flex items-start mb-4">
                <img class="w-12 h-12 rounded-full object-cover mr-4" src="https://randomuser.me/api/portraits/women/91.jpg" alt="Avatar">
                <div class="flex-grow">
                    <p class="font-semibold text-gray-900 dark:text-white">Emily Davis</p>
                     <div class="flex items-center text-yellow-500 dark:text-yellow-400">
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                         <svg class="w-5 h-5 fill-current" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279L12 18.68z"/></svg>
                     </div>
                </div>
                 <span class="text-sm text-gray-500 dark:text-gray-400 ml-4 flex-shrink-0">June 28, 2023</span>
            </div>
            <p class="text-gray-700 dark:text-gray-300 leading-relaxed">It's okay, does the job. Had some minor issues during installation, and the user interface is not as intuitive as I hoped. Decent for the price point, though.</p>
        </div>

    </div>
</div>

관련 구성 요소

제품 리뷰 구성 요소 (Skeuomorphic Pastel)

복잡하고 반응이 빠른 Product Reviews 구성 요소는 파스텔 색상을 사용하고 다크 모드를 지원하는 스큐어모픽 디자인 미학으로 스타일링되었습니다. 겹쳐진 카드, 미묘한 그라디언트, 그림자가 있어 깊이를 더해줍니다. 아바타, 이름, 별점, 리뷰 텍스트 및 선택적 이미지가 포함됩니다. JavaScript 없이 Tailwind CSS를 단독으로 사용합니다.

열다

제품 리뷰 구성 요소

제품에 대한 사용자 리뷰를 표시하는 웹 구성 요소로, Tailwind CSS를 사용하여 마이크로 인터랙션 및 어두운 테마를 지원합니다.

열다

제품 리뷰 구성 요소

비즈니스 웹 사이트를 위해 설계된 마이크로 인터랙션이 있는 복잡하고 매력적인 제품 리뷰 구성 요소입니다. 이 구성 요소는 Tailwind CSS를 사용하는 어두운 테마의 반응형 디자인을 특징으로 하며, 애니메이션과 유사한 색상을 기반으로 한 색 구성표를 통합합니다.

열다