Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Hero

Thrivera Hero

A hero block extracted from the Thrivera template, available in Tailwind CSS.

0 11
Thrivera Hero preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

thrivera.html
<!DOCTYPE html>
<html lang="en">
<head>
  <script>
    window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Thrivera Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Thrivera template, available in Tailwind CSS.">
  <meta name="keywords" content="Thrivera, Tailwind CSS template, HTML website template, mental health template, wellbeing consultancy, workplace mental health, therapy practice, nonprofit health program, evidence-based care">
  <meta name="author" content="Let's templates">
  <link rel="canonical" href="">

  <meta property="og:type" content="product">
  <meta property="og:site_name" content="Let's templates">
  <meta property="og:locale" content="en_US">
  <meta property="og:url" content="">
  <meta property="og:title" content="Thrivera | Tailwind CSS Health & Fitness Template">
  <meta property="og:description" content="A dark, editorial Tailwind CSS mental health template with an oversized photo headline, audience tabs, impact stats and a discovery call booking flow.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Thrivera template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Thrivera | Tailwind CSS Health & Fitness Template">
  <meta name="twitter:description" content="A dark, editorial Tailwind CSS mental health template with an oversized photo headline, audience tabs, impact stats and a discovery call booking flow.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Thrivera template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { coal: '#2d2829', ash: '#3a3435', cream: '#f7f1f5', lilac: '#f2dff7', cobalt: '#3d4ed8' },
          fontFamily: { sans: ['"Hanken Grotesk"', 'sans-serif'], hand: ['Caveat', 'cursive'] }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
    ::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
    @keyframes page-fade-out { to { opacity: 0; } }
    @keyframes page-fade-in { from { opacity: 0; } }
    html { scroll-behavior: smooth; }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-coal font-sans text-cream antialiased">
<!-- block:start hero -->
  <section id="top" class="relative overflow-hidden pb-16 pt-10 md:pb-24 md:pt-16">
    <svg class="pointer-events-none absolute -right-10 bottom-0 hidden h-[78%] text-cobalt md:block" viewBox="0 0 260 600" fill="none" aria-hidden="true">
      <path d="M250 20 C 120 70, 60 150, 120 230 S 250 380, 170 470 S 40 560, 30 600" stroke="currentColor" stroke-width="34" stroke-linecap="round"/>
    </svg>
    <div class="relative mx-auto max-w-6xl px-5 md:px-8">
      <h1 class="text-[2.75rem] font-semibold leading-[1.02] tracking-tight sm:text-6xl md:text-7xl lg:text-[6.5rem]">
        <span class="flex flex-wrap items-center gap-x-6 md:justify-center md:pl-24">
          Designing
          <img src="https://images.unsplash.com/photo-1531123897727-8f129e1688ce?auto=format&fit=crop&w=1200&q=80" alt="Close-up of a young woman's eyes" class="hidden h-[0.8em] w-[2em] rounded-lg object-cover object-[50%_38%] md:block" loading="lazy">
        </span>
        <span class="relative block lg:whitespace-nowrap">
          <svg class="absolute -left-20 top-1 hidden h-24 w-14 text-cream lg:block" viewBox="0 0 48 80" fill="none" aria-hidden="true"><path d="M40 6c-6 2-11 6-13 10m13-10-2 10M36 18C14 18 4 30 18 40 4 46 6 66 26 70" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/></svg>
          <span class="absolute -top-8 left-0 hidden font-hand text-3xl font-medium uppercase tracking-wide text-cream/90 lg:block" aria-hidden="true">(research-led)</span>
          <span class="relative inline-block">Practical
            <svg class="absolute -bottom-1.5 left-0 w-full text-cream/80 md:-bottom-3" viewBox="0 0 300 12" fill="none" preserveAspectRatio="none" aria-hidden="true"><path d="M2 6c90-5 190-5 296 0M10 10c90-4 170-4 250-1" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
          </span> &amp; Lasting
        </span>
        <span class="flex flex-wrap items-center gap-x-6 md:pl-36">
          Support
          <img src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=1200&q=80" alt="Close-up of a man's eyes" class="hidden h-[0.8em] w-[2em] rounded-lg object-cover object-[50%_30%] md:block" loading="lazy">
          <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&w=1200&q=80" alt="Close-up of a red-haired woman's eyes" class="hidden h-[0.8em] w-[2em] rounded-lg object-cover object-[50%_35%] md:block" loading="lazy">
        </span>
        <span class="block md:pl-[12rem] lg:whitespace-nowrap lg:pl-[15rem]">for Mental Health</span>
      </h1>
      <p class="mt-4 font-hand text-2xl uppercase text-cream/80 lg:hidden">(research-led)</p>

      <div class="mt-10 grid items-center gap-8 md:mt-12 md:grid-cols-[13rem_1fr] lg:grid-cols-[13rem_1fr_auto]">
        <img src="https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=1200&q=80" alt="Woman with long hair resting in warm evening light" class="aspect-square w-40 rounded-lg object-cover md:-mt-32 md:w-full" loading="lazy">
        <p class="max-w-sm text-lg font-medium leading-snug md:text-xl">We help you roll out meaningful mental health programs across your teams, institutions and neighbourhoods.</p>
        <div class="flex flex-wrap gap-4 md:col-span-2 lg:col-span-1">
          <a href="programs.html" class="inline-flex items-center justify-center rounded-md bg-cobalt px-9 py-4 text-lg font-semibold text-white transition hover:bg-[#3341c0]">Explore Thrivera</a>
          <a href="contact.html" class="inline-flex items-center justify-center rounded-md border border-cream/70 px-9 py-4 text-lg font-medium transition hover:bg-cream hover:text-coal">Book a Discovery Call</a>
        </div>
      </div>
    </div>
  </section>
  <!-- block:end hero -->
<script>
    document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      if (!menu) return;
      button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        button.setAttribute('aria-expanded', String(!open));
        button.setAttribute('aria-label', open ? 'Open menu' : 'Close menu');
        menu.classList.toggle('hidden', open);
      });
    });

    document.querySelectorAll('[data-tabs]').forEach((tablist) => {
      const tabs = [...tablist.querySelectorAll('[role="tab"]')];
      const select = (tab) => {
        tabs.forEach((other) => {
          const active = other === tab;
          other.setAttribute('aria-selected', String(active));
          other.tabIndex = active ? 0 : -1;
          document.getElementById(other.getAttribute('aria-controls')).classList.toggle('hidden', !active);
        });
      };
      tabs.forEach((tab, index) => {
        tab.addEventListener('click', () => select(tab));
        tab.addEventListener('keydown', (event) => {
          const step = { ArrowRight: 1, ArrowLeft: -1 }[event.key];
          if (!step) return;
          const next = tabs[(index + step + tabs.length) % tabs.length];
          next.focus();
          select(next);
        });
      });
    });

    document.querySelectorAll('[data-carousel]').forEach((carousel) => {
      const track = carousel.querySelector('[data-carousel-track]');
      if (!track) return;
      const slides = [...track.children];
      const dots = carousel.querySelector('[data-carousel-dots]');
      let index = 0;
      const perView = () => Math.max(1, Math.round(track.clientWidth / slides[0].clientWidth));
      const maxIndex = () => Math.max(0, slides.length - perView());
      const render = () => {
        track.style.transform = `translateX(-${index * slides[0].clientWidth}px)`;
        dots?.querySelectorAll('button').forEach((dot, i) => dot.setAttribute('aria-current', String(i === index)));
      };
      const go = (next) => { const max = maxIndex(); index = next > max ? 0 : next < 0 ? max : next; render(); };
      const buildDots = () => {
        if (!dots) return;
        dots.innerHTML = '';
        for (let i = 0; i <= maxIndex(); i++) {
          const dot = document.createElement('button');
          dot.type = 'button';
          dot.className = 'h-2.5 w-2.5 rounded-full bg-current opacity-30 aria-[current=true]:w-8 aria-[current=true]:opacity-100 transition-all';
          dot.setAttribute('aria-label', `Go to review ${i + 1}`);
          dot.addEventListener('click', () => go(i));
          dots.append(dot);
        }
      };
      carousel.querySelector('[data-carousel-prev]')?.addEventListener('click', () => go(index - 1));
      carousel.querySelector('[data-carousel-next]')?.addEventListener('click', () => go(index + 1));
      addEventListener('resize', () => { buildDots(); go(Math.min(index, maxIndex())); });
      buildDots();
      render();
    });

    document.querySelectorAll('[data-billing-toggle]').forEach((toggle) => {
      toggle.addEventListener('click', () => {
        const yearly = toggle.getAttribute('aria-checked') !== 'true';
        toggle.setAttribute('aria-checked', String(yearly));
        document.querySelectorAll('[data-price-monthly]').forEach((price) => {
          price.textContent = `$${yearly ? price.dataset.priceYearly : price.dataset.priceMonthly}`;
        });
        document.querySelectorAll('[data-billing-label]').forEach((label) => { label.textContent = yearly ? '/ month, billed yearly' : '/ month'; });
      });
    });

    document.querySelectorAll('[data-filter-group]').forEach((group) => {
      const items = group.parentElement.querySelectorAll('[data-filter-items] [data-category]');
      const activeClasses = ['bg-cream', 'text-coal'];
      group.addEventListener('click', (event) => {
        const button = event.target.closest('[data-filter]');
        if (!button) return;
        const filter = button.dataset.filter;
        group.querySelectorAll('[data-filter]').forEach((chip) => {
          const active = chip === button;
          chip.setAttribute('aria-pressed', String(active));
          activeClasses.forEach((cls) => chip.classList.toggle(cls, active));
        });
        items.forEach((item) => { item.hidden = !(filter === 'all' || item.dataset.category.split(' ').includes(filter)); });
      });
    });

    document.querySelectorAll('[data-contact-form]').forEach((form) => {
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const status = form.querySelector('[data-form-status]');
        if (!form.checkValidity()) {
          status.textContent = form.dataset.error;
          return;
        }
        status.textContent = form.dataset.success;
        form.reset();
      });
    });

    document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });

    (() => {
      const counters = document.querySelectorAll('[data-count-to]');
      if (!counters.length || navigator.webdriver || matchMedia('(prefers-reduced-motion: reduce)').matches || !('IntersectionObserver' in window)) return;
      const observer = new IntersectionObserver((entries) => {
        entries.forEach(({ isIntersecting, target }) => {
          if (!isIntersecting) return;
          observer.unobserve(target);
          const end = Number(target.dataset.countTo);
          const suffix = target.dataset.countSuffix || '';
          const start = performance.now();
          const tick = (now) => {
            const progress = Math.min((now - start) / 1200, 1);
            target.textContent = Math.round(end * progress).toLocaleString() + suffix;
            if (progress < 1) requestAnimationFrame(tick);
          };
          requestAnimationFrame(tick);
        });
      });
      counters.forEach((counter) => observer.observe(counter));
    })();

    (() => {
      const items = document.querySelectorAll('[data-reveal]');
      const skip = navigator.webdriver || !('IntersectionObserver' in window) || matchMedia('(prefers-reduced-motion: reduce)').matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add('reveal-ready');
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add('is-visible');
          observer.unobserve(entry.target);
        });
      }, { rootMargin: '0px 0px -10% 0px' });
      items.forEach((item) => observer.observe(item));
    })();
  </script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>

From this template

Thrivera screenshot Premium

Health & Fitness

Thrivera

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access