All-Access · 22 templates$1270.97$99/year — save 92%Get access
  • HomeHome
  • TemplatesTemplates23
  • ComponentsComponents78
  • PricingPricing
  • Need a Website?Need a Website?New
Unlock All AccessUnlock All Access

Our latest template collection

Ready-to-launch sites for real estate agents, service businesses, and local brands — built to rank, load fast, and convert.

Explore All TemplatesExplore All Templates

Orvaine - Luxury Equestrian & Horse Breeding Website Template

Orvaine is a premium website template for stud farms, sport horse breeders and equestrian estates: horse pages with pedigrees, events, films. Next.js, Astro, Sanity.

Download Template
Orvaine - Luxury Equestrian & Horse Breeding Website Template

Maressa - Luxury Yacht Charter & Sales Website Template

Maressa is a premium website template for yacht charter, brokerage and superyacht brands: 21 editable sections, full-screen films, Next.js and Astro versions. Sanity.

Download Template
Maressa - Luxury Yacht Charter & Sales Website Template

Krishi – Agriculture & Farm Website Template

Krishi is a premium website template for farms, agritech and food brands: 17 editable sections, cinematic GSAP motion and both Next.js and Astro versions. Built with Sanity.

Download Template
Krishi – Agriculture & Farm Website Template
ComponentsFeature

Inverting Stat Cards

View code
Full screen

Four rounded stat cards on a light grey band that turn black on hover. React and Tailwind CSS, no dependencies.

InvertingStatCards.tsx
// Four stat cards on a light grey band that turn black on hover.
// Pure Tailwind, no dependencies. Works with Tailwind v3 and v4.

type Stat = { value: string; label: string };

type Props = {
  heading?: string;
  stats?: Stat[];
};

const DEFAULT_STATS: Stat[] = [
  { value: "12", label: "Courts, indoor and outdoor" },
  { value: "650+", label: "Members of every level" },
  { value: "18", label: "Certified coaches" },
  { value: "40", label: "Years of club history" },
];

export default function InvertStatCards({ heading = "A club built around the game", stats = DEFAULT_STATS }: Props) {
  return (
    <section className="bg-[#f3f3f3] px-4 py-20 font-['Inter',ui-sans-serif,system-ui,sans-serif] text-black antialiased md:px-8 md:py-36 lg:px-12">
      <div className="mx-auto max-w-7xl">
        <h2 className="mb-10 max-w-2xl text-4xl font-medium md:mb-14 md:text-6xl">{heading}</h2>
        <div className="grid grid-cols-2 gap-3 md:gap-5 lg:grid-cols-4">
          {stats.map((stat) => (
            <div key={stat.label} className="group flex min-h-44 flex-col justify-between rounded-2xl bg-white p-6 transition-colors duration-500 hover:bg-black hover:text-white md:min-h-60 md:p-8">
              <span className="text-5xl tabular-nums md:text-7xl">{stat.value}</span>
              <p className="mt-6 text-sm text-[#404040] transition-colors duration-500 group-hover:text-white/70 md:text-base">{stat.label}</p>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}

How to use it

  1. Make sure your Next.js or React project has Tailwind CSS set up (v3 or v4 both work).
  2. Create components/InvertingStatCards.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.
Spoty - Tennis Club & Sports Academy Template

From the full template

Spoty$79

Every page, Sanity CMS and SEO already set up. This section is one of 3 you can try free.

Get the full template Get the full template Live preview Live preview
Share
Category
Features
Template
Spoty
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Oct 29, 2026

More from Spoty

See the full template
Curved 3D Carousel
Carousel

Curved 3D Carousel

Gallery with Next Preview
Gallery

Gallery with Next Preview

More features

View all
Alternating Feature Rows
Feature

Alternating Feature Rows

Awards Checkerboard
Feature

Awards Checkerboard

Class Timetable
Feature

Class Timetable

Ready for a faster site that's easier to edit?

Book a free 30-minute call. We'll review your current site and send a fixed-price plan. No pressure, no pitch.

Book Free Call Book Free Call No commitment required

Fast Next.js + Sanity websites, built for you or ready to launch with our templates.

Book a Free Call Book a Free Call
Services
  • Web Design
  • UI/UX Design
  • Framer Dev
  • Webflow Dev
  • Custom Dev
  • Sanity CMS
Resources
  • Templates
  • Pricing
  • License
  • Components
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk