Gratis
Menú de navegación
Kernfield Navbar
A navbar block extracted from the Kernfield template, available in Tailwind CSS.
0
10
A navbar block extracted from the Kernfield 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>Kernfield Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Kernfield template, available in Tailwind CSS.">
<meta name="keywords" content="Kernfield, Tailwind CSS template, HTML website template, education template, design school website, art academy, short courses, course catalog, timetable planner, school admissions">
<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="Kernfield | Tailwind CSS Education Template">
<meta property="og:description" content="A bold Tailwind CSS template for design schools and short-course studios, with a course index, a term planner, tutors, talks and admissions.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Kernfield template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Kernfield | Tailwind CSS Education Template">
<meta name="twitter:description" content="A bold Tailwind CSS template for design schools and short-course studios, with a course index, a term planner, tutors, talks and admissions.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Kernfield 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:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
char: { DEFAULT: '#2a2826', deep: '#1c1a19', soft: '#3a3735' },
vermilion: { DEFAULT: '#ef5a2a', deep: '#c9431a', soft: '#fbd9cc' },
stone: { DEFAULT: '#8f8b85', light: '#b7b3ad', pale: '#e8e5e0' }
},
fontFamily: { sans: ['"Hanken Grotesk"', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.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; }
.grain { background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px); background-size: 4px 4px; }
.marquee-track { animation: marquee 45s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.flip { perspective: 1200px; }
.flip-inner { transition: transform .6s ease; transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.plan-chip:has(input:checked) { background: #ef5a2a; border-color: #ef5a2a; color: #1c1a19; }
.plan-chip:has(input:focus-visible) { outline: 2px solid #fbd9cc; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .marquee-track, .flip-inner { animation: none; transition: none; } }
</style>
</head>
<body class="bg-stone-pale font-sans text-char antialiased">
<!-- block:start navbar -->
<header class="relative z-30 border-t-4 border-vermilion bg-char text-stone-pale">
<nav class="mx-auto flex max-w-[1400px] items-center justify-between gap-6 px-5 py-5 md:px-12" aria-label="Main">
<a href="index.html" class="flex items-center gap-3 text-xl font-bold tracking-tight" aria-label="Kernfield home">
<span class="flex gap-1" aria-hidden="true"><span class="h-3 w-3 rounded-full bg-vermilion"></span><span class="h-3 w-3 rounded-full bg-stone-pale"></span></span>
Kernfield
</a>
<div class="hidden items-center gap-8 lg:flex">
<a href="courses.html" class="text-sm font-medium text-stone-light hover:text-vermilion">Courses</a>
<a href="brand-identity.html" class="text-sm font-medium text-stone-light hover:text-vermilion">Featured course</a>
<a href="talks.html" class="text-sm font-medium text-stone-light hover:text-vermilion">Talks</a>
<a href="about.html" class="text-sm font-medium text-stone-light hover:text-vermilion">About</a>
<a href="contact.html" class="text-sm font-medium text-stone-light hover:text-vermilion">Contact</a>
</div>
<a href="contact.html" class="hidden rounded-full bg-vermilion px-5 py-2.5 text-sm font-semibold text-char-deep hover:bg-stone-pale lg:inline-flex">Apply for spring</a>
<button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" aria-label="Open menu" class="grid h-11 w-11 place-items-center rounded-full border border-stone/50 lg:hidden">
<i class="fa-solid fa-bars" aria-hidden="true"></i>
</button>
</nav>
<div id="mobile-menu" class="hidden border-t border-stone/30 px-5 pb-6 lg:hidden">
<a href="index.html" aria-current="page" class="block py-3 font-semibold text-vermilion">Home</a>
<a href="courses.html" class="block border-t border-stone/20 py-3 font-medium">Courses</a>
<a href="brand-identity.html" class="block border-t border-stone/20 py-3 font-medium">Featured course</a>
<a href="talks.html" class="block border-t border-stone/20 py-3 font-medium">Talks</a>
<a href="about.html" class="block border-t border-stone/20 py-3 font-medium">About</a>
<a href="contact.html" class="block border-t border-stone/20 py-3 font-medium">Contact</a>
</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));
menu.classList.toggle('hidden', open);
});
});
(() => {
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));
})();
document.querySelectorAll('[data-countdown]').forEach((el) => {
const days = Math.ceil((new Date(el.dataset.countdown) - new Date()) / 86400000);
if (days > 0) el.textContent = `${days} ${days === 1 ? 'day' : 'days'} left`;
});
document.querySelectorAll('[data-hover-list]').forEach((root) => {
const img = root.querySelector('[data-hover-img]');
if (!img || !matchMedia('(hover: hover)').matches) return;
root.querySelectorAll('[data-hover-item]').forEach((item) => {
item.addEventListener('mouseenter', () => { img.src = item.dataset.src; img.classList.add('opacity-100'); });
item.addEventListener('mouseleave', () => img.classList.remove('opacity-100'));
item.addEventListener('mousemove', (event) => { img.style.transform = `translate(${event.clientX + 24}px, ${event.clientY - 110}px)`; });
});
});
document.querySelectorAll('[data-planner]').forEach((root) => {
const inputs = [...root.querySelectorAll('[data-plan-course]')];
const limit = root.querySelector('[data-plan-limit]');
const clash = root.querySelector('[data-plan-clash]');
const discounts = [0, 0.1, 0.15];
const render = () => {
const chosen = inputs.filter((input) => input.checked);
root.querySelectorAll('[data-plan-day]').forEach((day) => { day.innerHTML = ''; });
chosen.forEach((input) => {
const cell = root.querySelector(`[data-plan-day="${input.dataset.day}"]`);
const block = document.createElement('div');
block.className = 'rounded-xl bg-vermilion px-1.5 py-2 text-left text-[10px] font-semibold leading-tight text-char-deep [overflow-wrap:anywhere] sm:px-2 sm:py-3 sm:text-xs';
block.innerHTML = `<span class="block opacity-70">${input.dataset.time}</span>${input.dataset.name}`;
cell?.appendChild(block);
});
const slots = chosen.map((input) => `${input.dataset.day} ${input.dataset.time}`);
const clashes = slots.filter((slot, i) => slots.indexOf(slot) !== i);
clash.classList.toggle('hidden', !clashes.length);
clash.textContent = clashes.length ? `Two courses meet on ${clashes[0].replace(' ', ' at ')}. Pick one, or ask us about the Thursday group.` : '';
const fees = chosen.map((input) => Number(input.dataset.fee)).sort((a, b) => b - a);
const total = fees.reduce((sum, fee, i) => sum + fee * (1 - (discounts[i] || 0)), 0);
root.querySelector('[data-plan-total]').textContent = Math.round(total);
root.querySelector('[data-plan-count]').textContent = chosen.length;
root.querySelector('[data-plan-discount]').textContent = ['no discount yet', 'no discount yet', '10% off the second', '10% + 15% off'][chosen.length];
};
inputs.forEach((input) => input.addEventListener('change', () => {
if (inputs.filter((other) => other.checked).length > 3) {
input.checked = false;
limit.hidden = false;
return;
}
limit.hidden = true;
render();
}));
render();
});
document.querySelectorAll('[data-flip]').forEach((card) => {
card.addEventListener('click', () => card.setAttribute('aria-pressed', String(card.getAttribute('aria-pressed') !== 'true')));
});
</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>
Educación
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é