Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Call to action

Kernfield Call to action

A call to action block extracted from the Kernfield template, available in Tailwind CSS.

0 7
Kernfield Call to action preview
kernfield.html
<!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 Call to action | Tailwind CSS UI Block</title>
  <meta name="description" content="A call to action 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 cta -->
    <section id="apply" class="grain relative overflow-hidden bg-stone text-char-deep">
      <div class="mx-auto max-w-[1400px] px-5 pt-12 md:px-12">
        <div class="flex items-center justify-between" aria-hidden="true">
          <span class="flex gap-3"><span class="h-6 w-6 rounded-full bg-char-deep"></span><span class="h-6 w-6 rounded-full bg-char-deep"></span></span>
          <span class="h-6 w-6 rounded-full bg-char-deep"></span>
          <span class="flex gap-3"><span class="h-6 w-6 rounded-full bg-char-deep"></span><span class="h-6 w-6 rounded-full bg-char-deep"></span></span>
        </div>
        <div class="mt-14 grid gap-8 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)] lg:items-end">
          <h2 class="text-5xl font-semibold leading-[0.95] tracking-tight md:text-7xl">Spring term<br>applications open</h2>
          <div>
            <p class="text-lg">Twelve-week courses start on 7 April. Places are first come, first served, and we keep four bursary seats on every course.</p>
            <p class="mt-4 text-sm font-semibold uppercase tracking-widest">Closes 28 March · <span data-countdown="2027-03-28">a few weeks left</span></p>
            <a href="contact.html" class="mt-6 inline-flex items-center gap-3 rounded-full bg-char-deep px-6 py-3 font-semibold text-stone-pale hover:bg-vermilion hover:text-char-deep">Start an application <i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
          </div>
        </div>
        <hr class="mt-14 border-char-deep/40">
        <div class="mt-12 grid grid-cols-2 gap-4 md:grid-cols-4 md:gap-8">
            <img src="https://images.unsplash.com/photo-1611532736597-de2d4265fba3?auto=format&fit=crop&w=700&q=80" alt="A tablet showing a large letter A beside a red type specimen book" class="aspect-[2/1] w-full rounded-t-full object-cover grayscale transition duration-500 hover:grayscale-0">
            <img src="https://images.unsplash.com/photo-1561070791-2526d30994b5?auto=format&fit=crop&w=700&q=80" alt="Rows of colour swatches spread across a desk" class="aspect-[2/1] w-full rounded-t-full object-cover grayscale transition duration-500 hover:grayscale-0">
            <img src="https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?auto=format&fit=crop&w=700&q=80" alt="Hand sketching interface layouts on a tablet" class="aspect-[2/1] w-full rounded-t-full object-cover grayscale transition duration-500 hover:grayscale-0">
            <img src="https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&w=700&q=80" alt="Well-used paintbrushes covered in colour" class="aspect-[2/1] w-full rounded-t-full object-cover grayscale transition duration-500 hover:grayscale-0">
        </div>
      </div>
    </section>
    <!-- block:end cta -->
<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>

From this template

Kernfield screenshot

Education

Kernfield

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access