Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Portada

Strivo Hero

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

0 10
Strivo Hero preview
strivo.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>Strivo Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Strivo template, available in Tailwind CSS.">
  <meta name="keywords" content="Strivo, Tailwind CSS template, HTML website template, fitness template, training studio, HIIT, heart rate zones, personal training, wellness plans, gym landing page">
  <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="Strivo | Tailwind CSS Health &amp; Fitness Template">
  <meta property="og:description" content="A bold electric-blue Tailwind CSS training template with a heart rate zone calculator, training cycle diagram and wellness plans by audience.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Strivo template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Strivo | Tailwind CSS Health &amp; Fitness Template">
  <meta name="twitter:description" content="A bold electric-blue Tailwind CSS training template with a heart rate zone calculator, training cycle diagram and wellness plans by audience.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Strivo 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=Archivo:wght@400;500;600;800;900&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { volt: { DEFAULT: '#1aa3e8', deep: '#0b5fa6', pale: '#d9f0fc' }, ink: { DEFAULT: '#0b0d10', soft: '#1a1e24' }, cream: '#fbf6ef', flare: '#ff7a3d' },
          fontFamily: { sans: ['Archivo', 'sans-serif'] }
        }
      }
    }
  </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; } }
    @keyframes marquee { to { transform: translateX(-50%); } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .marquee { animation: marquee 30s linear infinite; }
    .blur-photo { filter: blur(6px) saturate(1.2); transform: scale(1.08); }
    .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; }
      .marquee { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-ink font-sans text-white antialiased">
<!-- block:start hero -->
  <section class="relative isolate overflow-hidden bg-volt">
    <img src="https://images.unsplash.com/photo-1594882645126-14020914d58d?auto=format&fit=crop&w=1800&q=70" alt="" class="blur-photo absolute inset-0 -z-20 h-full w-full object-cover">
    <div class="absolute inset-0 -z-10 bg-gradient-to-b from-volt/80 via-volt/40 via-55% to-ink"></div>
    <div class="mx-auto max-w-7xl px-5 pb-10 pt-36 md:px-12 md:pt-44">
      <h1 class="text-[3.4rem] font-extrabold uppercase leading-[.86] tracking-tight sm:text-7xl md:text-8xl lg:text-[8.5rem]" data-reveal><span class="block">Built for</span><span class="block sm:pl-[22%]">Every</span><span class="block">Stride</span></h1>
      <div class="mt-8 grid gap-8 lg:-mt-24 lg:grid-cols-[1fr_minmax(0,34rem)]">
        <span class="hidden lg:block"></span>
        <div>
          <p class="text-lg leading-relaxed md:text-2xl" data-reveal style="--reveal-delay: 80ms">Train with intent: tailored sessions, coaches who notice the details and an energy that makes every goal feel within reach.</p>
          <a href="programs.html" class="mt-10 flex items-center justify-between gap-6 border border-white/40 bg-white/75 px-8 py-7 text-lg font-extrabold uppercase text-ink backdrop-blur-xl transition hover:bg-white md:ml-auto md:w-[26rem]">Find your program<i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
        </div>
      </div>
      <div class="mt-16 grid gap-6 md:grid-cols-2 lg:grid-cols-[1fr_1.6fr_1.1fr_1fr] lg:items-start">
        <div data-reveal><p class="text-5xl font-extrabold" data-count="420">420</p><p class="mt-1 text-lg text-white/85">Body transformations</p></div>
        <div class="relative min-h-[13rem] overflow-hidden bg-cream text-ink" data-hero-card data-reveal style="--reveal-delay: 80ms">
            <article class="absolute inset-0 grid grid-cols-[1.1fr_1fr] transition-opacity duration-500" data-hero-slide >
              <div class="flex flex-col p-6"><h2 class="text-2xl font-extrabold uppercase leading-none md:text-3xl">HIIT Training</h2><p class="mt-auto text-sm">Short, sharp intervals that build engine and grit in 30 minutes.</p></div>
              <img src="https://images.unsplash.com/photo-1599058917212-d750089bc07e?auto=format&fit=crop&w=500&h=500&q=75" alt="Woman training with battle ropes" class="h-full w-full object-cover">
            </article>
            <article class="absolute inset-0 grid grid-cols-[1.1fr_1fr] transition-opacity duration-500" data-hero-slide hidden>
              <div class="flex flex-col p-6"><h2 class="text-2xl font-extrabold uppercase leading-none md:text-3xl">Strength Lab</h2><p class="mt-auto text-sm">Coached lifting that grows muscle and power safely.</p></div>
              <img src="https://images.unsplash.com/photo-1541534741688-6078c6bfb5c5?auto=format&fit=crop&w=500&h=500&q=75" alt="Woman lifting a barbell in a squat rack" class="h-full w-full object-cover">
            </article>
            <article class="absolute inset-0 grid grid-cols-[1.1fr_1fr] transition-opacity duration-500" data-hero-slide hidden>
              <div class="flex flex-col p-6"><h2 class="text-2xl font-extrabold uppercase leading-none md:text-3xl">Mobility Reset</h2><p class="mt-auto text-sm">Joint-friendly flows that keep you moving freely.</p></div>
              <img src="https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?auto=format&fit=crop&w=500&h=500&q=75" alt="Person stretching in a downward dog pose" class="h-full w-full object-cover">
            </article>
          <div class="absolute bottom-3 right-3 z-10 flex gap-1.5" role="group" aria-label="Featured programs">
              <button type="button" data-hero-dot="0" aria-pressed="true" class="h-2 w-6 bg-ink/25 transition aria-pressed:w-10 aria-pressed:bg-ink" aria-label="Show HIIT Training"></button>
              <button type="button" data-hero-dot="1" aria-pressed="false" class="h-2 w-6 bg-ink/25 transition aria-pressed:w-10 aria-pressed:bg-ink" aria-label="Show Strength Lab"></button>
              <button type="button" data-hero-dot="2" aria-pressed="false" class="h-2 w-6 bg-ink/25 transition aria-pressed:w-10 aria-pressed:bg-ink" aria-label="Show Mobility Reset"></button>
          </div>
        </div>
        <div class="border-t border-white/70 pt-5" data-reveal style="--reveal-delay: 160ms"><p class="text-5xl font-extrabold"><span data-count="6000">6000</span>+</p><p class="mt-1 text-lg text-white/85">Coached sessions a year</p></div>
        <p class="text-white/85 lg:pt-1" data-reveal style="--reveal-delay: 240ms">Gain muscle, sharpen power and build strength that carries into everything you do.</p>
      </div>
    </div>
  </section>
  <!-- block:end hero -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        button.setAttribute('aria-expanded', String(!open));
        menu.classList.toggle('hidden', open);
      });
    });

    document.querySelectorAll('[data-hero-card]').forEach((root) => {
      const slides = [...root.querySelectorAll('[data-hero-slide]')];
      const dots = [...root.querySelectorAll('[data-hero-dot]')];
      let current = 0;
      const show = (index) => {
        current = index;
        slides.forEach((slide, i) => { slide.hidden = i !== index; });
        dots.forEach((dot, i) => dot.setAttribute('aria-pressed', String(i === index)));
      };
      dots.forEach((dot, i) => dot.addEventListener('click', () => show(i)));
      if (!reducedMotion && !navigator.webdriver) setInterval(() => { if (!root.matches(':hover')) show((current + 1) % slides.length); }, 5000);
    });

    document.querySelectorAll('[data-services]').forEach((root) => {
      root.querySelectorAll('[data-service-toggle]').forEach((button) => button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        button.setAttribute('aria-expanded', String(!open));
        document.getElementById(button.getAttribute('aria-controls')).hidden = open;
      }));
    });

    document.querySelectorAll('[data-cycle]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-cycle-data]').textContent);
      const buttons = [...root.querySelectorAll('[data-phase]')];
      buttons.forEach((button) => button.addEventListener('click', () => {
        buttons.forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
        const phase = data[Number(button.dataset.phase)];
        root.querySelector('[data-cycle-title]').textContent = phase.title;
        root.querySelector('[data-cycle-weeks]').textContent = phase.weeks;
        root.querySelector('[data-cycle-text]').textContent = phase.text;
      }));
    });

    document.querySelectorAll('[data-zones]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-zone-data]').textContent);
      const age = root.querySelector('[data-zone-age]');
      const rest = root.querySelector('[data-zone-rest]');
      const buttons = [...root.querySelectorAll('[data-zone]')];
      const update = () => {
        const max = 220 - Number(age.value);
        const reserve = max - Number(rest.value);
        root.querySelector('[data-zone-age-out]').textContent = age.value;
        root.querySelector('[data-zone-rest-out]').textContent = `${rest.value} bpm`;
        root.querySelector('[data-zone-max]').textContent = max;
        buttons.forEach((button, i) => { button.querySelector('[data-zone-range]').textContent = `${Math.round(Number(rest.value) + reserve * data[i].low)}–${Math.round(Number(rest.value) + reserve * data[i].high)}`; });
      };
      age.addEventListener('input', update);
      rest.addEventListener('input', update);
      buttons.forEach((button) => button.addEventListener('click', () => {
        buttons.forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
        root.querySelector('[data-zone-session]').textContent = data[Number(button.dataset.zone)].session;
      }));
    });

    document.querySelectorAll('[data-carousel]').forEach((root) => {
      const track = root.querySelector('[data-track]');
      const dots = [...root.querySelectorAll('[data-dot]')];
      const count = track.children.length;
      let index = 0;
      const go = (next) => {
        index = (next + count) % count;
        track.style.transform = `translateX(-${track.children[index].offsetLeft}px)`;
        dots.forEach((dot, i) => dot.setAttribute('aria-pressed', String(i === index)));
      };
      root.querySelector('[data-prev]').addEventListener('click', () => go(index - 1));
      root.querySelector('[data-next]').addEventListener('click', () => go(index + 1));
      dots.forEach((dot, i) => dot.addEventListener('click', () => go(i)));
    });

    document.querySelectorAll('[data-faq-tabs]').forEach((root) => {
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const select = (tab, focus) => {
        tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; document.getElementById(other.getAttribute('aria-controls')).hidden = !on; });
        if (focus) tab.focus();
      };
      tabs.forEach((tab, i) => {
        tab.addEventListener('click', () => select(tab));
        tab.addEventListener('keydown', (event) => {
          if (event.key === 'ArrowRight' || event.key === 'ArrowDown') select(tabs[(i + 1) % tabs.length], true);
          if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
        });
      });
    });

    document.querySelectorAll('[data-newsletter]').forEach((form) => {
      const status = form.querySelector('[data-form-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const email = form.querySelector('[name="email"]');
        if (!email.value.trim() || !email.checkValidity()) { status.textContent = 'Please enter a valid email address.'; email.focus(); return; }
        status.textContent = 'Pass on its way. Check your inbox to book your first session.';
        form.reset();
      });
    });

    if (watchMotion) {
      document.documentElement.classList.add('reveal-ready');
      const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
      }), { threshold: 0.15 });
      document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
      const counter = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (!entry.isIntersecting) return;
        const el = entry.target; const end = Number(el.dataset.count); const start = performance.now();
        const tick = (now) => { const p = Math.min((now - start) / 900, 1); el.textContent = Math.round(end * p); if (p < 1) requestAnimationFrame(tick); };
        requestAnimationFrame(tick); counter.unobserve(el);
      }), { threshold: 0.5 });
      document.querySelectorAll('[data-count]').forEach((el) => counter.observe(el));
    }
  </script>
<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>

De esta plantilla

Strivo screenshot

Salud y fitness

Strivo

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado