Free
Navbar
Trichora Navbar
A navbar block extracted from the Trichora template, available in Tailwind CSS.
0
6
A navbar block extracted from the Trichora 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>Trichora Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Trichora template, available in Tailwind CSS.">
<meta name="keywords" content="Trichora, Tailwind CSS template, HTML website template, health template, hair health, scalp analysis, hair app, trichology, hair care routine, beauty tech">
<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="Trichora | Tailwind CSS Health Template">
<meta property="og:description" content="A warm Tailwind CSS scalp and hair analysis app template with a live analysis demo, density map, plan tabs and testimonials.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Trichora template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Trichora | Tailwind CSS Health Template">
<meta name="twitter:description" content="A warm Tailwind CSS scalp and hair analysis app template with a live analysis demo, density map, plan tabs and testimonials.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Trichora 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=Hanken+Grotesk:wght@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { bark: '#2a2016', coal: '#151310', umber: { DEFAULT: '#8d6a3f', light: '#b48c5c' }, linen: '#ece6dc', fog: '#f4f3f1' },
fontFamily: { sans: ['"Hanken Grotesk"', '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; } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.ticks { background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 14px); }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s 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-bark font-sans text-coal antialiased">
<!-- block:start navbar -->
<header id="top" class="relative z-30">
<nav class="grid grid-cols-3 items-center px-5 py-5 md:px-10" aria-label="Main">
<a href="index.html" class="w-fit"><svg viewBox="0 0 24 28" class="h-7 w-auto" aria-hidden="true"><path d="M12 2c0 6-4 8-4 13" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/><path d="M12 2c0 6 4 8 4 13" fill="none" stroke="#8d6a3f" stroke-width="2.5" stroke-linecap="round"/><circle cx="12" cy="21" r="5.5" fill="none" stroke="currentColor" stroke-width="2.5"/></svg><span class="sr-only">Trichora home</span></a>
<button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="mx-auto grid h-10 w-14 place-items-center" aria-label="Open menu"><span class="grid gap-1.5" aria-hidden="true"><span class="block h-px w-8 bg-coal"></span><span class="block h-px w-8 bg-coal"></span></span></button>
<a href="pricing.html" class="ml-auto bg-umber px-4 py-2 text-sm text-white transition hover:bg-coal">Sign up</a>
</nav>
<div id="mobile-menu" class="absolute inset-x-0 top-full hidden border-y border-coal/10 bg-white px-5 py-6 shadow-xl md:px-10">
<ul class="grid gap-1 md:grid-cols-6">
<li><a href="index.html" aria-current="page" class="block py-2 text-2xl transition hover:text-umber text-umber">Home</a></li>
<li><a href="platform.html" class="block py-2 text-2xl transition hover:text-umber ">Platform</a></li>
<li><a href="programs.html" class="block py-2 text-2xl transition hover:text-umber ">Programs</a></li>
<li><a href="insights.html" class="block py-2 text-2xl transition hover:text-umber ">Insights</a></li>
<li><a href="pricing.html" class="block py-2 text-2xl transition hover:text-umber ">Pricing</a></li>
<li><a href="contact.html" class="block py-2 text-2xl transition hover:text-umber ">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-steps]').forEach((root) => {
const steps = [...root.querySelectorAll('[data-step]')];
steps.forEach((step) => step.addEventListener('click', () => steps.forEach((other) => other.setAttribute('aria-pressed', String(other === step)))));
});
document.querySelectorAll('[data-demo]').forEach((root) => {
const readings = [...root.querySelectorAll('[data-reading-value]')];
const time = root.querySelector('[data-demo-time]');
const phase = root.querySelector('[data-demo-phase]');
const label = root.querySelector('[data-demo-label]');
const phases = ['Capturing image', 'Mapping follicles', 'Reading oil balance', 'Scoring density'];
let timer;
const show = (count) => readings.forEach((value, i) => { value.textContent = i < count ? value.dataset.value : '—'; value.parentElement.classList.toggle('border-umber-light', i < count); });
const finish = () => { clearInterval(timer); time.textContent = '03:00'; phase.textContent = 'Analysis complete'; label.textContent = 'Run again'; show(readings.length); };
root.querySelector('[data-demo-play]').addEventListener('click', () => {
clearInterval(timer);
show(0);
if (reducedMotion || navigator.webdriver) { finish(); return; }
let seconds = 0;
label.textContent = 'Analysing…';
timer = setInterval(() => {
seconds += 15;
const step = Math.min(3, Math.floor(seconds / 45));
time.textContent = `0${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`;
phase.textContent = phases[step];
show(Math.floor(seconds / 45));
if (seconds >= 180) finish();
}, 250);
});
});
document.querySelectorAll('[data-plans]').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 === 'ArrowDown') { event.preventDefault(); select(tabs[(i + 1) % tabs.length], true); }
if (event.key === 'ArrowUp') { event.preventDefault(); select(tabs[(i - 1 + tabs.length) % tabs.length], true); }
});
});
});
document.querySelectorAll('[data-quotes]').forEach((root) => {
const quotes = [...root.querySelectorAll('[data-quote]')];
let current = 0;
const show = (index) => {
current = (index + quotes.length) % quotes.length;
quotes.forEach((quote, i) => { quote.hidden = i !== current; });
root.querySelector('[data-quote-index]').textContent = current + 1;
};
root.querySelector('[data-quote-prev]').addEventListener('click', () => show(current - 1));
root.querySelector('[data-quote-next]').addEventListener('click', () => show(current + 1));
});
document.querySelectorAll('[data-faq-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;
button.querySelector('svg, i')?.classList.toggle('rotate-45', !open);
}));
document.querySelectorAll('[data-back-top]').forEach((link) => link.addEventListener('click', (event) => { event.preventDefault(); scrollTo({ top: 0, behavior: reducedMotion ? 'auto' : 'smooth' }); }));
document.querySelectorAll('[data-news-form]').forEach((form) => {
const status = form.parentElement.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 = `Subscribed. The next letter goes to ${email.value}.`;
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>
<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.
Tailwind CSS · HTML download