Gratis
Demo
Kernfield Demo
A demo block extracted from the Kernfield template, available in Tailwind CSS.
0
8
A demo 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 Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo 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 demo -->
<section id="planner" class="bg-char px-5 py-24 text-stone-pale md:px-12" data-planner>
<div class="mx-auto max-w-[1400px]">
<div class="grid gap-6 lg:grid-cols-2 lg:items-end">
<div>
<p class="flex items-center gap-2 text-sm font-semibold text-vermilion"><span class="h-1.5 w-1.5 rounded-full bg-vermilion" aria-hidden="true"></span>Term planner</p>
<h2 class="mt-4 text-4xl font-semibold tracking-tight md:text-6xl">Plan your spring week</h2>
</div>
<p class="text-lg text-stone-light">Pick up to three courses. We draw your week, flag any clashes and take 10% off a second course, 15% off a third.</p>
</div>
<div class="mt-12 grid gap-10 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]">
<fieldset>
<legend class="sr-only">Choose courses</legend>
<div class="grid gap-3 sm:grid-cols-2">
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="identity" data-plan-course data-name="Brand identity" data-day="Tue" data-time="18:30" data-fee="780" checked>
<span>
<span class="block font-semibold">Brand identity</span>
<span class="text-sm opacity-75">Tue · 18:30</span>
</span>
<span class="font-semibold">€780</span>
</label>
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="type" data-plan-course data-name="Type & lettering" data-day="Mon" data-time="18:30" data-fee="720" checked>
<span>
<span class="block font-semibold">Type & lettering</span>
<span class="text-sm opacity-75">Mon · 18:30</span>
</span>
<span class="font-semibold">€720</span>
</label>
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="ui" data-plan-course data-name="Interface design" data-day="Wed" data-time="18:30" data-fee="820" >
<span>
<span class="block font-semibold">Interface design</span>
<span class="text-sm opacity-75">Wed · 18:30</span>
</span>
<span class="font-semibold">€820</span>
</label>
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="illustration" data-plan-course data-name="Editorial illustration" data-day="Sat" data-time="10:00" data-fee="640" >
<span>
<span class="block font-semibold">Editorial illustration</span>
<span class="text-sm opacity-75">Sat · 10:00</span>
</span>
<span class="font-semibold">€640</span>
</label>
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="colour" data-plan-course data-name="Colour for designers" data-day="Tue" data-time="18:30" data-fee="380" >
<span>
<span class="block font-semibold">Colour for designers</span>
<span class="text-sm opacity-75">Tue · 18:30</span>
</span>
<span class="font-semibold">€380</span>
</label>
<label class="plan-chip flex cursor-pointer items-center justify-between gap-3 rounded-2xl border border-stone/40 px-4 py-4 transition hover:border-vermilion">
<input type="checkbox" class="sr-only" value="print" data-plan-course data-name="Print & bookbinding" data-day="Sat" data-time="14:00" data-fee="520" >
<span>
<span class="block font-semibold">Print & bookbinding</span>
<span class="text-sm opacity-75">Sat · 14:00</span>
</span>
<span class="font-semibold">€520</span>
</label>
</div>
<p class="mt-4 text-sm text-vermilion" data-plan-limit hidden role="status">Three courses is our limit per term. Untick one to swap.</p>
</fieldset>
<div class="min-w-0">
<div class="grid grid-cols-5 gap-2 text-center text-sm">
<div class="font-semibold text-stone-light">Mon</div>
<div class="font-semibold text-stone-light">Tue</div>
<div class="font-semibold text-stone-light">Wed</div>
<div class="font-semibold text-stone-light">Thu</div>
<div class="font-semibold text-stone-light">Sat</div>
<div class="flex min-h-[160px] flex-col gap-2 rounded-2xl bg-char-soft p-2" data-plan-day="Mon"></div>
<div class="flex min-h-[160px] flex-col gap-2 rounded-2xl bg-char-soft p-2" data-plan-day="Tue"></div>
<div class="flex min-h-[160px] flex-col gap-2 rounded-2xl bg-char-soft p-2" data-plan-day="Wed"></div>
<div class="flex min-h-[160px] flex-col gap-2 rounded-2xl bg-char-soft p-2" data-plan-day="Thu"></div>
<div class="flex min-h-[160px] flex-col gap-2 rounded-2xl bg-char-soft p-2" data-plan-day="Sat"></div>
</div>
<p class="mt-4 hidden rounded-2xl bg-vermilion/15 px-4 py-3 text-sm text-vermilion" data-plan-clash role="alert"></p>
<div class="mt-6 flex flex-wrap items-end justify-between gap-4 border-t border-stone/30 pt-6">
<div>
<p class="text-sm text-stone-light"><span data-plan-count>2</span> courses · <span data-plan-discount>10% off the second</span></p>
<p class="mt-1 text-5xl font-semibold tracking-tight text-vermilion">€<span data-plan-total>1428</span></p>
</div>
<a href="contact.html" class="rounded-full bg-vermilion px-6 py-3 font-semibold text-char-deep hover:bg-stone-pale">Apply with this plan</a>
</div>
</div>
</div>
</div>
</section>
<!-- block:end demo -->
<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é