← catalogo / components/product-overviews
TW-CO-PO-03
Tailwind Plus
tailwind/ecommerce/components/product-overviews/03-split-with-image-and-featured-details
<div class="bg-white">
<div class="mx-auto max-w-2xl px-4 py-16 sm:px-6 sm:py-24 lg:grid lg:max-w-7xl lg:grid-cols-2 lg:gap-x-8 lg:px-8">
<!-- Product details -->
<div class="lg:max-w-lg lg:self-end">
<nav aria-label="Breadcrumb">
<ol role="list" class="flex items-center space-x-2">
<li>
<div class="flex items-center text-sm">
<a href="#" class="font-medium text-gray-500 hover:text-gray-900">Travel</a>
<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="ml-2 size-5 shrink-0 text-gray-300">
<path d="M5.555 17.776l8-16 .894.448-8 16-.894-.448z" />
</svg>
</div>
</li>
<li>
<div class="flex items-center text-sm">
<a href="#" class="font-medium text-gray-500 hover:text-gray-900">Bags</a>
</div>
</li>
</ol>
</nav>
<div class="mt-4">
<h1 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">Everyday Ruck Snack</h1>
</div>
<section aria-labelledby="information-heading" class="mt-4">
<h2 id="information-heading" class="sr-only">Product information</h2>
<div class="flex items-center">
<p class="text-lg text-gray-900 sm:text-xl">$220</p>
<div class="ml-4 border-l border-gray-300 pl-4">
<h2 class="sr-only">Reviews</h2>
<div class="flex items-center">
<div>
<div class="flex items-center">
<!-- Active: "text-yellow-400", Default: "text-gray-300" -->
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-yellow-400">
<path d="M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-yellow-400">
<path d="M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-yellow-400">
<path d="M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-yellow-400">
<path d="M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-gray-300">
<path d="M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
</div>
<p class="sr-only">4 out of 5 stars</p>
</div>
<p class="ml-2 text-sm text-gray-500">1624 reviews</p>
</div>
</div>
</div>
<div class="mt-4 space-y-6">
<p class="text-base text-gray-500">Don't compromise on snack-carrying capacity with this lightweight and spacious bag. The drawstring top keeps all your favorite chips, crisps, fries, biscuits, crackers, and cookies secure.</p>
</div>
<div class="mt-6 flex items-center">
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-green-500">
<path d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
<p class="ml-2 text-sm text-gray-500">In stock and ready to ship</p>
</div>
</section>
</div>
<!-- Product image -->
<div class="mt-10 lg:col-start-2 lg:row-span-2 lg:mt-0 lg:self-center">
<img src="https://tailwindcss.com/plus-assets/img/ecommerce-images/product-page-04-featured-product-shot.jpg" alt="Model wearing light green backpack with black canvas straps and front zipper pouch." class="aspect-square w-full rounded-lg object-cover" />
</div>
<!-- Product form -->
<div class="mt-10 lg:col-start-1 lg:row-start-2 lg:max-w-lg lg:self-start">
<section aria-labelledby="options-heading">
<h2 id="options-heading" class="sr-only">Product options</h2>
<form>
<div class="sm:flex sm:justify-between">
<!-- Size selector -->
<fieldset>
<legend class="block text-sm font-medium text-gray-700">Size</legend>
<div class="mt-1 grid grid-cols-1 gap-4 sm:grid-cols-2">
<label aria-label="18L" aria-description="Perfect for a reasonable amount of snacks." class="group relative flex rounded-lg border border-gray-300 bg-white p-4 has-checked:outline-2 has-checked:-outline-offset-2 has-checked:outline-indigo-600 has-focus-visible:outline-3 has-focus-visible:-outline-offset-1 has-disabled:border-gray-400 has-disabled:bg-gray-200 has-disabled:opacity-25">
<input type="radio" name="size" value="18L" checked class="absolute inset-0 appearance-none focus:outline-none" />
<div class="flex-1">
<span class="block text-base font-medium text-gray-900">18L</span>
<span class="mt-1 block text-sm text-gray-500">Perfect for a reasonable amount of snacks.</span>
</div>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="invisible size-5 text-indigo-600 group-has-checked:visible">
<path d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
</label>
<label aria-label="20L" aria-description="Enough room for a large amount of snacks." class="group relative flex rounded-lg border border-gray-300 bg-white p-4 has-checked:outline-2 has-checked:-outline-offset-2 has-checked:outline-indigo-600 has-focus-visible:outline-3 has-focus-visible:-outline-offset-1 has-disabled:border-gray-400 has-disabled:bg-gray-200 has-disabled:opacity-25">
<input type="radio" name="size" value="20L" class="absolute inset-0 appearance-none focus:outline-none" />
<div class="flex-1">
<span class="block text-base font-medium text-gray-900">20L</span>
<span class="mt-1 block text-sm text-gray-500">Enough room for a large amount of snacks.</span>
</div>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="invisible size-5 text-indigo-600 group-has-checked:visible">
<path d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
</label>
</div>
</fieldset>
</div>
<div class="mt-4">
<a href="#" class="group inline-flex text-sm text-gray-500 hover:text-gray-700">
<span>What size should I buy?</span>
<svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="ml-2 size-5 shrink-0 text-gray-400 group-hover:text-gray-500">
<path d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0ZM8.94 6.94a.75.75 0 1 1-1.061-1.061 3 3 0 1 1 2.871 5.026v.345a.75.75 0 0 1-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 1 0 8.94 6.94ZM10 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
</a>
</div>
<div class="mt-10">
<button type="submit" class="flex w-full items-center justify-center rounded-md border border-transparent bg-indigo-600 px-8 py-3 text-base font-medium text-white hover:bg-indigo-700 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-50 focus:outline-hidden">Add to bag</button>
</div>
<div class="mt-6 text-center">
<a href="#" class="group inline-flex text-base font-medium">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-slot="icon" aria-hidden="true" class="mr-2 size-6 shrink-0 text-gray-400 group-hover:text-gray-500">
<path d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<span class="text-gray-500 hover:text-gray-700">Lifetime Guarantee</span>
</a>
</div>
</form>
</section>
</div>
</div>
</div>