Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Llamada a la acción

Linnet Call to action

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

0 10
Linnet Call to action preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

linnet.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>Linnet Call to action | Tailwind CSS UI Block</title>
  <meta name="description" content="A call to action block extracted from the Linnet template, available in Tailwind CSS.">
  <meta name="keywords" content="Linnet, Tailwind CSS template, HTML website template, restaurant template, tasting menu website, fine dining template, restaurant menu page, table reservation form, wine pairing, food and restaurant template">
  <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="Linnet | Tailwind CSS Restaurant Template">
  <meta property="og:description" content="A calm Tailwind CSS template for seasonal restaurants, with a draped linen hero in sage green, a five-course menu with a wine pairing, a full menu with dietary filters and a table reservation page.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Linnet template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Linnet | Tailwind CSS Restaurant Template">
  <meta name="twitter:description" content="A calm Tailwind CSS template for seasonal restaurants, with a draped linen hero in sage green, a five-course menu with a wine pairing, a full menu with dietary filters and a table reservation page.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Linnet 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=Jost:wght@300;400;500&family=Marcellus&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            sage: { DEFAULT: '#93a39b', deep: '#7b8b84', light: '#b9c7bf', mist: '#d3ddd5' },
            linen: { DEFAULT: '#e8eee5', light: '#f4f7f0' },
            ink: { DEFAULT: '#1b1f1c', soft: '#38423c', mute: '#55625b' },
            clay: '#8f4f33'
          },
          fontFamily: {
            display: ['Marcellus', 'serif'],
            sans: ['Jost', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .display { font-family: Marcellus, serif; text-transform: uppercase; letter-spacing: .16em; line-height: 1.05; }
    .label { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
    .half-link { position: relative; display: inline-block; padding-bottom: .55rem; }
    .half-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 46%; background: currentColor; transition: width .4s ease; }
    .half-link:hover::after, .half-link:focus-visible::after { width: 100%; }
    .sage-sky { background: linear-gradient(135deg, #7d8d86 0%, #94a49c 45%, #c2cfc7 100%); }
    .dome { border-radius: 999px 999px 0 0; }
    .cloth { animation: sway 11s ease-in-out infinite alternate; transform-origin: 20% 100%; }
    @keyframes sway { from { transform: rotate(-1.2deg) scaleY(1); } to { transform: rotate(1.4deg) scaleY(1.03); } }
    .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) { .cloth { animation: none; } .half-link::after { transition: none; } }
  </style>
</head>
<body class="bg-linen font-sans font-light text-ink antialiased">
<!-- block:start cta -->
  <section class="sage-sky relative overflow-hidden px-5 py-24 text-center md:py-40">
    <svg class="pointer-events-none absolute -right-[30%] top-0 h-full w-[110%] -scale-x-100 opacity-80 md:-right-[6%] md:w-[52%]" viewBox="0 0 1000 900" preserveAspectRatio="none" aria-hidden="true">
      <path d="M-40 430C120 310 250 40 480 40c230 0 330 260 342 480 7 130 16 250-24 340-20-52-18-112-26-162C600 606 300 664-40 830Z" fill="#e3ebdf"/>
    </svg>
    <div class="relative" data-reveal>
      <p class="label">Wednesday to Sunday</p>
      <h2 class="display mt-8 text-[clamp(2rem,8vw,7rem)]">Come hungry</h2>
      <a href="reservations.html" class="label half-link mt-10">Reserve a table</a>
    </div>
  </section>
  <!-- block:end cta -->
<script>
    (() => {
      const menu = document.getElementById("site-menu");
      const toggle = document.querySelector("[data-menu-toggle]");
      if (!menu || !toggle) return;
      const setOpen = (open) => {
        toggle.setAttribute("aria-expanded", String(open));
        menu.classList.toggle("hidden", !open);
        document.body.style.overflow = open ? "hidden" : "";
        if (open) menu.querySelector("[data-menu-close]")?.focus(); else toggle.focus();
      };
      toggle.addEventListener("click", () => setOpen(toggle.getAttribute("aria-expanded") !== "true"));
      menu.querySelector("[data-menu-close]")?.addEventListener("click", () => setOpen(false));
      document.addEventListener("keydown", (event) => { if (event.key === "Escape" && toggle.getAttribute("aria-expanded") === "true") setOpen(false); });
    })();

    document.querySelectorAll("[data-switcher]").forEach((root) => {
      root.addEventListener("click", (event) => {
        const button = event.target.closest("[data-switch]");
        if (!button) return;
        root.querySelectorAll("[data-switch]").forEach((b) => b.setAttribute("aria-selected", String(b === button)));
        root.querySelectorAll("[data-switch-panel]").forEach((panel) => { panel.hidden = panel.dataset.switchPanel !== button.dataset.switch; });
      });
    });

    document.querySelectorAll("[data-courses]").forEach((root) => {
      const tabs = [...root.querySelectorAll("[data-course]")];
      const toggle = root.querySelector("[data-pairing-toggle]");
      let current = 0;
      const show = (index) => {
        current = (index + tabs.length) % tabs.length;
        root.querySelectorAll("[data-course-panel]").forEach((panel) => { panel.hidden = Number(panel.dataset.coursePanel) !== current; });
        tabs.forEach((tab, i) => {
          tab.setAttribute("aria-selected", String(i === current));
          tab.classList.toggle("border-ink", i === current);
          tab.classList.toggle("border-ink/40", i !== current);
        });
        root.querySelector("[data-course-number]").textContent = current + 1;
      };
      tabs.forEach((tab, i) => tab.addEventListener("click", () => show(i)));
      root.querySelector("[data-course-prev]")?.addEventListener("click", () => show(current - 1));
      root.querySelector("[data-course-next]")?.addEventListener("click", () => show(current + 1));
      toggle?.addEventListener("click", () => {
        const paired = toggle.getAttribute("aria-checked") !== "true";
        toggle.setAttribute("aria-checked", String(paired));
        root.querySelectorAll("[data-pairing-line]").forEach((line) => { line.hidden = !paired; });
        root.querySelector("[data-course-total]").textContent = Number(root.dataset.menuPrice) + (paired ? Number(root.dataset.pairingPrice) : 0);
      });
    });

    document.querySelectorAll("[data-hours]").forEach((list) => {
      const today = list.querySelector(`[data-day="${new Date().getDay()}"]`);
      if (!today) return;
      today.classList.add("font-normal");
      today.querySelector("span")?.insertAdjacentHTML("beforeend", ' <span class="label ml-3 align-middle text-clay">Today</span>');
    });

    (() => {
      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));
    })();
  </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>

De esta plantilla

Linnet screenshot Premium

Comida y restaurantes

Linnet

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado