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

Sabela Rooke Menú de navegación

A menú de navegación block extracted from the Sabela Rooke template, available in Tailwind CSS.

0 1
Sabela Rooke Menú de navegación preview
sabela-rooke.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>Sabela Rooke Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Sabela Rooke template, available in Tailwind CSS.">
  <meta name="keywords" content="Sabela Rooke, Tailwind CSS template, HTML website template, writer website template, author blog template, personal blog, essay blog, newsletter signup, book page, blog 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="Sabela Rooke | Tailwind CSS Blog Template">
  <meta property="og:description" content="A quiet Tailwind CSS template for writers and personal blogs: each entry has its own pastel page, a stacked date, a huge black title and one red serif word, with an archive, articles, an about page and a monthly letter.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Sabela Rooke template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Sabela Rooke | Tailwind CSS Blog Template">
  <meta name="twitter:description" content="A quiet Tailwind CSS template for writers and personal blogs: each entry has its own pastel page, a stacked date, a huge black title and one red serif word, with an archive, articles, an about page and a monthly letter.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Sabela Rooke 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=Bricolage+Grotesque:opsz,wght@12..96,800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: { DEFAULT: '#1b2220', soft: '#414a47' },
            paper: '#f6f1e7',
            rose: '#d83a56',
            sage: '#b9cbb7',
            salmon: '#f5b39c',
            butter: '#f0dca2',
            lilac: '#cec5de'
          },
          fontFamily: {
            heavy: ['"Bricolage Grotesque"', 'sans-serif'],
            display: ['"Playfair Display"', 'serif'],
            serif: ['Newsreader', 'serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .heavy { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: .86; }
    .red-word { font-family: "Playfair Display", serif; font-weight: 500; color: #d83a56; line-height: 1; letter-spacing: -.01em; }
    .small-caps { font-family: "Playfair Display", serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

    /* The cover takes the colour of the entry it shows. */
    .cover { background: var(--ground, #b9cbb7); transition: background-color .7s ease; }
    .slides { display: grid; }
    .slides > * { grid-area: 1 / 1; transition: opacity .6s ease, visibility .6s; }
    .slides > [aria-hidden="true"] { opacity: 0; visibility: hidden; }
    .entry-row { transition: background-color .35s ease; }
    .entry-row:hover, .entry-row:focus-within { background: var(--tint); }

    .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) { .cover, .slides > *, .entry-row { transition: none; } }
  </style>
</head>
<body class="bg-paper font-serif text-ink antialiased">
<!-- block:start navbar -->
  <header class="absolute inset-x-0 top-0 z-30">
    <div class="flex items-center justify-between gap-6 px-5 py-5 md:px-10 md:py-7">
      <a href="index.html" class="font-display text-xl font-medium md:text-2xl">Sabela Rooke</a>
      <nav aria-label="Main" class="hidden items-center gap-9 md:flex">
          <a href="writing.html" class="small-caps transition hover:text-rose">Writing</a>
          <a href="about.html" class="small-caps transition hover:text-rose">About</a>
          <a href="contact.html" class="small-caps transition hover:text-rose">Contact</a>
      </nav>
      <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="small-caps rounded-full border border-ink px-4 py-2 md:hidden">Menu</button>
    </div>
    <nav id="mobile-menu" aria-label="Mobile" class="hidden border-y border-ink bg-paper px-5 py-2 md:hidden">
        <a href="writing.html" class="heavy block py-3 text-4xl">Writing</a>
        <a href="about.html" class="heavy block py-3 text-4xl">About</a>
        <a href="contact.html" class="heavy block py-3 text-4xl">Contact</a>
    </nav>
  </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);
      });
    });

    // Cover: one entry at a time, and the page takes that entry's colour.
    document.querySelectorAll("[data-cover]").forEach((root) => {
      const slides = [...root.querySelectorAll("[data-slide]")];
      if (slides.length < 2) return;
      let current = 0;
      const show = (index) => {
        current = (index + slides.length) % slides.length;
        slides.forEach((slide, i) => {
          if (i === current) slide.removeAttribute("aria-hidden"); else slide.setAttribute("aria-hidden", "true");
        });
        root.style.setProperty("--ground", slides[current].dataset.ground);
        root.querySelector("[data-cover-count]").textContent = current + 1;
      };
      root.querySelector("[data-cover-prev]")?.addEventListener("click", () => show(current - 1));
      root.querySelector("[data-cover-next]")?.addEventListener("click", () => show(current + 1));
      root.addEventListener("keydown", (event) => {
        if (event.key === "ArrowLeft") show(current - 1);
        if (event.key === "ArrowRight") show(current + 1);
      });
    });

    // Entry filter.
    document.querySelectorAll("[data-entries]").forEach((root) => {
      const buttons = [...root.querySelectorAll("[data-entries-filter]")];
      buttons.forEach((button) => button.addEventListener("click", () => {
        const kind = button.dataset.entriesFilter;
        buttons.forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
        root.querySelectorAll("[data-kind]").forEach((row) => { row.hidden = kind !== "All" && row.dataset.kind !== kind; });
      }));
    });

    // First lines: step through the opening sentence of each entry.
    document.querySelectorAll("[data-lines]").forEach((root) => {
      const lines = JSON.parse(root.querySelector("[data-lines-data]").textContent);
      const text = root.querySelector("[data-lines-text]");
      const link = root.querySelector("[data-lines-link]");
      let current = 0;
      root.querySelector("[data-lines-next]").addEventListener("click", () => {
        current = (current + 1) % lines.length;
        const line = lines[current];
        text.textContent = `“${line.first}”`;
        link.textContent = line.title;
        link.href = `${line.slug}.html`;
        root.style.setProperty("--ground", line.ground);
      });
    });

    // Monthly letter sign-up.
    document.querySelectorAll("[data-letter]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        const input = form.querySelector('input[type="email"]');
        const ok = input.value.trim() !== "" && input.checkValidity();
        form.querySelector("[data-letter-error]").hidden = ok;
        form.querySelector("[data-letter-done]").hidden = !ok;
        if (ok) input.value = "";
      });
    });

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

Sabela Rooke screenshot

Blog

Sabela Rooke

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