This repository has been archived on 2024-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
tailwindui/react/components/marketing/sections/stats-sections/simple_grid.jsx

34 lines
1.3 KiB
React
Raw Normal View History

2024-01-24 19:02:44 +08:00
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' },
]
export default function Example() {
return (
<div className="bg-white py-24 sm:py-32">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<div className="mx-auto max-w-2xl lg:max-w-none">
<div className="text-center">
<h2 className="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
Trusted by creators worldwide
</h2>
<p className="mt-4 text-lg leading-8 text-gray-600">
Lorem ipsum dolor sit amet consect adipisicing possimus.
</p>
</div>
<dl className="mt-16 grid grid-cols-1 gap-0.5 overflow-hidden rounded-2xl text-center sm:grid-cols-2 lg:grid-cols-4">
{stats.map((stat) => (
<div key={stat.id} className="flex flex-col bg-gray-400/5 p-8">
<dt className="text-sm font-semibold leading-6 text-gray-600">{stat.name}</dt>
<dd className="order-first text-3xl font-semibold tracking-tight text-gray-900">{stat.value}</dd>
</div>
))}
</dl>
</div>
</div>
</div>
)
}