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

Cardiora Demo

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

0 7
Cardiora Demo preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con 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 Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo 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 demo -->
  <section id="pulse" class="mx-auto max-w-7xl px-5 py-16 md:px-8 md:py-24" data-pulse>
    <div class="grid items-center gap-10 overflow-hidden rounded-[2.5rem] bg-ink p-6 text-white md:p-12 lg:grid-cols-[1fr_1.1fr]">
      <div>
        <p class="text-sm font-semibold text-rose">Try it now</p>
        <h2 class="mt-2 text-4xl font-bold tracking-tight md:text-5xl">Tap along with<br><span class="bg-gradient-to-r from-peach via-rose to-orchid bg-clip-text text-transparent">your heartbeat</span></h2>
        <p class="mt-4 max-w-md text-white/70">Find the pulse on your wrist or neck, then tap the heart once for every beat. Eight taps are enough for a reading.</p>
        <div class="mt-6 flex flex-wrap gap-3">
          <button type="button" data-pulse-sample class="rounded-full border border-white/40 px-5 py-2.5 text-sm font-semibold transition hover:border-white">Use a sample pulse</button>
          <button type="button" data-pulse-reset class="rounded-full px-5 py-2.5 text-sm font-semibold text-white/70 underline underline-offset-4 hover:text-white">Reset</button>
        </div>
      </div>
      <div class="grid gap-6 sm:grid-cols-[auto_1fr] sm:items-center">
        <div class="grid justify-items-center gap-4">
          <button type="button" data-pulse-tap class="grid h-44 w-44 place-items-center rounded-full bg-gradient-to-br from-coral via-rose to-orchid text-6xl shadow-[0_0_80px_-10px_rgba(247,168,200,.7)] transition active:scale-95" aria-label="Tap with each heartbeat"><i class="fa-solid fa-heart" aria-hidden="true" data-pulse-heart></i></button>
          <div class="flex gap-1.5" aria-hidden="true"><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span><span class="h-2 w-2 rounded-full bg-white/20" data-pulse-dot></span></div>
        </div>
        <div class="rounded-[2rem] bg-white/5 p-6" aria-live="polite">
          <p class="text-sm text-white/60">Heart rate</p>
          <p class="text-6xl font-bold"><span data-pulse-bpm>--</span> <span class="text-xl font-medium text-white/60">bpm</span></p>
          <p class="mt-2 inline-flex rounded-full bg-white/10 px-3 py-1 text-sm font-semibold" data-pulse-zone>Tap 8 times to measure</p>
          <p class="mt-6 text-sm text-white/60">Last R-R intervals</p>
          <ul class="mt-2 grid grid-cols-4 gap-2 text-center text-sm font-semibold" data-pulse-intervals>
            <li class="rounded-full bg-white/10 py-2">--</li><li class="rounded-full bg-white/10 py-2">--</li><li class="rounded-full bg-white/10 py-2">--</li><li class="rounded-full bg-white/10 py-2">--</li>
          </ul>
        </div>
      </div>
    </div>
  </section>
  <!-- block:end demo -->
<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>

De esta plantilla

Cardiora screenshot Premium

Salud y fitness

Cardiora

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