구성 요소 장바구니에 추가 버튼 스큐어모픽 장바구니에 담기 버튼

스큐어모픽 장바구니에 담기 버튼

포트폴리오 웹 사이트를 위한 생생한 색상의 스큐어모픽 장바구니에 추가 버튼으로, 인터랙티브 요소가 있는 복잡한 디자인과 Tailwind CSS를 사용한 반응형 다크 모드 지원이 특징입니다.

미리 보기

HTML 코드

<button class="relative flex items-center justify-center p-4 overflow-hidden text-lg font-bold text-white transition-all duration-300 ease-in-out bg-gradient-to-br from-purple-600 to-blue-500 rounded-2xl shadow-2xl group focus:outline-none focus:ring-4 focus:ring-purple-800 transform hover:scale-105 active:scale-95 dark:from-gray-800 dark:to-gray-900 dark:shadow-none dark:hover:from-gray-700 dark:hover:to-gray-800">
    <span class="relative z-10 flex items-center justify-center w-full h-full p-2 space-x-3 transition-all duration-300 ease-in-out bg-gradient-to-br from-purple-800 to-blue-600 rounded-xl shadow-inner-xl group-hover:from-purple-700 group-hover:to-blue-500 dark:from-gray-700 dark:to-gray-800 dark:group-hover:from-gray-600 dark:group-hover:to-gray-700">

        <!-- Texture Overlay -->
        <div class="absolute inset-0 z-0 bg-repeat opacity-20 dark:opacity-10" style="background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');"></div>

        <!-- Main Button Content -->
        <div class="relative z-10 flex items-center space-x-3">
            <svg class="w-8 h-8 text-white transform -rotate-12 group-hover:rotate-0 transition-transform duration-300 ease-in-out" 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="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0-10a2 2 0 110 4 2 2 0 010-4zm-8 4a2 2 0 110 4 2 2 0 010-4z"></path>
            </svg>
            <span class="text-white text-shadow-md">Add to Cart</span>
        </div>

        <!-- Dynamic Light Reflection -->
        <div class="absolute top-0 left-0 w-full h-full overflow-hidden rounded-xl">
            <div class="absolute w-1/2 h-full bg-white opacity-20 transform -skew-x-12 -translate-x-full group-hover:translate-x-full transition-transform duration-500 ease-in-out"></div>
        </div>

        <!-- Inner Shadow for Depth -->
        <div class="absolute inset-0 rounded-xl shadow-inner-2xl dark:shadow-inner-2xl-dark"></div>

    </span>

    <!-- Outer Bevel/Emboss Effect -->
    <div class="absolute inset-0 border-4 border-white border-opacity-10 rounded-2xl dark:border-opacity-5"></div>

</button>

<style>
    /* Custom shadow for Skeuomorphism */
    .shadow-inner-xl {
        box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 -5px 10px rgba(255, 255, 255, 0.1);
    }

    .shadow-inner-2xl {
        box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 -8px 15px rgba(255, 255, 255, 0.15);
    }

    .shadow-inner-2xl-dark {
        box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 -8px 15px rgba(255, 255, 255, 0.05);
    }

    .text-shadow-md {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
</style>

관련 구성 요소

Organic_Nature_Add_To_Cart_Button

유기적/자연에서 영감을 받은 'Add to Cart' 버튼 구성 요소는 보색 구성표가 있어 교육용 플랫폼에 적합합니다. 흐르는 선, 미묘한 상호 작용 요소, 완전한 응답성 및 다크 모드 지원이 특징입니다.

열다

장바구니에 추가 버튼 구성 요소 - 멤피스 그레이스케일 날씨

Memphis 디자인에서 영감을 받아 회색조 색 구성표를 사용하는 복잡한 '장바구니에 담기' 버튼 구성 요소로, 날씨/기후 제품에 맞게 조정됩니다. 기능에는 동적 아이콘, 로딩 상태, 펄스 애니메이션 및 항목 수가 포함되며 모두 반응형이며 다크 모드를 지원합니다. 이 구성 요소는 날씨 데이터 구독 또는 기후 관련 제품에 대한 재미있으면서도 기능적인 클릭 유도문안으로 설계되었습니다.

열다

Add to Cart Button 컴포넌트

반응형 '장바구니에 담기' 버튼 구성 요소로, 트라이어딕 색상, 마이크로 인터랙션 포커스, 전자 상거래 애플리케이션을 위한 다크 모드 지원이 있습니다.

열다