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

Glidera Hero

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

0 25
Glidera Hero preview

Download Codebase

Commercial License

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

glidera.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>Glidera Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Glidera template, available in Tailwind CSS.">
  <meta name="keywords" content="Glidera, Tailwind CSS template, HTML website template, ecommerce template, wearable store, swim tracker, sports gadget shop, fitness band, product launch page, shopping cart">
  <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="Glidera | Tailwind CSS Ecommerce Template">
  <meta property="og:description" content="A bold Tailwind CSS ecommerce template for sports wearables, with a colour-switching hero, a stroke analyzer and swim clinics.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Glidera template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Glidera | Tailwind CSS Ecommerce Template">
  <meta name="twitter:description" content="A bold Tailwind CSS ecommerce template for sports wearables, with a colour-switching hero, a stroke analyzer and swim clinics.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Glidera 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+Black&family=Archivo:wght@200;300;500&family=Raleway:wght@400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { sun: { DEFAULT: '#f6cc45', deep: '#e0b52c' }, olive: '#8a7426', ink: '#111111', smoke: '#f5f3ec', accent: { DEFAULT: 'var(--accent)', deep: 'var(--accent-deep)' } },
          fontFamily: { sans: ['Raleway', 'sans-serif'], heavy: ['"Archivo Black"', 'sans-serif'], airy: ['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; } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    :root { --accent: #f6cc45; --accent-deep: #8a7426; }
    .bg-accent, .bg-accent-deep { transition: background-color .6s ease; }
    .swap { transition: opacity .35s ease; }
    .bar { transform-origin: bottom; transition: transform .8s ease; }
    .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; }
      .bg-accent, .bg-accent-deep, .swap, .bar { transition: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-smoke font-sans text-ink antialiased">
<!-- block:start hero -->
  <section class="relative overflow-hidden bg-accent" data-hero>
    <div class="mx-auto grid min-h-[44rem] max-w-[90rem] grid-cols-[3rem_1fr] md:grid-cols-[6rem_1fr] md:min-h-[46rem]">
      <div class="flex flex-col items-center justify-between py-10 pl-2 md:pl-6">
        <div class="flex flex-1 flex-col items-center justify-center gap-24">
          <button type="button" data-hero-next class="flex flex-col items-center gap-2 text-sm" aria-label="Next colour"><i class="fa-solid fa-chevron-up" aria-hidden="true"></i><span class="[writing-mode:vertical-rl] rotate-180">next</span></button>
          <button type="button" data-hero-prev class="flex flex-col items-center gap-2 text-sm" aria-label="Previous colour"><span class="[writing-mode:vertical-rl] rotate-180">prev</span><i class="fa-solid fa-chevron-down" aria-hidden="true"></i></button>
        </div>
        <div class="flex flex-col gap-5 text-lg">
          <a href="about.html" aria-label="Instagram"><i class="fa-brands fa-instagram" aria-hidden="true"></i></a>
          <a href="about.html" aria-label="YouTube"><i class="fa-brands fa-youtube" aria-hidden="true"></i></a>
          <a href="about.html" aria-label="Strava club"><i class="fa-brands fa-strava" aria-hidden="true"></i></a>
        </div>
      </div>
      <div class="relative flex flex-col justify-center pb-72 pr-5 pt-10 md:pb-56 md:pr-12">
        <h1 class="flex flex-wrap items-center text-[13vw] leading-none tracking-tight md:text-[9vw] xl:text-[8.5rem]" data-reveal>
          <span class="font-heavy">STR</span><span class="relative mx-1 inline-block h-[0.85em] w-[0.85em] overflow-hidden rounded-full bg-ink ring-4 ring-ink/10"><img src="https://images.unsplash.com/photo-1575311373937-040b8e1fd5b6?auto=format&fit=crop&w=400&h=400&q=80" alt="Black fitness band showing swim stats" class="swap h-full w-full object-cover" data-hero-image></span><span class="font-heavy">KE</span><span class="font-airy font-extralight">BAND</span>
        </h1>
        <p class="mt-2 self-end text-xl md:mr-10 md:text-3xl" aria-live="polite"><span data-hero-tagline>Swim smarter, lap after lap</span> · <span class="font-semibold" data-hero-colour>Sunburst</span></p>
        <p class="mt-8 flex gap-2" aria-hidden="true"><span class="h-1 rounded-full bg-ink transition-all w-10" data-hero-dot></span><span class="h-1 rounded-full bg-ink transition-all w-4 opacity-30" data-hero-dot></span><span class="h-1 rounded-full bg-ink transition-all w-4 opacity-30" data-hero-dot></span></p>
      </div>
    </div>
    <div class="absolute bottom-0 right-0 grid w-full max-w-4xl grid-cols-1 sm:grid-cols-[1.7fr_1fr]">
      <div class="bg-accent-deep px-6 py-7 text-white md:px-10 md:py-9">
        <h2 class="text-xl font-semibold md:text-2xl">Coaching that lives on your wrist</h2>
        <p class="mt-3 max-w-md text-sm leading-relaxed text-white/85 md:text-base">Stroke Band sits on your hand and reads the force and angle of every pull, then turns each length into clear numbers you can train with.</p>
        <a href="stroke-band.html" class="mt-5 flex items-center justify-end gap-5">More details<i class="fa-solid fa-arrow-right-long text-2xl" aria-hidden="true"></i></a>
      </div>
      <button type="button" data-video-open class="group relative hidden overflow-hidden bg-ink sm:block" aria-label="Watch how Stroke Band works">
        <img src="https://images.unsplash.com/photo-1530549387789-4c1017266635?auto=format&fit=crop&w=600&h=500&q=80" alt="" class="h-full w-full object-cover opacity-70 transition duration-500 group-hover:scale-105">
        <span class="absolute bottom-5 right-5 grid h-14 w-14 place-items-center rounded-full bg-white/80 text-ink transition group-hover:bg-white"><i class="fa-solid fa-play" aria-hidden="true"></i></span>
      </button>
    </div>
    <dialog data-video class="w-[min(56rem,92vw)] bg-ink p-0 text-white backdrop:bg-ink/80" aria-labelledby="video-title">
      <div class="grid md:grid-cols-[1.4fr_1fr]">
        <img src="https://images.unsplash.com/photo-1560090995-01632a28895b?auto=format&fit=crop&w=900&h=700&q=80" alt="Swimmers racing in a competition pool" class="h-full w-full object-cover">
        <div class="flex flex-col p-6 md:p-8">
          <div class="flex items-start justify-between gap-4"><h2 id="video-title" class="font-heavy text-3xl uppercase">How it works</h2><button type="button" data-video-close class="grid h-10 w-10 shrink-0 place-items-center rounded-full border border-white/30 hover:bg-white hover:text-ink" aria-label="Close"><i class="fa-solid fa-xmark" aria-hidden="true"></i></button></div>
          <ol class="mt-6 grid gap-5 text-white/80">
            <li><span class="font-heavy text-accent">01</span> Slip the band on and tap twice to start a session.</li>
            <li><span class="font-heavy text-accent">02</span> Swim. Sensors log 400 readings per stroke.</li>
            <li><span class="font-heavy text-accent">03</span> Sync to the app and get one tip for your next swim.</li>
          </ol>
          <a href="shop.html" class="mt-auto inline-block self-start bg-accent px-6 py-3 font-semibold text-ink">Shop the band</a>
        </div>
      </div>
    </dialog>
    <script type="application/json" data-hero-data>[{"accent":"#f6cc45","deep":"#8a7426","colour":"Sunburst","photo":"1575311373937-040b8e1fd5b6","alt":"Black fitness band showing swim stats","tagline":"Swim smarter, lap after lap"},{"accent":"#ff8a65","deep":"#9c3d24","colour":"Coral","photo":"1523275335684-37898b6baf30","alt":"Two minimalist white watches on a light background","tagline":"Own every length you swim"},{"accent":"#5ed1c4","deep":"#1f6b62","colour":"Lagoon","photo":"1508685096489-7aacd43bd3b1","alt":"Smartwatch on a wrist with water drops","tagline":"Train in open water, fearlessly"}]</script>
  </section>
  <!-- block:end hero -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
    const cart = { get: () => { try { return JSON.parse(localStorage.getItem('glidera-cart')) || []; } catch (error) { return []; } }, set: (value) => { try { localStorage.setItem('glidera-cart', JSON.stringify(value)); } catch (error) { /* storage unavailable */ } } };
    const paintCart = () => document.querySelectorAll('[data-cart-count]').forEach((el) => { el.textContent = cart.get().length; });
    paintCart();

    document.querySelectorAll('[data-overlay-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      const close = menu.querySelector('[data-overlay-close]');
      const set = (open) => { menu.hidden = !open; button.setAttribute('aria-expanded', String(open)); document.body.style.overflow = open ? 'hidden' : ''; (open ? close : button).focus(); };
      button.addEventListener('click', () => set(true));
      close.addEventListener('click', () => set(false));
      menu.addEventListener('keydown', (event) => { if (event.key === 'Escape') set(false); });
    });

    document.querySelectorAll('[data-add-cart]').forEach((button) => button.addEventListener('click', () => {
      cart.set([...cart.get(), button.dataset.spotCart || button.dataset.addCart]);
      paintCart();
      const label = button.textContent;
      button.textContent = 'Added ✓';
      setTimeout(() => { button.textContent = label; }, 1400);
    }));

    document.querySelectorAll('[data-hero]').forEach((root) => {
      const slides = JSON.parse(root.querySelector('[data-hero-data]').textContent);
      const dots = [...root.querySelectorAll('[data-hero-dot]')];
      let index = 0;
      const paint = () => {
        const slide = slides[index];
        document.documentElement.style.setProperty('--accent', slide.accent);
        document.documentElement.style.setProperty('--accent-deep', slide.deep);
        const image = root.querySelector('[data-hero-image]');
        image.src = `https://images.unsplash.com/photo-${slide.photo}?auto=format&fit=crop&w=400&h=400&q=80`; image.alt = slide.alt;
        root.querySelector('[data-hero-tagline]').textContent = slide.tagline;
        root.querySelector('[data-hero-colour]').textContent = slide.colour;
        dots.forEach((dot, i) => { dot.classList.toggle('w-10', i === index); dot.classList.toggle('w-4', i !== index); dot.classList.toggle('opacity-30', i !== index); });
      };
      root.querySelector('[data-hero-next]').addEventListener('click', () => { index = (index + 1) % slides.length; paint(); });
      root.querySelector('[data-hero-prev]').addEventListener('click', () => { index = (index - 1 + slides.length) % slides.length; paint(); });
      const dialog = root.querySelector('[data-video]');
      root.querySelector('[data-video-open]').addEventListener('click', () => dialog.showModal());
      root.querySelector('[data-video-close]').addEventListener('click', () => dialog.close());
      dialog.addEventListener('click', (event) => { if (event.target === dialog) dialog.close(); });
    });

    document.querySelectorAll('[data-spotlight]').forEach((root) => {
      const picks = [...root.querySelectorAll('[data-spot-pick]')];
      picks.forEach((pick) => pick.addEventListener('click', () => {
        picks.forEach((other) => other.setAttribute('aria-pressed', String(other === pick)));
        const image = root.querySelector('[data-spot-image]'); image.src = pick.dataset.img; image.alt = pick.dataset.alt;
        root.querySelector('[data-spot-name]').textContent = pick.dataset.name;
        root.querySelector('[data-spot-sub]').textContent = pick.dataset.sub;
        root.querySelector('[data-spot-text]').textContent = pick.dataset.text;
        root.querySelector('[data-spot-price]').textContent = pick.dataset.price;
        root.querySelector('[data-spot-cart]').dataset.spotCart = pick.dataset.name;
      }));
    });

    document.querySelectorAll('[data-analyzer]').forEach((root) => {
      const strokes = { free: { pace: 1.0, spl: 18, kcal: 0.36, tip: 'Long, even pulls. Keep your elbow high on the catch.', curve: [10, 60, 110, 90, 30, 10] }, back: { pace: 1.12, spl: 20, kcal: 0.33, tip: 'Rotate from the hips and finish each pull past your thigh.', curve: [10, 50, 95, 100, 40, 10] }, breast: { pace: 1.3, spl: 14, kcal: 0.42, tip: 'Glide for a beat after the kick — you are rushing the recovery.', curve: [10, 100, 40, 10, 80, 10] }, fly: { pace: 1.18, spl: 16, kcal: 0.48, tip: 'Breathe every second stroke and drive the chest down on entry.', curve: [10, 80, 115, 60, 100, 10] } };
      const value = (name) => { const el = root.querySelector(`[name="${name}"]:checked`) || root.querySelector(`[name="${name}"]`); return el.value ?? el.getAttribute('value'); };
      const paint = () => {
        const stroke = strokes[value('stroke')];
        const laps = Number(value('laps'));
        const pool = Number(value('pool'));
        const distance = laps * pool;
        const seconds = Math.round(distance * 1.2 * stroke.pace);
        root.querySelector('[data-out-laps]').textContent = laps;
        root.querySelector('[data-out-distance]').textContent = distance;
        root.querySelector('[data-out-time]').textContent = `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`;
        root.querySelector('[data-out-kcal]').textContent = Math.round(distance * stroke.kcal);
        root.querySelector('[data-out-strokes]').textContent = Math.round(laps * stroke.spl * (pool / 25));
        root.querySelector('[data-out-tip]').textContent = stroke.tip;
        const points = stroke.curve.map((y, i) => `${i * 80},${130 - y}`);
        root.querySelector('[data-out-curve]').setAttribute('d', `M${points.join(' L')}`);
      };
      root.addEventListener('input', paint);
      root.addEventListener('change', paint);
      paint();
    });

    document.querySelectorAll('[data-remind]').forEach((button) => button.addEventListener('click', () => {
      const on = button.getAttribute('aria-pressed') !== 'true';
      button.setAttribute('aria-pressed', String(on));
      button.lastElementChild.textContent = on ? 'Reminder set' : 'Remind me';
    }));

    document.querySelectorAll('[data-like]').forEach((button) => button.addEventListener('click', () => {
      const on = button.getAttribute('aria-pressed') !== 'true';
      button.setAttribute('aria-pressed', String(on));
      button.querySelector('[data-like-count]').textContent = Number(button.dataset.like) + (on ? 1 : 0);
    }));

    document.querySelectorAll('[data-newsletter]').forEach((form) => {
      const status = form.parentElement.querySelector('[data-form-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const email = form.querySelector('[name="email"]');
        if (!email.checkValidity() || !email.value.trim()) { status.textContent = 'Please enter a valid email address.'; email.focus(); return; }
        status.textContent = 'You are in. First notes land next week.';
        form.reset();
      });
    });

    if (watchMotion) {
      document.documentElement.classList.add('reveal-ready');
      const bars = [...document.querySelectorAll('[data-bars] .bar')];
      bars.forEach((bar) => { bar.style.transform = 'scaleY(0)'; });
      const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (!entry.isIntersecting) return;
        entry.target.classList.add('is-visible');
        entry.target.querySelectorAll('.bar').forEach((bar, i) => { setTimeout(() => { bar.style.transform = ''; }, i * 90); });
        observer.unobserve(entry.target);
      }), { threshold: 0.2 });
      document.querySelectorAll('[data-reveal], [data-bars]').forEach((el) => observer.observe(el));
    }
  </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

Glidera screenshot Premium

E-commerce

Glidera

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