← catalogo / components/incentives
TW-CO-IN-02
Tailwind Plus
tailwind/ecommerce/components/incentives/02-4-column-with-illustrations
html: questa e' vue, sotto c'e' il sorgente.
<template>
<div class="bg-gray-50">
<div class="mx-auto max-w-2xl px-4 py-24 sm:px-6 sm:py-32 lg:max-w-7xl lg:px-8">
<div class="grid grid-cols-1 gap-y-12 sm:grid-cols-2 sm:gap-x-6 lg:grid-cols-4 lg:gap-x-8">
<div v-for="incentive in incentives" :key="incentive.name">
<img :src="incentive.imageSrc" alt="" class="h-24 w-auto" />
<h3 class="mt-6 text-sm font-medium text-gray-900">{{ incentive.name }}</h3>
<p class="mt-2 text-sm text-gray-500">{{ incentive.description }}</p>
</div>
</div>
</div>
</div>
</template>
<script setup>
const incentives = [
{
name: 'Free Shipping',
description: "It's not actually free we just price it into the products. Someone's paying for it, and it's not us.",
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce/icons/icon-delivery-light.svg',
},
{
name: '24/7 Customer Support',
description: 'Our AI chat widget is powered by a naive series of if/else statements. Guaranteed to irritate.',
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce/icons/icon-chat-light.svg',
},
{
name: 'Fast Shopping Cart',
description: "Look how fast that cart is going. What does this mean for the actual experience? I don't know.",
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce/icons/icon-fast-checkout-light.svg',
},
{
name: 'Gift Cards',
description: "Buy them for your friends, especially if they don't like our store. Free money for us, it's great.",
imageSrc: 'https://tailwindcss.com/plus-assets/img/ecommerce/icons/icon-gift-card-light.svg',
},
]
</script>