Gratis
Cifras
Cardiora Stats
A stats block extracted from the Cardiora template, available in Tailwind CSS.
0
5
A stats block extracted from the Cardiora template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access
<!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 Stats | Tailwind CSS UI Block</title>
<meta name="description" content="A stats 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 & 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 & 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 stats -->
<section class="mx-auto max-w-7xl px-5 pb-16 md:px-8 md:pb-24">
<div class="grid gap-10 lg:grid-cols-[1fr_1.4fr] lg:items-end">
<div>
<p class="text-sm font-semibold text-coral">Results</p>
<h2 class="mt-2 text-4xl font-bold tracking-tight md:text-5xl">Calmer hearts in twelve weeks</h2>
<dl class="mt-8 grid grid-cols-3 gap-4">
<div class="rounded-3xl bg-white p-4"><dt class="text-xs text-ink/60">bpm resting HR</dt><dd class="mt-1 text-2xl font-bold">−8</dd></div>
<div class="rounded-3xl bg-white p-4"><dt class="text-xs text-ink/60">heart rate variability</dt><dd class="mt-1 text-2xl font-bold">+14%</dd></div>
<div class="rounded-3xl bg-white p-4"><dt class="text-xs text-ink/60">members tracking</dt><dd class="mt-1 text-2xl font-bold">41k</dd></div>
</dl>
</div>
<figure class="rounded-[2rem] bg-white p-6" data-chart data-reveal>
<figcaption class="flex justify-between text-sm"><span class="font-semibold">Average resting heart rate</span><span class="text-ink/60">Weeks 1–12</span></figcaption>
<svg viewBox="0 0 480 200" class="mt-4 w-full" role="img" aria-label="Average resting heart rate falls from 72 to 64 bpm over twelve weeks">
<rect class="bar" x="8" y="44" width="26" height="136" rx="8" fill="#ffd2bd" style="--bar-delay: 0ms"/>
<text x="21" y="196" text-anchor="middle" font-size="10" fill="#14141499">1</text>
<rect class="bar" x="47" y="52" width="26" height="128" rx="8" fill="#ffd2bd" style="--bar-delay: 40ms"/>
<text x="60" y="196" text-anchor="middle" font-size="10" fill="#14141499">2</text>
<rect class="bar" x="86" y="52" width="26" height="128" rx="8" fill="#ffd2bd" style="--bar-delay: 80ms"/>
<text x="99" y="196" text-anchor="middle" font-size="10" fill="#14141499">3</text>
<rect class="bar" x="125" y="60" width="26" height="120" rx="8" fill="#ffd2bd" style="--bar-delay: 120ms"/>
<text x="138" y="196" text-anchor="middle" font-size="10" fill="#14141499">4</text>
<rect class="bar" x="164" y="68" width="26" height="112" rx="8" fill="#ffd2bd" style="--bar-delay: 160ms"/>
<text x="177" y="196" text-anchor="middle" font-size="10" fill="#14141499">5</text>
<rect class="bar" x="203" y="68" width="26" height="112" rx="8" fill="#ffd2bd" style="--bar-delay: 200ms"/>
<text x="216" y="196" text-anchor="middle" font-size="10" fill="#14141499">6</text>
<rect class="bar" x="242" y="76" width="26" height="104" rx="8" fill="#ffd2bd" style="--bar-delay: 240ms"/>
<text x="255" y="196" text-anchor="middle" font-size="10" fill="#14141499">7</text>
<rect class="bar" x="281" y="84" width="26" height="96" rx="8" fill="#ffd2bd" style="--bar-delay: 280ms"/>
<text x="294" y="196" text-anchor="middle" font-size="10" fill="#14141499">8</text>
<rect class="bar" x="320" y="84" width="26" height="96" rx="8" fill="#ffd2bd" style="--bar-delay: 320ms"/>
<text x="333" y="196" text-anchor="middle" font-size="10" fill="#14141499">9</text>
<rect class="bar" x="359" y="92" width="26" height="88" rx="8" fill="#ffd2bd" style="--bar-delay: 360ms"/>
<text x="372" y="196" text-anchor="middle" font-size="10" fill="#14141499">10</text>
<rect class="bar" x="398" y="100" width="26" height="80" rx="8" fill="#ffd2bd" style="--bar-delay: 400ms"/>
<text x="411" y="196" text-anchor="middle" font-size="10" fill="#14141499">11</text>
<rect class="bar" x="437" y="108" width="26" height="72" rx="8" fill="#ec6a50" style="--bar-delay: 440ms"/>
<text x="450" y="196" text-anchor="middle" font-size="10" fill="#14141499">12</text>
<text x="451" y="100" text-anchor="middle" font-size="12" font-weight="700" fill="#ec6a50">64</text>
</svg>
</figure>
</div>
</section>
<!-- block:end stats -->
<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>
Premium
Salud y fitness
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.
Tailwind CSS · HTML download
Si no empieza, haz clic aquí.
¿Te gustan nuestras plantillas gratis?
Una pequeña propina nos ayuda a seguir añadiendo nuevas cada semana.
Invítanos a un café