All-Access · 26 templates$1636.97$99/year — save 93%Get access
  • HomeHome
  • TemplatesTemplates28
  • ComponentsComponents78
  • PricingPricing
  • BlogBlog
  • 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

Fanfare - Festival & Event Website Template

Fanfare is a colourful festival and event website template: poster hero, flip-card lineup, programme with saved sessions, passes, venue. Next.js, Astro, Sanity.

Download Template
Fanfare - Festival & Event Website Template

Plenar - Conference & Event Website Template

Plenar is a premium conference and event website template: countdown hero, speakers, schedule with saved sessions, tickets, venue map. Next.js, Astro, Sanity.

Download Template
Plenar - Conference & Event Website Template

Vardane - Luxury Expedition & Mountaineering Website Template

Vardane is a premium website template for mountaineering and expedition companies: film hero, route map, itineraries, departures. Next.js, Astro, Sanity.

Download Template
Vardane - Luxury Expedition & Mountaineering Website Template
ComponentsFeature

Stacked Timeline

View code
Full screen

Overlapping timeline rows that lift and change colour on hover, each with a year, milestone and number. React and Tailwind CSS.

StackedTimeline.tsx
// Stacked timeline: overlapping rows (year, milestone, number) that lift
// and take a colour on hover. Pure Tailwind, no dependencies. Works with Tailwind v3 and v4.

type Milestone = { year: string; text: string };

type Props = {
  heading?: string;
  milestones?: Milestone[];
};

const DEFAULT_MILESTONES: Milestone[] = [
  { year: "2012", text: "Maison Élara opens on Rue de la Paix with 40 covers." },
  { year: "2014", text: "First Michelin star. The menu turns fully seasonal." },
  { year: "2016", text: "A private dining room opens; farm partners reach 20." },
  { year: "2018", text: "Second star, and Chef Antoine is named Restaurateur of the Year." },
  { year: "2021", text: "Third star. The dining room grows to 80 covers." },
  { year: "2024", text: "Élara at Home launches, with weekend cooking classes." },
];

// Listed in full so Tailwind keeps every class
const HOVER = ["hover:bg-red-300", "hover:bg-blue-300", "hover:bg-green-300", "hover:bg-yellow-300", "hover:bg-purple-300", "hover:bg-pink-300"];

export default function StackedTimeline({ heading = "Twelve years in the making", milestones = DEFAULT_MILESTONES }: Props) {
  return (
    <section className="bg-white px-5 pb-24 font-['Bricolage_Grotesque',ui-sans-serif,system-ui,sans-serif] antialiased md:px-10">
      <div className="mx-auto max-w-7xl">
        <div className="mx-auto max-w-3xl py-24 text-center md:pt-32">
          <h2 className="text-[clamp(40px,6vw,64px)] font-bold leading-[1.05] tracking-tight text-stone-950">{heading}</h2>
        </div>

        <ol className="flex flex-col">
          {milestones.map((m, i) => (
            <li
              key={m.year}
              className={`relative -mt-4 flex items-center justify-between gap-6 border-t-2 border-[#0F4729] bg-white py-8 transition-all duration-300 ease-out first:mt-0 hover:-translate-y-6 md:gap-20 ${HOVER[i % HOVER.length]}`}
            >
              <span className="text-2xl font-bold text-[#0F4729] md:text-3xl">{m.year}</span>
              <p className="w-full text-xl font-bold text-[#0F4729] md:text-3xl">{m.text}</p>
              <span className="text-2xl font-bold text-[#0F4729] md:text-3xl">{i + 1}</span>
            </li>
          ))}
        </ol>
      </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/StackedTimeline.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.
Maison - Restaurant & Cafe Next.js Template

From the full template

Maison$49

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
Maison
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Apr 21, 2026

More from Maison

See the full template
Menu Card Slider
Carousel

Menu Card Slider

Restaurant Footer
Footer

Restaurant Footer

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
  • Blog
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk