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

Graindale Call to action

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

0 2
Graindale Call to action preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

graindale.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>Graindale Call to action | Tailwind CSS UI Block</title>
  <meta name="description" content="A call to action block extracted from the Graindale template, available in Tailwind CSS.">
  <meta name="keywords" content="Graindale, Tailwind CSS template, HTML website template, education template, photography school website, film course template, evening classes, weekly timetable, course detail page, enrolment 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="Graindale | Tailwind CSS Education Template">
  <meta property="og:description" content="An editorial Tailwind CSS template for photography schools and evening classes, with a side rail wordmark, bold uppercase titles, a weekly timetable, a tutor spotlight, a student gallery, a course page and an enrolment form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Graindale template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Graindale | Tailwind CSS Education Template">
  <meta name="twitter:description" content="An editorial Tailwind CSS template for photography schools and evening classes, with a side rail wordmark, bold uppercase titles, a weekly timetable, a tutor spotlight, a student gallery, a course page and an enrolment form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Graindale 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=Figtree:wght@400;500;600&family=League+Spartan:wght@600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            fog: '#e8e7e5',
            chalk: '#f5f4f2',
            ink: '#1c1c1a',
            rust: '#b4532a'
          },
          fontFamily: {
            sans: ['Figtree', 'sans-serif'],
            display: ['"League Spartan"', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .title { font-family: 'League Spartan', sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .005em; }
    .dateline { display: flex; align-items: center; gap: .8rem; font-size: 1.2rem; }
    .dateline::before { content: ""; height: 1rem; width: 1rem; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 9999px; }
    .disc { display: inline-flex; height: 2.9rem; width: 2.9rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: #1c1c1a; color: #fff; transition: background-color .2s ease, transform .2s ease; }
    a:hover > .disc, button:hover > .disc, .disc:hover { background: #b4532a; }
    .caps { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
    .dropcap::first-letter { float: left; margin: .06em .1em 0 0; font-family: 'League Spartan', sans-serif; font-size: 3.7em; font-weight: 700; line-height: .78; text-transform: uppercase; }
    .field { width: 100%; border: 0; border-bottom: 1.5px solid #1c1c1a; border-radius: 0; background: transparent; padding: .7rem 0; color: #1c1c1a; outline: none; }
    .field:focus { border-color: #b4532a; box-shadow: 0 1.5px 0 #b4532a; }
    .diamond { display: flex; height: 7.5rem; width: 7.5rem; transform: rotate(45deg); align-items: center; justify-content: center; background: #1c1c1a; color: #fff; }
    .diamond > span { transform: rotate(-45deg); text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
    @media (min-width: 1024px) { .rail-mark { writing-mode: vertical-rl; transform: rotate(180deg); } }
    dialog::backdrop { background: rgba(28, 28, 26, .85); }
    .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; }
  </style>
</head>
<body class="bg-fog font-sans text-ink antialiased">
<!-- block:start cta -->
    <section id="open-evening" class="grid border-t border-ink lg:grid-cols-2">
      <img src="https://images.unsplash.com/photo-1674567634023-8a47390f24ee?auto=format&amp;fit=crop&amp;w=1200&amp;q=80" alt="Person standing beside a camera on a tripod at dusk" class="aspect-[4/3] h-full w-full object-cover">
      <div class="flex flex-col justify-center bg-chalk px-6 py-14 md:px-14 md:py-20">
        <p class="dateline">Every Thursday, 6 to 8pm</p>
        <h2 class="title mt-4 text-4xl md:text-6xl">Come to the open evening</h2>
        <p class="mt-6 max-w-md text-lg leading-relaxed text-ink/80">See the studios, hold the cameras and meet the tutors. It is free, there is tea, and nobody will ask you to sign anything.</p>
        <p class="mt-9 flex flex-wrap items-center gap-x-8 gap-y-4">
          <a href="contact.html" class="caps inline-flex items-center gap-4">Save a place<span class="disc"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></span></a>
          <a href="tel:+441174960155" class="text-lg font-semibold underline underline-offset-4 hover:text-rust">0117 496 0155</a>
        </p>
      </div>
    </section>
    <!-- block:end cta -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      const set = (open) => {
        button.setAttribute("aria-expanded", String(open));
        menu.classList.toggle("hidden", !open);
      };
      button.addEventListener("click", () => set(button.getAttribute("aria-expanded") !== "true"));
      document.addEventListener("keydown", (event) => { if (event.key === "Escape") set(false); });
      document.addEventListener("click", (event) => { if (!event.target.closest("header")) set(false); });
    });

    (() => {
      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('[role="tablist"]').forEach((list) => {
      const tabs = [...list.querySelectorAll('[role="tab"]')];
      const select = (tab) => {
        tabs.forEach((item) => {
          const active = item === tab;
          item.setAttribute("aria-selected", String(active));
          item.tabIndex = active ? 0 : -1;
          const panel = document.getElementById(item.getAttribute("aria-controls"));
          if (panel) panel.hidden = !active;
        });
      };
      tabs.forEach((tab, index) => {
        tab.addEventListener("click", () => select(tab));
        tab.addEventListener("keydown", (event) => {
          if (event.key !== "ArrowRight" && event.key !== "ArrowLeft") return;
          const next = tabs[(index + (event.key === "ArrowRight" ? 1 : -1) + tabs.length) % tabs.length];
          next.focus();
          select(next);
        });
      });
      const today = tabs.find((tab) => Number(tab.dataset.weekday) === new Date().getDay());
      if (tabs.length) select((!navigator.webdriver && today) || tabs.find((tab) => tab.getAttribute("aria-selected") === "true") || tabs[0]);
    });

    document.querySelectorAll("[data-lightbox-root]").forEach((root) => {
      const dialog = root.querySelector("dialog");
      if (!dialog || !dialog.showModal) return;
      root.querySelectorAll("[data-lightbox]").forEach((button) => {
        button.addEventListener("click", () => {
          const image = dialog.querySelector("[data-lightbox-image]");
          image.src = button.dataset.lightbox;
          image.alt = button.querySelector("img").alt;
          dialog.querySelector("[data-lightbox-caption]").textContent = button.dataset.caption;
          dialog.showModal();
        });
      });
      dialog.addEventListener("click", (event) => { if (event.target === dialog) dialog.close(); });
    });

    document.querySelectorAll("[data-signup], [data-enrol]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        if (!form.reportValidity()) return;
        form.querySelector("[role=status]").hidden = false;
      });
    });
  </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>

From this template

Graindale screenshot Premium

Education

Graindale

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