This style of tailwind product overview compoent, product images can be shown using image slider and other details and CTA buttons can be kept on the other half.
<style> .nav-for-slider .swiper-slide { height: auto; width: auto; cursor: pointer; } .swiper-wrapper{ height: auto; } .nav-for-slider .swiper-slide img{ border:2px solid transparent; border-radius: 10px; } .nav-for-slider .swiper-slide-thumb-active img{ border-color: rgb(79 70 229 ); } </style> <section class="py-24"> <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> <div class="grid grid-cols-1 lg:grid-cols-2"> <div class="slider-box w-full h-full max-lg:mx-auto mx-0"> <div class="swiper main-slide-carousel swiper-container relative mb-6"> <div class="swiper-wrapper"> <div class="swiper-slide"> <div class="block"> <img src="https://pagedone.io/asset/uploads/1700472379.png" alt="Summer Travel Bag image" class="max-lg:mx-auto rounded-2xl object-cover"> </div> </div> <div class="swiper-slide"> <div class="block"> <img src="https://pagedone.io/asset/uploads/1711622397.png" alt="Summer Travel Bag image" class="max-lg:mx-auto rounded-2xl object-cover"> </div> </div> <div class="swiper-slide"> <div class="block"> <img src="https://pagedone.io/asset/uploads/1711622408.png" alt="Summer Travel Bag image" class="max-lg:mx-auto rounded-2xl object-cover"> </div> </div> <div class="swiper-slide"> <div class="block"> <img src="https://pagedone.io/asset/uploads/1711622419.png" alt="Summer Travel Bag image" class="max-lg:mx-auto rounded-2xl object-cover"> </div> </div> <div class="swiper-slide"> <div class="block"> <img src="https://pagedone.io/asset/uploads/1711622437.png" alt="Summer Travel Bag image" class="max-lg:mx-auto rounded-2xl object-cover"> </div> </div> </div> </div> <div class="nav-for-slider "> <div class="swiper-wrapper"> <div class="swiper-slide thumbs-slide"> <img src="https://pagedone.io/asset/uploads/1700472379.png" alt="Summer Travel Bag image" class="cursor-pointer rounded-xl transition-all duration-500 object-cover"> </div> <div class="swiper-slide thumbs-slide"> <img src="https://pagedone.io/asset/uploads/1700472430.png" alt="Summer Travel Bag image" class="cursor-pointer rounded-xl transition-all duration-500 border hover:border-indigo-600 object-cover"> </div> <div class="swiper-slide thumbs-slide"> <img src="https://pagedone.io/asset/uploads/1700472416.png" alt="Summer Travel Bag image" class="cursor-pointer rounded-xl transition-all duration-500 border hover:border-indigo-600 object-cover"> </div> <div class="swiper-slide thumbs-slide"> <img src="https://pagedone.io/asset/uploads/1700472446.png" alt="Summer Travel Bag image" class="cursor-pointer rounded-xl transition-all duration-500 border hover:border-indigo-600 object-cover"> </div> <div class="swiper-slide thumbs-slide"> <img src="https://pagedone.io/asset/uploads/1700472467.png" alt="Summer Travel Bag image" class="cursor-pointer rounded-xl transition-all duration-500 border hover:border-indigo-600 object-cover"> </div> </div> </div> </div> <div class="flex justify-center items-center"> <div class="pro-detail w-full max-lg:max-w-[608px] lg:pl-8 xl:pl-16 max-lg:mx-auto max-lg:mt-8"> <div class="flex items-center justify-between gap-6 mb-6"> <div class="text"> <h2 class="font-manrope font-bold text-3xl leading-10 text-gray-900 mb-2">Yellow Summer Travel Bag </h2> <p class="font-normal text-base text-gray-500">ABS LUGGAGE</p> </div> <button class="group transition-all duration-500 p-0.5"> <svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle class="fill-indigo-50 transition-all duration-500 group-hover:fill-indigo-100" cx="30" cy="30" r="30" fill="" /> <path class="stroke-indigo-600 transition-all duration-500 group-hover:stroke-indigo-700" d="M21.4709 31.3196L30.0282 39.7501L38.96 30.9506M30.0035 22.0789C32.4787 19.6404 36.5008 19.6404 38.976 22.0789C41.4512 24.5254 41.4512 28.4799 38.9842 30.9265M29.9956 22.0789C27.5205 19.6404 23.4983 19.6404 21.0231 22.0789C18.548 24.5174 18.548 28.4799 21.0231 30.9184M21.0231 30.9184L21.0441 30.939M21.0231 30.9184L21.4628 31.3115" stroke="" stroke-width="1.6" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> <div class="flex flex-col min-[400px]:flex-row min-[400px]:items-center mb-8 gap-y-3"> <div class="flex items-center"> <h5 class="font-manrope font-semibold text-2xl leading-9 text-gray-900 ">$ 199.00 </h5> <span class="ml-3 font-semibold text-lg text-indigo-600">30% off</span> </div> <svg class="mx-5 max-[400px]:hidden" xmlns="http://www.w3.org/2000/svg" width="2" height="36" viewBox="0 0 2 36" fill="none"> <path d="M1 0V36" stroke="#E5E7EB" /> </svg> <button class="flex items-center gap-1 rounded-lg bg-amber-400 py-1.5 px-2.5 w-max"> <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_12657_16865)"> <path d="M8.10326 2.26718C8.47008 1.52393 9.52992 1.52394 9.89674 2.26718L11.4124 5.33818C11.558 5.63332 11.8396 5.83789 12.1653 5.88522L15.5543 6.37768C16.3746 6.49686 16.7021 7.50483 16.1086 8.08337L13.6562 10.4738C13.4205 10.7035 13.313 11.0345 13.3686 11.3589L13.9475 14.7343C14.0877 15.5512 13.2302 16.1742 12.4966 15.7885L9.46534 14.1948C9.17402 14.0417 8.82598 14.0417 8.53466 14.1948L5.5034 15.7885C4.76978 16.1742 3.91235 15.5512 4.05246 14.7343L4.63137 11.3589C4.68701 11.0345 4.57946 10.7035 4.34378 10.4738L1.89144 8.08337C1.29792 7.50483 1.62543 6.49686 2.44565 6.37768L5.8347 5.88522C6.16041 5.83789 6.44197 5.63332 6.58764 5.33818L8.10326 2.26718Z" fill="white" /> <g clip-path="url(#clip1_12657_16865)"> <path d="M8.10326 2.26718C8.47008 1.52393 9.52992 1.52394 9.89674 2.26718L11.4124 5.33818C11.558 5.63332 11.8396 5.83789 12.1653 5.88522L15.5543 6.37768C16.3746 6.49686 16.7021 7.50483 16.1086 8.08337L13.6562 10.4738C13.4205 10.7035 13.313 11.0345 13.3686 11.3589L13.9475 14.7343C14.0877 15.5512 13.2302 16.1742 12.4966 15.7885L9.46534 14.1948C9.17402 14.0417 8.82598 14.0417 8.53466 14.1948L5.5034 15.7885C4.76978 16.1742 3.91235 15.5512 4.05246 14.7343L4.63137 11.3589C4.68701 11.0345 4.57946 10.7035 4.34378 10.4738L1.89144 8.08337C1.29792 7.50483 1.62543 6.49686 2.44565 6.37768L5.8347 5.88522C6.16041 5.83789 6.44197 5.63332 6.58764 5.33818L8.10326 2.26718Z" fill="white" /> </g> </g> <defs> <clipPath id="clip0_12657_16865"> <rect width="18" height="18" fill="white" /> </clipPath> <clipPath id="clip1_12657_16865"> <rect width="18" height="18" fill="white" /> </clipPath> </defs> </svg> <span class="text-base font-medium text-white">4.8</span> </button> </div> <p class="font-medium text-lg text-gray-900 mb-2">Color</p> <div class="grid grid-cols-3 gap-3 mb-6 max-w-sm"> <div class="color-box group"> <div> <img src="https://pagedone.io/asset/uploads/1700472379.png" alt="Summer Travel Bag image" class="min-[400px]:h-[100px] aspect-square border-2 border-gray-100 rounded-xl transition-all duration-500 group-hover:border-indigo-600 object-cover" class="border border-gray-300 rounded-lg"> <p class="font-normal text-sm leading-6 text-gray-400 text-center mt-2 group-hover:text-indigo-600 "> Black</p> </div> </div> <div class="color-box group"> <div> <img src="https://pagedone.io/asset/uploads/1700472517.png" alt="Summer Travel Bag image" class="border-2 border-gray-100 rounded-xl transition-all duration-500 group-hover:border-indigo-600 object-cover" class="border border-gray-300 rounded-lg"> <p class="font-normal text-sm leading-6 text-gray-400 text-center mt-2 group-hover:text-indigo-600 "> Brown</p> </div> </div> <div class="color-box group"> <div> <img src="https://pagedone.io/asset/uploads/1700472529.png" alt="Summer Travel Bag image" class="border-2 border-gray-100 rounded-xl transition-all duration-500 group-hover:border-indigo-600 object-cover" class="border border-gray-300 rounded-lg"> <p class="font-normal text-sm leading-6 text-gray-400 text-center mt-2 group-hover:text-indigo-600 "> Beige</p> </div> </div> </div> <p class="font-medium text-lg text-gray-900 mb-2">Size (KG)</p> <div class="grid grid-cols-2 min-[400px]:grid-cols-4 gap-3 mb-3 min-[400px]:mb-8"> <button class="border border-gray-200 whitespace-nowrap text-gray-900 text-sm leading-6 py-2.5 rounded-full px-5 text-center w-full font-semibold shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300">Full Set</button> <button class="border border-gray-200 whitespace-nowrap text-gray-900 text-sm leading-6 py-2.5 rounded-full px-5 text-center w-full font-semibold shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300"> 10 kg</button> <button class="border border-gray-200 whitespace-nowrap text-gray-900 text-sm leading-6 py-2.5 rounded-full px-5 text-center w-full font-semibold shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300"> 25 kg</button> <button class="border border-gray-200 whitespace-nowrap text-gray-900 text-sm leading-6 py-2.5 rounded-full px-5 text-center w-full font-semibold shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300"> 35 kg</button> </div> <div class="flex items-center flex-col min-[400px]:flex-row gap-3 mb-3 min-[400px]:mb-8"> <div class=" flex items-center justify-center border border-gray-400 rounded-full"> <button class="group py-[14px] px-3 w-full border-r border-gray-400 rounded-l-full h-full flex items-center justify-center bg-white shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300"> <svg class="stroke-black group-hover:stroke-black" width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M16.5 11H5.5" stroke="" stroke-width="1.6" stroke-linecap="round" /> <path d="M16.5 11H5.5" stroke="" stroke-opacity="0.2" stroke-width="1.6" stroke-linecap="round" /> <path d="M16.5 11H5.5" stroke="" stroke-opacity="0.2" stroke-width="1.6" stroke-linecap="round" /> </svg> </button> <input type="text" class="font-semibold text-gray-900 text-lg py-3 px-2 w-full min-[400px]:min-w-[75px] h-full bg-transparent placeholder:text-gray-900 text-center hover:text-indigo-600 outline-0 hover:placeholder:text-indigo-600" placeholder="1"> <button class="group py-[14px] px-3 w-full border-l border-gray-400 rounded-r-full h-full flex items-center justify-center bg-white shadow-sm shadow-transparent transition-all duration-300 hover:bg-gray-50 hover:shadow-gray-300"> <svg class="stroke-black group-hover:stroke-black" width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M11 5.5V16.5M16.5 11H5.5" stroke="#9CA3AF" stroke-width="1.6" stroke-linecap="round" /> <path d="M11 5.5V16.5M16.5 11H5.5" stroke="black" stroke-opacity="0.2" stroke-width="1.6" stroke-linecap="round" /> <path d="M11 5.5V16.5M16.5 11H5.5" stroke="black" stroke-opacity="0.2" stroke-width="1.6" stroke-linecap="round" /> </svg> </button> </div> <button class="group py-3 px-5 rounded-full bg-indigo-50 text-indigo-600 font-semibold text-lg w-full flex items-center justify-center gap-2 shadow-sm shadow-transparent transition-all duration-500 hover:shadow-indigo-300 hover:bg-indigo-100"> <svg class="stroke-indigo-600 transition-all duration-500 group-hover:stroke-indigo-600" width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.7394 17.875C10.7394 18.6344 10.1062 19.25 9.32511 19.25C8.54402 19.25 7.91083 18.6344 7.91083 17.875M16.3965 17.875C16.3965 18.6344 15.7633 19.25 14.9823 19.25C14.2012 19.25 13.568 18.6344 13.568 17.875M4.1394 5.5L5.46568 12.5908C5.73339 14.0221 5.86724 14.7377 6.37649 15.1605C6.88573 15.5833 7.61377 15.5833 9.06984 15.5833H15.2379C16.6941 15.5833 17.4222 15.5833 17.9314 15.1605C18.4407 14.7376 18.5745 14.0219 18.8421 12.5906L19.3564 9.84059C19.7324 7.82973 19.9203 6.8243 19.3705 6.16215C18.8207 5.5 17.7979 5.5 15.7522 5.5H4.1394ZM4.1394 5.5L3.66797 2.75" stroke="" stroke-width="1.6" stroke-linecap="round" /> </svg> Add to cart</button> </div> <button class="text-center w-full px-5 py-4 rounded-[100px] bg-indigo-600 flex items-center justify-center font-semibold text-lg text-white shadow-sm shadow-transparent transition-all duration-500 hover:bg-indigo-700 hover:shadow-indigo-300"> Buy Now </button> </div> </div> </div> </div> </section> <script> var swiper_thumbs = new Swiper(".nav-for-slider", { loop: true, spaceBetween: 30, slidesPerView: 5, }); var swiper = new Swiper(".main-slide-carousel", { slidesPerView: 1, thumbs: { swiper: swiper_thumbs, }, }); </script>