Catalogo design-system sections/stats-sections

← catalogo / sections/stats-sections

Sections · Stats sections · Simple grid

TW-SE-SS-02 Tailwind Plus

tailwind/marketing/sections/stats-sections/03-simple-grid

Anteprima disegnata disponibile solo per la versione html: questa e' vue, sotto c'e' il sorgente.

Sorgente (vue)

<template>
  <div class="bg-white py-24 sm:py-32 dark:bg-gray-900">
    <div class="mx-auto max-w-7xl px-6 lg:px-8">
      <div class="mx-auto max-w-2xl lg:max-w-none">
        <div class="text-center">
          <h2 class="text-4xl font-semibold tracking-tight text-balance text-gray-900 sm:text-5xl dark:text-white">Trusted by creators worldwide</h2>
          <p class="mt-4 text-lg/8 text-gray-600 dark:text-gray-300">Lorem ipsum dolor sit amet consect adipisicing possimus.</p>
        </div>
        <dl class="mt-16 grid grid-cols-1 gap-0.5 overflow-hidden rounded-2xl text-center sm:grid-cols-2 lg:grid-cols-4">
          <div v-for="stat in stats" :key="stat.id" class="flex flex-col bg-gray-400/5 p-8 dark:bg-white/5">
            <dt class="text-sm/6 font-semibold text-gray-600 dark:text-gray-300">{{ stat.name }}</dt>
            <dd class="order-first text-3xl font-semibold tracking-tight text-gray-900 dark:text-white">{{ stat.value }}</dd>
          </div>
        </dl>
      </div>
    </div>
  </div>
</template>

<script setup>
const stats = [
  { id: 1, name: 'Creators on the platform', value: '8,000+' },
  { id: 2, name: 'Flat platform fee', value: '3%' },
  { id: 3, name: 'Uptime guarantee', value: '99.9%' },
  { id: 4, name: 'Paid out to creators', value: '$70M' },
]
</script>