Free
Navbar
Thrivera Navbar
A navbar block extracted from the Thrivera template, available in Tailwind CSS.
0
15
A navbar block extracted from the Thrivera template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with 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>Thrivera Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Thrivera template, available in Tailwind CSS.">
<meta name="keywords" content="Thrivera, Tailwind CSS template, HTML website template, mental health template, wellbeing consultancy, workplace mental health, therapy practice, nonprofit health program, evidence-based care">
<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="Thrivera | Tailwind CSS Health & Fitness Template">
<meta property="og:description" content="A dark, editorial Tailwind CSS mental health template with an oversized photo headline, audience tabs, impact stats and a discovery call booking flow.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Thrivera template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Thrivera | Tailwind CSS Health & Fitness Template">
<meta name="twitter:description" content="A dark, editorial Tailwind CSS mental health template with an oversized photo headline, audience tabs, impact stats and a discovery call booking flow.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Thrivera 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=Caveat:wght@500;600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { coal: '#2d2829', ash: '#3a3435', cream: '#f7f1f5', lilac: '#f2dff7', cobalt: '#3d4ed8' },
fontFamily: { sans: ['"Hanken Grotesk"', 'sans-serif'], hand: ['Caveat', 'cursive'] }
}
}
}
</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; }
.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-coal font-sans text-cream antialiased">
<!-- block:start navbar -->
<header class="relative z-40">
<nav class="mx-auto flex max-w-[1440px] items-center justify-between gap-4 px-5 py-5 md:px-8" aria-label="Main">
<div class="flex items-center gap-8">
<a href="index.html" class="text-3xl font-bold tracking-tight md:text-4xl">thrivera</a>
<a href="approach.html" class="hidden items-center gap-2 text-lg text-cream/80 underline underline-offset-4 hover:text-cream md:inline-flex"><i class="fa-solid fa-arrow-left text-sm" aria-hidden="true"></i>Read our 2025 impact report</a>
</div>
<button type="button" data-menu-toggle aria-controls="site-menu" aria-expanded="false" aria-label="Open menu" class="group flex h-12 w-14 flex-col items-center justify-center gap-1.5 rounded-full hover:bg-ash lg:absolute lg:left-1/2 lg:-translate-x-1/2">
<span class="h-0.5 w-12 rounded-full bg-cream transition group-aria-expanded:translate-y-1 group-aria-expanded:rotate-12"></span>
<span class="h-0.5 w-8 rounded-full bg-cream transition group-aria-expanded:-translate-y-1 group-aria-expanded:-rotate-12 group-aria-expanded:w-12"></span>
</button>
<a href="contact.html" class="hidden rounded-md bg-lilac px-6 py-3.5 text-lg font-medium text-coal transition hover:bg-white sm:inline-flex">Book a Discovery Call</a>
</nav>
<div id="site-menu" class="absolute inset-x-0 top-full hidden border-y border-cream/10 bg-ash shadow-2xl">
<div class="mx-auto grid max-w-[1440px] gap-8 px-5 py-10 md:grid-cols-[2fr_1fr] md:px-8">
<ul class="grid gap-1 text-4xl font-semibold tracking-tight md:text-5xl">
<li><a href="index.html" aria-current="page" class="inline-flex items-center gap-4 py-1 text-cream"><span class="h-3 w-3 rounded-full bg-cobalt"></span>Home</a></li>
<li><a href="programs.html" class="inline-flex items-center gap-4 py-1 text-cream/50 hover:text-cream">Programs</a></li>
<li><a href="approach.html" class="inline-flex items-center gap-4 py-1 text-cream/50 hover:text-cream">Our Approach</a></li>
<li><a href="pricing.html" class="inline-flex items-center gap-4 py-1 text-cream/50 hover:text-cream">Pricing</a></li>
<li><a href="contact.html" class="inline-flex items-center gap-4 py-1 text-cream/50 hover:text-cream">Contact</a></li>
</ul>
<div class="flex flex-col justify-end gap-4 text-lg text-cream/70">
<p class="font-hand text-3xl text-lilac">Not sure where to start?</p>
<p>Talk to a program lead for 30 minutes. No slides, no sales pitch.</p>
<a href="contact.html" class="inline-flex w-fit items-center gap-2 rounded-md bg-lilac px-6 py-3.5 font-medium text-coal hover:bg-white">Book a Discovery Call<i class="fa-solid fa-arrow-right text-sm" aria-hidden="true"></i></a>
</div>
</div>
</div>
</header>
<!-- block:end navbar -->
<script>
document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
const menu = document.getElementById(button.getAttribute('aria-controls'));
if (!menu) return;
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
button.setAttribute('aria-expanded', String(!open));
button.setAttribute('aria-label', open ? 'Open menu' : 'Close menu');
menu.classList.toggle('hidden', open);
});
});
document.querySelectorAll('[data-tabs]').forEach((tablist) => {
const tabs = [...tablist.querySelectorAll('[role="tab"]')];
const select = (tab) => {
tabs.forEach((other) => {
const active = other === tab;
other.setAttribute('aria-selected', String(active));
other.tabIndex = active ? 0 : -1;
document.getElementById(other.getAttribute('aria-controls')).classList.toggle('hidden', !active);
});
};
tabs.forEach((tab, index) => {
tab.addEventListener('click', () => select(tab));
tab.addEventListener('keydown', (event) => {
const step = { ArrowRight: 1, ArrowLeft: -1 }[event.key];
if (!step) return;
const next = tabs[(index + step + tabs.length) % tabs.length];
next.focus();
select(next);
});
});
});
document.querySelectorAll('[data-carousel]').forEach((carousel) => {
const track = carousel.querySelector('[data-carousel-track]');
if (!track) return;
const slides = [...track.children];
const dots = carousel.querySelector('[data-carousel-dots]');
let index = 0;
const perView = () => Math.max(1, Math.round(track.clientWidth / slides[0].clientWidth));
const maxIndex = () => Math.max(0, slides.length - perView());
const render = () => {
track.style.transform = `translateX(-${index * slides[0].clientWidth}px)`;
dots?.querySelectorAll('button').forEach((dot, i) => dot.setAttribute('aria-current', String(i === index)));
};
const go = (next) => { const max = maxIndex(); index = next > max ? 0 : next < 0 ? max : next; render(); };
const buildDots = () => {
if (!dots) return;
dots.innerHTML = '';
for (let i = 0; i <= maxIndex(); i++) {
const dot = document.createElement('button');
dot.type = 'button';
dot.className = 'h-2.5 w-2.5 rounded-full bg-current opacity-30 aria-[current=true]:w-8 aria-[current=true]:opacity-100 transition-all';
dot.setAttribute('aria-label', `Go to review ${i + 1}`);
dot.addEventListener('click', () => go(i));
dots.append(dot);
}
};
carousel.querySelector('[data-carousel-prev]')?.addEventListener('click', () => go(index - 1));
carousel.querySelector('[data-carousel-next]')?.addEventListener('click', () => go(index + 1));
addEventListener('resize', () => { buildDots(); go(Math.min(index, maxIndex())); });
buildDots();
render();
});
document.querySelectorAll('[data-billing-toggle]').forEach((toggle) => {
toggle.addEventListener('click', () => {
const yearly = toggle.getAttribute('aria-checked') !== 'true';
toggle.setAttribute('aria-checked', String(yearly));
document.querySelectorAll('[data-price-monthly]').forEach((price) => {
price.textContent = `$${yearly ? price.dataset.priceYearly : price.dataset.priceMonthly}`;
});
document.querySelectorAll('[data-billing-label]').forEach((label) => { label.textContent = yearly ? '/ month, billed yearly' : '/ month'; });
});
});
document.querySelectorAll('[data-filter-group]').forEach((group) => {
const items = group.parentElement.querySelectorAll('[data-filter-items] [data-category]');
const activeClasses = ['bg-cream', 'text-coal'];
group.addEventListener('click', (event) => {
const button = event.target.closest('[data-filter]');
if (!button) return;
const filter = button.dataset.filter;
group.querySelectorAll('[data-filter]').forEach((chip) => {
const active = chip === button;
chip.setAttribute('aria-pressed', String(active));
activeClasses.forEach((cls) => chip.classList.toggle(cls, active));
});
items.forEach((item) => { item.hidden = !(filter === 'all' || item.dataset.category.split(' ').includes(filter)); });
});
});
document.querySelectorAll('[data-contact-form]').forEach((form) => {
form.addEventListener('submit', (event) => {
event.preventDefault();
const status = form.querySelector('[data-form-status]');
if (!form.checkValidity()) {
status.textContent = form.dataset.error;
return;
}
status.textContent = form.dataset.success;
form.reset();
});
});
document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });
(() => {
const counters = document.querySelectorAll('[data-count-to]');
if (!counters.length || navigator.webdriver || matchMedia('(prefers-reduced-motion: reduce)').matches || !('IntersectionObserver' in window)) return;
const observer = new IntersectionObserver((entries) => {
entries.forEach(({ isIntersecting, target }) => {
if (!isIntersecting) return;
observer.unobserve(target);
const end = Number(target.dataset.countTo);
const suffix = target.dataset.countSuffix || '';
const start = performance.now();
const tick = (now) => {
const progress = Math.min((now - start) / 1200, 1);
target.textContent = Math.round(end * progress).toLocaleString() + suffix;
if (progress < 1) requestAnimationFrame(tick);
};
requestAnimationFrame(tick);
});
});
counters.forEach((counter) => observer.observe(counter));
})();
(() => {
const items = document.querySelectorAll('[data-reveal]');
const skip = navigator.webdriver || !('IntersectionObserver' in window) || matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!items.length || skip) return;
document.documentElement.classList.add('reveal-ready');
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.classList.add('is-visible');
observer.unobserve(entry.target);
});
}, { rootMargin: '0px 0px -10% 0px' });
items.forEach((item) => observer.observe(item));
})();
</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
Health & Fitness
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.