Gratis
Menú de navegación
Oruna Navbar
A navbar block extracted from the Oruna template, available in Tailwind CSS.
0
10
A navbar 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 Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar 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 navbar -->
<header class="fixed inset-x-0 top-0 z-40 px-4 pt-4" data-navbar>
<nav class="mx-auto flex max-w-3xl items-center justify-between gap-4 rounded-full border border-white/40 bg-white/25 py-2 pl-4 pr-2 text-ink shadow-lg shadow-ink/5 backdrop-blur-xl transition-all duration-300 data-[scrolled=true]:max-w-2xl data-[scrolled=true]:border-white/10 data-[scrolled=true]:bg-ink/80 data-[scrolled=true]:text-white" aria-label="Main" data-nav-pill data-solid="false" data-scrolled="false">
<a href="index.html" class="flex items-center gap-2 text-base font-semibold"><svg viewBox="0 0 32 32" class="h-6 w-6" aria-hidden="true"><path d="M4 18C4 10 10 4 18 4c0 8-6 14-14 14Z" fill="#c8ee5c"/><path d="M28 14c0 8-6 14-14 14 0-8 6-14 14-14Z" fill="#a9d13b"/></svg>Oruna</a>
<ul class="hidden items-center gap-1 text-sm md:flex">
<li><a href="index.html" aria-current="page" class="rounded-full px-3.5 py-2 transition bg-ink/10 font-medium">Overview</a></li>
<li><a href="features.html" class="rounded-full px-3.5 py-2 transition opacity-70 hover:opacity-100">Features</a></li>
<li><a href="technology.html" class="rounded-full px-3.5 py-2 transition opacity-70 hover:opacity-100">Technology</a></li>
<li><a href="community.html" class="rounded-full px-3.5 py-2 transition opacity-70 hover:opacity-100">Community</a></li>
</ul>
<div class="flex items-center gap-2">
<a href="pricing.html" class="flex items-center gap-2 rounded-full bg-ink px-4 py-2.5 text-sm font-medium text-white ring-1 ring-white/10 transition hover:bg-lime hover:text-ink">Download<i class="fa-solid fa-arrow-down text-xs" aria-hidden="true"></i></a>
<button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="grid h-10 w-10 place-items-center rounded-full bg-ink/10 md:hidden" aria-label="Open menu"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
</div>
</nav>
<div id="mobile-menu" class="mx-auto mt-2 hidden max-w-3xl rounded-3xl bg-ink p-3 text-white shadow-2xl md:hidden">
<ul class="grid gap-1">
<li><a href="index.html" aria-current="page" class="block rounded-2xl px-4 py-3 bg-lime text-ink">Overview</a></li>
<li><a href="features.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Features</a></li>
<li><a href="technology.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Technology</a></li>
<li><a href="community.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Community</a></li>
<li><a href="programs.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Programs</a></li>
<li><a href="pricing.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Pricing</a></li>
<li><a href="contact.html" class="block rounded-2xl px-4 py-3 hover:bg-white/10">Contact</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;
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>
Salud y fitness
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.