Free
Demo
Oruna Demo
A demo block extracted from the Oruna template, available in Tailwind CSS.
0
6
A demo block extracted from the Oruna 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>Oruna Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo block extracted from the Oruna template, available in Tailwind CSS.">
<meta name="keywords" content="Oruna, Tailwind CSS template, HTML website template, fitness app template, AI coach, wellness app, running tracker, wearable app landing page, health app, app download 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="Oruna | Tailwind CSS Health & Fitness Template">
<meta property="og:description" content="A neon-lime Tailwind CSS fitness app template with an AI prompt hero, phone mockups, a live run-route replay and activity rhythm cards.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Oruna template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Oruna | Tailwind CSS Health & Fitness Template">
<meta name="twitter:description" content="A neon-lime Tailwind CSS fitness app template with an AI prompt hero, phone mockups, a live run-route replay and activity rhythm cards.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Oruna 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=Inter:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { lime: { DEFAULT: '#c8ee5c', deep: '#a9d13b', soft: '#e4f7a8' }, ink: { DEFAULT: '#0c0c0c', card: '#151515', line: '#262626' }, ember: '#ff8a3d', fog: '#d6d8d7' },
fontFamily: { sans: ['Inter', 'sans-serif'], serif: ['"Instrument Serif"', '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; }
.map-grid { background-image: linear-gradient(#1d1d1d 1px, transparent 1px), linear-gradient(90deg, #1d1d1d 1px, transparent 1px), linear-gradient(#232323 3px, transparent 3px), linear-gradient(90deg, #232323 3px, transparent 3px); background-size: 64px 64px, 64px 64px, 256px 256px, 256px 256px; transform: rotate(-14deg) scale(1.5); }
.glow { filter: drop-shadow(0 0 10px rgba(200, 238, 92, .75)); }
.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; }
::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="route" class="relative overflow-hidden bg-ink pb-24 pt-64 md:pt-80" data-route>
<div class="map-grid pointer-events-none absolute -inset-1/4 opacity-80" aria-hidden="true"></div>
<div class="pointer-events-none absolute inset-x-0 top-0 h-40 bg-gradient-to-b from-ink to-transparent" aria-hidden="true"></div>
<div class="pointer-events-none absolute inset-x-0 bottom-0 h-56 bg-gradient-to-t from-ink to-transparent" aria-hidden="true"></div>
<div class="relative mx-auto max-w-5xl px-5">
<div class="mx-auto flex w-fit flex-wrap justify-center gap-2" role="tablist" aria-label="Sample runs">
<button type="button" role="tab" data-route-tab="morning" aria-selected="true" class="rounded-full border border-white/15 px-4 py-2 text-sm text-white/70 transition hover:border-white/40 aria-selected:border-lime aria-selected:bg-lime aria-selected:text-ink">Morning loop</button>
<button type="button" role="tab" data-route-tab="river" aria-selected="false" class="rounded-full border border-white/15 px-4 py-2 text-sm text-white/70 transition hover:border-white/40 aria-selected:border-lime aria-selected:bg-lime aria-selected:text-ink">River tempo</button>
<button type="button" role="tab" data-route-tab="hills" aria-selected="false" class="rounded-full border border-white/15 px-4 py-2 text-sm text-white/70 transition hover:border-white/40 aria-selected:border-lime aria-selected:bg-lime aria-selected:text-ink">Hill repeats</button>
</div>
<svg viewBox="0 0 800 320" class="mx-auto mt-8 w-full max-w-3xl overflow-visible" role="img" aria-label="Route of the selected run drawn on a city map">
<defs><clipPath id="pin-clip"><circle r="18"/></clipPath></defs>
<path d="M70 250 L170 180 L270 250 L340 228 L420 110 L560 190 L510 250 L640 96" fill="none" stroke="#c8ee5c" stroke-width="7" stroke-linejoin="round" stroke-linecap="round" class="glow" data-route-path/>
<g data-route-start transform="translate(70 250)"><circle r="26" fill="#c8ee5c" opacity=".18"/><circle r="11" fill="#c8ee5c" class="glow"/></g>
<g data-route-pin transform="translate(640 96)"><circle r="40" fill="#c8ee5c" opacity=".15"/><circle r="23" fill="#c8ee5c"/><image href="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" x="-18" y="-18" width="36" height="36" clip-path="url(#pin-clip)" preserveAspectRatio="xMidYMid slice"/></g>
</svg>
<div class="mt-10 text-center">
<p class="font-serif text-7xl leading-none md:text-8xl" data-route-time>38:14</p>
<p class="mt-1 text-sm text-white/60">Duration</p>
<dl class="mx-auto mt-8 grid max-w-sm grid-cols-3 gap-4">
<div><dt class="text-xs text-white/50"><i class="fa-solid fa-bolt mb-2 block text-ember" aria-hidden="true"></i><span class="sr-only">Kcal</span></dt><dd class="font-serif text-4xl" data-route-stat="kcal">412</dd><dd class="text-xs text-white/50" aria-hidden="true">Kcal</dd></div>
<div><dt class="text-xs text-white/50"><i class="fa-solid fa-location-dot mb-2 block text-ember" aria-hidden="true"></i><span class="sr-only">Km</span></dt><dd class="font-serif text-4xl" data-route-stat="km">6,20</dd><dd class="text-xs text-white/50" aria-hidden="true">Km</dd></div>
<div><dt class="text-xs text-white/50"><i class="fa-solid fa-heart mb-2 block text-ember" aria-hidden="true"></i><span class="sr-only">Bpm</span></dt><dd class="font-serif text-4xl" data-route-stat="bpm">142</dd><dd class="text-xs text-white/50" aria-hidden="true">Bpm</dd></div>
</dl>
<button type="button" data-route-play class="mx-auto mt-10 flex items-center gap-2 rounded-full bg-lime px-5 py-3 text-sm font-medium text-ink shadow-[0_0_30px_rgba(200,238,92,.45)] transition hover:bg-lime-deep"><i class="fa-solid fa-play text-xs" aria-hidden="true"></i>Replay run</button>
</div>
</div>
<script type="application/json" data-route-data>{"morning":{"d":"M70 250 L170 180 L270 250 L340 228 L420 110 L560 190 L510 250 L640 96","pin":[640,96],"time":"38:14","kcal":412,"km":"6,20","bpm":142},"river":{"d":"M60 210 C160 110 240 290 360 200 S560 110 640 190 L740 120","pin":[740,120],"time":"52:40","kcal":598,"km":"9,45","bpm":156},"hills":{"d":"M100 262 L200 120 L260 240 L340 110 L420 240 L500 100 L580 240 L660 92","pin":[660,92],"time":"29:05","kcal":365,"km":"4,10","bpm":168}}</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-nav-pill]').forEach((pill) => {
const update = () => { pill.dataset.scrolled = String(pill.dataset.solid === 'true' || scrollY > 60); };
update();
addEventListener('scroll', update, { passive: true });
});
document.querySelectorAll('[data-coach]').forEach((root) => {
const data = JSON.parse(root.querySelector('[data-coach-data]').textContent);
const input = root.querySelector('[data-coach-input]');
const reply = root.querySelector('[data-coach-reply]');
const moods = [...root.querySelectorAll('[data-mood]')];
const say = (text) => { reply.hidden = false; reply.textContent = text; };
moods.forEach((mood) => mood.addEventListener('click', () => {
moods.forEach((other) => other.setAttribute('aria-pressed', String(other === mood)));
input.value = `I want to ${data[mood.dataset.mood].label.toLowerCase()} today.`;
say(data[mood.dataset.mood].reply);
}));
root.querySelector('[data-coach-form]').addEventListener('submit', (event) => {
event.preventDefault();
if (!input.value.trim()) { input.focus(); say('Tell me how you slept or how your body feels, and I will shape today around it.'); return; }
say(`Got it. Based on "${input.value.trim().slice(0, 60)}", I've drafted a 30-minute session and moved your hard intervals to Thursday.`);
});
});
document.querySelectorAll('[data-route]').forEach((root) => {
const routes = JSON.parse(root.querySelector('[data-route-data]').textContent);
const path = root.querySelector('[data-route-path]');
const start = root.querySelector('[data-route-start]');
const pin = root.querySelector('[data-route-pin]');
const time = root.querySelector('[data-route-time]');
const stats = Object.fromEntries([...root.querySelectorAll('[data-route-stat]')].map((el) => [el.dataset.routeStat, el]));
const tabs = [...root.querySelectorAll('[data-route-tab]')];
const seconds = (value) => value.split(':').reduce((total, part) => total * 60 + Number(part), 0);
const clock = (total) => `${String(Math.floor(total / 60)).padStart(2, '0')}:${String(Math.floor(total % 60)).padStart(2, '0')}`;
let current = tabs[0].dataset.routeTab;
let frame;
const render = (route, progress) => {
const length = path.getTotalLength();
path.style.strokeDasharray = length;
path.style.strokeDashoffset = length * (1 - progress);
const point = path.getPointAtLength(length * progress);
pin.setAttribute('transform', `translate(${point.x} ${point.y})`);
time.textContent = progress >= 1 ? route.time : clock(seconds(route.time) * progress);
stats.kcal.textContent = Math.round(route.kcal * progress);
stats.km.textContent = progress >= 1 ? route.km : (parseFloat(route.km.replace(',', '.')) * progress).toFixed(2).replace('.', ',');
stats.bpm.textContent = Math.round(90 + (route.bpm - 90) * progress);
};
const play = () => {
const route = routes[current];
path.setAttribute('d', route.d);
const first = path.getPointAtLength(0);
start.setAttribute('transform', `translate(${first.x} ${first.y})`);
cancelAnimationFrame(frame);
if (reducedMotion) { render(route, 1); return; }
const begin = performance.now();
const step = (now) => { const progress = Math.min((now - begin) / 2400, 1); render(route, progress); if (progress < 1) frame = requestAnimationFrame(step); };
frame = requestAnimationFrame(step);
};
tabs.forEach((tab) => tab.addEventListener('click', () => {
tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab)));
current = tab.dataset.routeTab;
play();
}));
root.querySelector('[data-route-play]').addEventListener('click', play);
});
document.querySelectorAll('[data-rhythm]').forEach((root) => {
const data = JSON.parse(root.querySelector('[data-rhythm-data]').textContent);
const tabs = [...root.querySelectorAll('[data-period]')];
tabs.forEach((tab) => tab.addEventListener('click', () => {
tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab)));
data[tab.dataset.period].forEach((item, index) => {
const card = root.querySelector(`[data-rhythm-card="${index}"]`);
card.querySelector('[data-rhythm-value]').textContent = item.value.toLocaleString('en-US');
card.querySelector('[data-rhythm-goal]').textContent = `/ ${item.goal}`;
const ticks = [...card.querySelector('[data-rhythm-ticks]').children];
const filled = Math.round(item.ratio * ticks.length);
ticks.forEach((tick, i) => {
tick.classList.toggle('bg-lime', i < filled - 1);
tick.classList.toggle('bg-ember', i === filled - 1);
tick.classList.toggle('shadow-[0_0_12px_#ff8a3d]', i === filled - 1);
tick.classList.toggle('bg-white/5', i >= filled);
});
});
}));
});
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>
<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>
Health & Fitness
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.