Gratis
Demo
Strivo Demo
A demo block extracted from the Strivo template, available in Tailwind CSS.
0
4
A demo block extracted from the Strivo template, available in Tailwind CSS.
<!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 Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo 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 & 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 & 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 demo -->
<section id="zones" class="bg-ink" data-zones>
<div class="mx-auto grid max-w-7xl gap-12 px-5 py-20 md:px-12 md:py-28 lg:grid-cols-[1fr_1.3fr]">
<div>
<p class="text-sm font-semibold uppercase tracking-widest text-volt">Zone finder</p>
<h2 class="mt-4 text-5xl font-extrabold uppercase leading-[.9] tracking-tight md:text-7xl">Know your numbers</h2>
<p class="mt-6 max-w-md text-white/75">Our coaches program every session by heart rate zone. Enter two numbers to see yours.</p>
<div class="mt-10 grid gap-8">
<label class="grid gap-3"><span class="flex justify-between text-sm font-semibold uppercase tracking-wide">Age <output class="text-2xl text-volt" data-zone-age-out>32</output></span><input type="range" min="18" max="75" value="32" class="accent-[#1aa3e8]" data-zone-age></label>
<label class="grid gap-3"><span class="flex justify-between text-sm font-semibold uppercase tracking-wide">Resting heart rate <output class="text-2xl text-volt" data-zone-rest-out>60 bpm</output></span><input type="range" min="40" max="90" value="60" class="accent-[#1aa3e8]" data-zone-rest></label>
</div>
<p class="mt-10 border-t border-white/15 pt-6 text-white/70">Max heart rate <span class="ml-2 text-3xl font-extrabold text-white" data-zone-max>188</span> bpm</p>
</div>
<div>
<ul class="grid gap-2" role="list">
<li>
<button type="button" data-zone="0" aria-pressed="false" class="group relative grid w-full grid-cols-[6rem_1fr_auto] items-center gap-4 overflow-hidden bg-ink-soft px-5 py-5 text-left transition hover:bg-white/10 aria-pressed:bg-volt">
<span class="absolute inset-y-0 left-0 bg-white/5 group-aria-pressed:bg-white/15" style="width: 60%"></span>
<span class="relative text-sm font-semibold uppercase tracking-wide">Zone 1</span>
<span class="relative text-xl font-extrabold uppercase">Recovery</span>
<span class="relative text-lg font-semibold tabular-nums" data-zone-range>124–137</span>
</button>
</li>
<li>
<button type="button" data-zone="1" aria-pressed="false" class="group relative grid w-full grid-cols-[6rem_1fr_auto] items-center gap-4 overflow-hidden bg-ink-soft px-5 py-5 text-left transition hover:bg-white/10 aria-pressed:bg-volt">
<span class="absolute inset-y-0 left-0 bg-white/5 group-aria-pressed:bg-white/15" style="width: 70%"></span>
<span class="relative text-sm font-semibold uppercase tracking-wide">Zone 2</span>
<span class="relative text-xl font-extrabold uppercase">Endurance</span>
<span class="relative text-lg font-semibold tabular-nums" data-zone-range>137–150</span>
</button>
</li>
<li>
<button type="button" data-zone="2" aria-pressed="false" class="group relative grid w-full grid-cols-[6rem_1fr_auto] items-center gap-4 overflow-hidden bg-ink-soft px-5 py-5 text-left transition hover:bg-white/10 aria-pressed:bg-volt">
<span class="absolute inset-y-0 left-0 bg-white/5 group-aria-pressed:bg-white/15" style="width: 80%"></span>
<span class="relative text-sm font-semibold uppercase tracking-wide">Zone 3</span>
<span class="relative text-xl font-extrabold uppercase">Tempo</span>
<span class="relative text-lg font-semibold tabular-nums" data-zone-range>150–162</span>
</button>
</li>
<li>
<button type="button" data-zone="3" aria-pressed="true" class="group relative grid w-full grid-cols-[6rem_1fr_auto] items-center gap-4 overflow-hidden bg-ink-soft px-5 py-5 text-left transition hover:bg-white/10 aria-pressed:bg-volt">
<span class="absolute inset-y-0 left-0 bg-white/5 group-aria-pressed:bg-white/15" style="width: 90%"></span>
<span class="relative text-sm font-semibold uppercase tracking-wide">Zone 4</span>
<span class="relative text-xl font-extrabold uppercase">Threshold</span>
<span class="relative text-lg font-semibold tabular-nums" data-zone-range>162–175</span>
</button>
</li>
<li>
<button type="button" data-zone="4" aria-pressed="false" class="group relative grid w-full grid-cols-[6rem_1fr_auto] items-center gap-4 overflow-hidden bg-ink-soft px-5 py-5 text-left transition hover:bg-white/10 aria-pressed:bg-volt">
<span class="absolute inset-y-0 left-0 bg-white/5 group-aria-pressed:bg-white/15" style="width: 100%"></span>
<span class="relative text-sm font-semibold uppercase tracking-wide">Zone 5</span>
<span class="relative text-xl font-extrabold uppercase">Max effort</span>
<span class="relative text-lg font-semibold tabular-nums" data-zone-range>175–188</span>
</button>
</li>
</ul>
<p class="mt-6 flex items-center gap-3 border border-white/15 px-5 py-4" aria-live="polite"><i class="fa-solid fa-dumbbell text-volt" aria-hidden="true"></i><span>Try this: <strong data-zone-session>HIIT Training intervals</strong></span></p>
</div>
</div>
<script type="application/json" data-zone-data>[{"low":0.5,"high":0.6,"session":"Easy walk or Mobility Reset"},{"low":0.6,"high":0.7,"session":"Long steady ride or easy run"},{"low":0.7,"high":0.8,"session":"Strength Lab circuits"},{"low":0.8,"high":0.9,"session":"HIIT Training intervals"},{"low":0.9,"high":1.0,"session":"Sprint finishers, 20 seconds max"}]</script>
</section>
<!-- block:end demo -->
<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>
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é