Gratis
Menú de navegación
Ardentry Navbar
A navbar block extracted from the Ardentry template, available in Tailwind CSS.
0
17
A navbar block extracted from the Ardentry template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con 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>Ardentry Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Ardentry template, available in Tailwind CSS.">
<meta name="keywords" content="Ardentry, Tailwind CSS template, HTML website template, agency template, advertising agency website, creative studio, branding agency, portfolio case study, offices page, multi-step contact form">
<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="Ardentry | Tailwind CSS Agency Template">
<meta property="og:description" content="An editorial Tailwind CSS agency template with a cut-out collage hero, a draggable work rail and a hover services list.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Ardentry template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Ardentry | Tailwind CSS Agency Template">
<meta name="twitter:description" content="An editorial Tailwind CSS agency template with a cut-out collage hero, a draggable work rail and a hover services list.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Ardentry 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=Lexend:wght@300;400;500&family=Inter:wght@400;500&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { paper: '#f3f1ec', ink: { DEFAULT: '#1c1c1c', soft: '#2a2a2a' }, flame: { DEFAULT: '#e8461e', dark: '#c9370f', soft: '#fbe3da' } },
fontFamily: { sans: ['Inter', 'sans-serif'], display: ['Lexend', '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; }
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.blob { border-radius: 42% 58% 63% 37% / 46% 38% 62% 54%; }
.blob-img { transition: opacity .45s ease, transform .45s ease; }
.spin-slow { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.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; }
.spin-slow { animation: none; }
.blob-img { transition: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-paper font-sans text-ink antialiased">
<!-- block:start navbar -->
<header class="mx-auto max-w-7xl px-5 md:px-10">
<nav class="flex items-center justify-between gap-4 border-b border-ink/15 py-6" aria-label="Main">
<a href="index.html" class="flex items-center gap-2 font-display text-xl"><i class="fa-solid fa-asterisk text-flame" aria-hidden="true"></i>Ardentry <span class="font-light text-ink/50">studio</span></a>
<ul class="hidden items-center gap-8 text-sm md:flex">
<li><a href="work.html" class="transition text-ink/70 hover:text-flame">Work</a></li>
<li><a href="offices.html" class="transition text-ink/70 hover:text-flame">Offices</a></li>
<li><a href="about.html" class="transition text-ink/70 hover:text-flame">About us</a></li>
<li><a href="contact.html" class="transition text-ink/70 hover:text-flame">Contact</a></li>
</ul>
<div class="flex items-center gap-4">
<a href="contact.html" class="hidden text-flame transition hover:text-ink md:block" aria-label="Instagram"><i class="fa-brands fa-instagram text-lg" aria-hidden="true"></i></a>
<a href="contact.html" class="hidden text-flame transition hover:text-ink md:block" aria-label="Dribbble"><i class="fa-brands fa-dribbble text-lg" 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 border border-ink/20 md:hidden" aria-label="Open menu"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
</div>
</nav>
<div id="mobile-menu" class="hidden border-b border-ink/15 py-4 md:hidden">
<ul class="grid gap-1 font-display text-2xl">
<li><a href="index.html" aria-current="page" class="block py-2 text-flame">Home</a></li>
<li><a href="work.html" class="block py-2 hover:text-flame">Work</a></li>
<li><a href="offices.html" class="block py-2 hover:text-flame">Offices</a></li>
<li><a href="about.html" class="block py-2 hover:text-flame">About us</a></li>
<li><a href="contact.html" class="block py-2 hover:text-flame">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-rail-root]').forEach((root) => {
const rail = root.querySelector('[data-rail]');
const step = () => (rail.firstElementChild ? rail.firstElementChild.getBoundingClientRect().width + 24 : 300);
root.querySelector('[data-rail-prev]').addEventListener('click', () => rail.scrollBy({ left: -step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
root.querySelector('[data-rail-next]').addEventListener('click', () => rail.scrollBy({ left: step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
rail.addEventListener('keydown', (event) => { if (event.key === 'ArrowRight') rail.scrollBy({ left: step() }); if (event.key === 'ArrowLeft') rail.scrollBy({ left: -step() }); });
let startX = 0; let startScroll = 0; let dragging = false; let moved = false;
rail.addEventListener('pointerdown', (event) => { if (event.pointerType !== 'mouse') return; dragging = true; moved = false; startX = event.clientX; startScroll = rail.scrollLeft; rail.style.scrollSnapType = 'none'; });
addEventListener('pointermove', (event) => { if (!dragging) return; const dx = event.clientX - startX; if (Math.abs(dx) > 5) moved = true; rail.scrollLeft = startScroll - dx; });
addEventListener('pointerup', () => { if (!dragging) return; dragging = false; rail.style.scrollSnapType = ''; });
rail.addEventListener('click', (event) => { if (moved) { event.preventDefault(); moved = false; } }, true);
});
document.querySelectorAll('[data-services]').forEach((root) => {
const links = [...root.querySelectorAll('[data-service]')];
const activate = (index) => {
links.forEach((link, i) => {
const on = i === index;
link.querySelector('[data-service-name]').classList.toggle('text-flame', on);
link.querySelector('[data-service-name]').classList.toggle('text-ink/35', !on);
link.querySelector('[data-service-num]').classList.toggle('text-flame', on);
link.querySelector('[data-service-num]').classList.toggle('text-ink/40', !on);
link.parentElement.querySelector('[data-service-text]').classList.toggle('hidden', !on);
});
root.querySelectorAll('[data-service-photo]').forEach((photo, i) => { photo.classList.toggle('opacity-100', i === index); photo.classList.toggle('opacity-0', i !== index); photo.classList.toggle('rotate-6', i !== index); });
};
links.forEach((link, i) => { link.addEventListener('mouseenter', () => activate(i)); link.addEventListener('focus', () => activate(i)); });
});
document.querySelectorAll('[data-count]').forEach((el) => {
if (!watchMotion) return;
const target = Number(el.dataset.count);
const observer = new IntersectionObserver(([entry]) => {
if (!entry.isIntersecting) return;
observer.disconnect();
const start = performance.now();
const tick = (now) => { const t = Math.min(1, (now - start) / 700); el.textContent = Math.round(target * t); if (t < 1) requestAnimationFrame(tick); };
requestAnimationFrame(tick);
});
observer.observe(el);
});
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>
<!-- 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
Agencia
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é