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

Cardiora Navbar

A navbar block extracted from the Cardiora template, available in Tailwind CSS.

0 9
Cardiora Navbar preview

Download Codebase

Commercial License

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

cardiora.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>Cardiora Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Cardiora template, available in Tailwind CSS.">
  <meta name="keywords" content="Cardiora, Tailwind CSS template, HTML website template, health app template, heart rate monitor, wellbeing app, pulse tracking, wearables, fitness dashboard, telehealth">
  <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="Cardiora | Tailwind CSS Health &amp; Fitness Template">
  <meta property="og:description" content="A blush and coral Tailwind CSS health app template with live pulse widgets, a tap-to-measure pulse checker and analytics, programs and pricing pages.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Cardiora template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Cardiora | Tailwind CSS Health &amp; Fitness Template">
  <meta name="twitter:description" content="A blush and coral Tailwind CSS health app template with live pulse widgets, a tap-to-measure pulse checker and analytics, programs and pricing pages.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Cardiora 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=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { blush: { DEFAULT: '#fff4f0', deep: '#ffe4da' }, peach: '#ffd2bd', rose: '#f7a8c8', orchid: '#d97ef0', lilac: '#b9a4f5', coral: { DEFAULT: '#ec6a50', deep: '#d4523a' }, teal: { DEFAULT: '#159a9c', deep: '#0f7b7d' }, ink: '#141414', lime: '#86d01f' },
          fontFamily: { sans: ['"Plus Jakarta Sans"', '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 beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .sparkles { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 22q1 9 10 10q-9 1-10 10q-1-9-10-10q9-1 10-10z' fill='%23f2ecea'/%3E%3C/svg%3E"); }
    .stripes { background-image: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 7px); }
    .beat { animation: beat 1s ease-in-out infinite; }
    .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; }
    .reveal-ready [data-chart] .bar { transform: scaleY(0); }
    [data-chart] .bar { transform-origin: bottom; transform-box: fill-box; transition: transform .7s ease; transition-delay: var(--bar-delay, 0ms); }
    .reveal-ready [data-chart].is-visible .bar { transform: none; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .beat { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-blush font-sans text-ink antialiased">
<!-- block:start navbar -->
  <header class="relative z-40">
    <nav class="mx-auto flex max-w-7xl items-center justify-between gap-3 px-5 pt-6 md:px-8" aria-label="Main">
      <a href="index.html" class="flex items-center gap-2 text-xl font-extrabold tracking-tight" aria-label="Cardiora home"><svg viewBox="0 0 40 36" class="h-9 w-10" aria-hidden="true"><defs><linearGradient id="logo-grad" x1="0" x2="1"><stop offset="0" stop-color="#ec6a50"/><stop offset="1" stop-color="#d97ef0"/></linearGradient></defs><path d="M20 33S3 23 3 12a8.5 8.5 0 0 1 17-2 8.5 8.5 0 0 1 17 2c0 11-17 21-17 21z" fill="none" stroke="url(#logo-grad)" stroke-width="3"/><circle cx="27" cy="13" r="4" fill="none" stroke="url(#logo-grad)" stroke-width="2.5"/></svg><span class="hidden sm:inline">Cardiora</span></a>
      <div class="flex items-center gap-2">
        <div class="relative">
          <button type="button" data-search-toggle aria-controls="site-search" aria-expanded="false" class="grid h-12 w-12 place-items-center rounded-full border border-ink/15 bg-white transition hover:border-ink" aria-label="Search"><i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i></button>
          <div id="site-search" class="absolute left-0 top-14 hidden w-72 rounded-3xl border border-ink/10 bg-white p-3 shadow-xl" data-search>
            <label for="search-input" class="sr-only">Search Cardiora</label>
            <input id="search-input" type="search" placeholder="Search pages" class="w-full rounded-full bg-blush px-4 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-coral" data-search-input>
            <ul class="mt-2 grid text-sm" data-search-list>
                <li data-search-item data-label="heart rate analytics"><a href="analytics.html" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Heart rate analytics<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
                <li data-search-item data-label="weekly performance"><a href="performance.html" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Weekly performance<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
                <li data-search-item data-label="guided programs"><a href="programs.html" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Guided programs<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
                <li data-search-item data-label="plans and pricing"><a href="pricing.html" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Plans and pricing<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
                <li data-search-item data-label="talk to a care coach"><a href="contact.html" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Talk to a care coach<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
                <li data-search-item data-label="pulse check"><a href="index.html#pulse" class="flex items-center justify-between rounded-2xl px-3 py-2 hover:bg-blush">Pulse check<i class="fa-solid fa-arrow-right text-xs text-ink/40" aria-hidden="true"></i></a></li>
            </ul>
            <p class="px-3 py-2 text-sm text-ink/50" data-search-empty hidden>No pages match.</p>
          </div>
        </div>
        <ul class="hidden items-center gap-1 rounded-full border border-ink/15 bg-white px-3 py-2 text-[15px] font-medium lg:flex">
            <li class="flex items-center gap-1"><span class="h-1 w-1 rounded-full bg-coral" aria-hidden="true"></span><a href="index.html" aria-current="page" class="rounded-full px-4 py-2 transition text-coral">Home</a></li>
            <li class="flex items-center gap-1"><span class="h-1 w-1 rounded-full bg-ink/20" aria-hidden="true"></span><a href="analytics.html"  class="rounded-full px-4 py-2 transition text-ink/70 hover:text-ink">Analytics</a></li>
            <li class="flex items-center gap-1"><span class="h-1 w-1 rounded-full bg-ink/20" aria-hidden="true"></span><a href="performance.html"  class="rounded-full px-4 py-2 transition text-ink/70 hover:text-ink">Performance</a></li>
            <li class="flex items-center gap-1"><span class="h-1 w-1 rounded-full bg-ink/20" aria-hidden="true"></span><a href="programs.html"  class="rounded-full px-4 py-2 transition text-ink/70 hover:text-ink">Programs</a></li>
            <li class="flex items-center gap-1"><span class="h-1 w-1 rounded-full bg-ink/20" aria-hidden="true"></span><a href="pricing.html"  class="rounded-full px-4 py-2 transition text-ink/70 hover:text-ink">Pricing</a></li>
        </ul>
      </div>
      <div class="flex items-center gap-2">
        <div class="relative">
          <button type="button" data-notes-toggle aria-controls="notes" aria-expanded="false" class="relative grid h-12 w-12 place-items-center rounded-full bg-ink/5 transition hover:bg-ink/10" aria-label="Notifications"><i class="fa-regular fa-bell" aria-hidden="true"></i><span class="absolute right-3 top-3 h-2 w-2 rounded-full bg-coral" data-notes-dot></span></button>
          <div id="notes" class="absolute right-0 top-14 hidden w-72 rounded-3xl border border-ink/10 bg-white p-3 shadow-xl">
            <p class="px-2 pb-2 text-xs font-semibold uppercase tracking-wide text-ink/50">Today</p>
            <ul class="grid gap-1 text-sm">
              <li class="flex gap-3 rounded-2xl p-2 hover:bg-blush"><span class="grid h-8 w-8 shrink-0 place-items-center rounded-full bg-blush-deep text-coral"><i class="fa-solid fa-heart-pulse text-xs" aria-hidden="true"></i></span>Resting heart rate down 3 bpm this week</li><li class="flex gap-3 rounded-2xl p-2 hover:bg-blush"><span class="grid h-8 w-8 shrink-0 place-items-center rounded-full bg-blush-deep text-coral"><i class="fa-solid fa-moon text-xs" aria-hidden="true"></i></span>Sleep score 86, your best in a month</li><li class="flex gap-3 rounded-2xl p-2 hover:bg-blush"><span class="grid h-8 w-8 shrink-0 place-items-center rounded-full bg-blush-deep text-coral"><i class="fa-solid fa-person-running text-xs" aria-hidden="true"></i></span>Ana joined your 5K challenge</li>
            </ul>
          </div>
        </div>
        <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="grid h-12 w-12 place-items-center rounded-full bg-ink/5 transition hover:bg-ink/10" aria-label="Open menu"><i class="fa-solid fa-grip" aria-hidden="true"></i></button>
        <a href="contact.html" class="hidden rounded-full bg-gradient-to-br from-rose to-orchid p-0.5 sm:block" aria-label="Talk to your care coach"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-5.jpg" alt="" class="h-11 w-11 rounded-full border-2 border-white object-cover"></a>
      </div>
    </nav>
    <div id="mobile-menu" class="absolute inset-x-5 top-full mt-3 hidden rounded-3xl border border-ink/10 bg-white p-3 shadow-xl md:inset-x-auto md:right-8 md:w-80">
      <ul class="grid gap-1">
          <li><a href="index.html" aria-current="page" class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold bg-coral text-white">Home<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
          <li><a href="analytics.html"  class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold hover:bg-blush">Analytics<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
          <li><a href="performance.html"  class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold hover:bg-blush">Performance<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
          <li><a href="programs.html"  class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold hover:bg-blush">Programs<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
          <li><a href="pricing.html"  class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold hover:bg-blush">Pricing<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
          <li><a href="contact.html"  class="flex items-center justify-between rounded-2xl px-4 py-3 font-semibold hover:bg-blush">Contact<i class="fa-solid fa-arrow-right text-xs" aria-hidden="true"></i></a></li>
      </ul>
    </div>
  </header>
  <!-- block:end navbar -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    const popovers = [...document.querySelectorAll('[data-menu-toggle], [data-search-toggle], [data-notes-toggle]')];
    popovers.forEach((button) => {
      const panel = document.getElementById(button.getAttribute('aria-controls'));
      button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        popovers.forEach((other) => { other.setAttribute('aria-expanded', 'false'); document.getElementById(other.getAttribute('aria-controls')).classList.add('hidden'); });
        button.setAttribute('aria-expanded', String(!open));
        panel.classList.toggle('hidden', open);
        if (!open && button.matches('[data-notes-toggle]')) button.querySelector('[data-notes-dot]')?.remove();
        if (!open) panel.querySelector('input')?.focus();
      });
    });

    document.querySelectorAll('[data-search]').forEach((root) => {
      const input = root.querySelector('[data-search-input]');
      const items = [...root.querySelectorAll('[data-search-item]')];
      input.addEventListener('input', () => {
        const query = input.value.trim().toLowerCase();
        let shown = 0;
        items.forEach((item) => { item.hidden = !item.dataset.label.includes(query); if (!item.hidden) shown += 1; });
        root.querySelector('[data-search-empty]').hidden = shown > 0;
      });
    });

    document.querySelectorAll('[data-rr]').forEach((root) => {
      const readings = [...root.querySelectorAll('[data-rr-reading]')];
      readings.forEach((button) => button.addEventListener('click', () => {
        readings.forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
        root.querySelector('[data-rr-value]').textContent = button.dataset.rrReading;
      }));
    });

    document.querySelectorAll('[data-categories]').forEach((root) => {
      const chips = [...root.querySelectorAll('[data-category]')];
      chips.forEach((chip) => chip.addEventListener('click', () => {
        chip.setAttribute('aria-pressed', String(chip.getAttribute('aria-pressed') !== 'true'));
        root.querySelector('[data-category-count]').textContent = chips.filter((c) => c.getAttribute('aria-pressed') === 'true').length;
      }));
    });

    document.querySelectorAll('[data-insights]').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') select(tabs[(i + 1) % tabs.length], true);
          if (event.key === 'ArrowLeft') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
        });
      });
    });

    document.querySelectorAll('[data-mindful]').forEach((root) => {
      const days = [...root.querySelectorAll('[data-mindful-day]')];
      days.forEach((day) => day.addEventListener('click', () => {
        day.setAttribute('aria-pressed', String(day.getAttribute('aria-pressed') !== 'true'));
        root.querySelector('[data-mindful-count]').textContent = days.filter((d) => d.getAttribute('aria-pressed') === 'true').length;
      }));
    });

    document.querySelectorAll('[data-bpm]').forEach((el) => {
      if (reducedMotion || navigator.webdriver) return;
      setInterval(() => { el.textContent = 61 + Math.round(Math.random() * 5); }, 1600);
    });

    document.querySelectorAll('[data-devices]').forEach((root) => {
      const toggles = [...root.querySelectorAll('[data-device]')];
      toggles.forEach((toggle) => toggle.addEventListener('change', () => {
        root.querySelector('[data-device-count]').textContent = toggles.filter((t) => t.checked).length;
      }));
    });

    document.querySelectorAll('[data-story]').forEach((root) => {
      const steps = [...root.querySelectorAll('[data-story-step]')];
      const activate = (index) => {
        steps.forEach((step, i) => step.setAttribute('aria-pressed', String(i === index)));
        root.querySelectorAll('[data-story-image]').forEach((img) => { img.hidden = Number(img.dataset.storyImage) !== index; });
        root.querySelector('[data-story-number]').textContent = index + 1;
      };
      steps.forEach((step, i) => step.addEventListener('click', () => activate(i)));
      if ('IntersectionObserver' in window && matchMedia('(min-width: 1024px)').matches) {
        const observer = new IntersectionObserver((entries) => entries.forEach((entry) => { if (entry.isIntersecting) activate(steps.indexOf(entry.target)); }), { rootMargin: '-45% 0px -45% 0px' });
        steps.forEach((step) => observer.observe(step));
      }
    });

    document.querySelectorAll('[data-pulse]').forEach((root) => {
      const dots = [...root.querySelectorAll('[data-pulse-dot]')];
      const heart = root.querySelector('[data-pulse-heart]');
      let taps = [];
      const zone = (bpm) => (bpm < 60 ? 'Athletic resting rate' : bpm <= 80 ? 'Calm and steady' : bpm <= 100 ? 'Slightly elevated' : 'High: rest and re-check');
      const render = (intervals) => {
        dots.forEach((dot, i) => { dot.classList.toggle('bg-rose', i < taps.length); dot.classList.toggle('bg-white/20', i >= taps.length); });
        const cells = root.querySelectorAll('[data-pulse-intervals] li');
        const last = intervals.slice(-4);
        cells.forEach((cell, i) => { cell.textContent = last[i] ? `${Math.round(last[i])}ms` : '--'; });
        if (intervals.length >= 3) {
          const bpm = Math.round(60000 / (intervals.reduce((sum, value) => sum + value, 0) / intervals.length));
          root.querySelector('[data-pulse-bpm]').textContent = bpm;
          root.querySelector('[data-pulse-zone]').textContent = zone(bpm);
          if (!reducedMotion) heart.classList.add('beat');
        } else {
          root.querySelector('[data-pulse-bpm]').textContent = '--';
          root.querySelector('[data-pulse-zone]').textContent = taps.length ? `${8 - taps.length} more taps` : 'Tap 8 times to measure';
          heart.classList.remove('beat');
        }
      };
      const intervalsFrom = (times) => times.slice(1).map((time, i) => time - times[i]).filter((gap) => gap >= 300 && gap <= 2000);
      root.querySelector('[data-pulse-tap]').addEventListener('click', () => {
        if (taps.length >= 8) taps = [];
        taps.push(performance.now());
        render(intervalsFrom(taps));
      });
      root.querySelector('[data-pulse-sample]').addEventListener('click', () => {
        const sample = [812, 798, 805, 790, 820, 801, 795];
        taps = [0, ...sample].map((_, i, list) => list.slice(0, i + 1).reduce((sum, value) => sum + value, 0));
        render(sample);
      });
      root.querySelector('[data-pulse-reset]').addEventListener('click', () => { taps = []; render([]); });
    });

    document.querySelectorAll('[data-stack]').forEach((root) => {
      const list = root.querySelector('[data-stack-cards]');
      let index = 0;
      const layout = () => {
        [...list.children].forEach((card, i) => {
          card.style.zIndex = list.children.length - i;
          card.style.transform = `translate(${i * 14}px, ${i * 14}px) rotate(${i * 2}deg)`;
          card.setAttribute('aria-hidden', String(i !== 0));
        });
      };
      const next = () => {
        list.append(list.firstElementChild);
        index = (index + 1) % list.children.length;
        root.querySelector('[data-stack-index]').textContent = index + 1;
        layout();
      };
      root.querySelector('[data-stack-next]').addEventListener('click', next);
      list.addEventListener('click', next);
    });

    document.querySelectorAll('[data-faq-chat]').forEach((root) => {
      const faqs = JSON.parse(root.querySelector('[data-faq-data]').textContent);
      const log = root.querySelector('[data-faq-log]');
      const bubble = (text, mine) => {
        const p = document.createElement('p');
        p.className = mine ? 'max-w-[85%] self-end rounded-3xl rounded-tr-md bg-ink px-4 py-3 text-white' : 'max-w-[85%] rounded-3xl rounded-tl-md bg-white px-4 py-3';
        p.textContent = text;
        log.append(p);
      };
      root.querySelectorAll('[data-faq-question]').forEach((button) => button.addEventListener('click', () => {
        const [question, answer] = faqs[Number(button.dataset.faqQuestion)];
        button.disabled = true;
        bubble(question, true);
        if (reducedMotion || navigator.webdriver) bubble(answer); else setTimeout(() => bubble(answer), 450);
      }));
    });

    document.querySelectorAll('[data-app-link]').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 = `Link sent to ${email.value}. Check your inbox.`;
        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));
    }
  </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

Cardiora screenshot Premium

Health & Fitness

Cardiora

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