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

Encinar Menú de navegación

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

0 0
Encinar Menú de navegación preview
encinar.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>Encinar Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Encinar template, available in Tailwind CSS.">
  <meta name="keywords" content="Encinar, Tailwind CSS template, HTML website template, travel template, country house website, rural cottage template, holiday let, guesthouse website, photo gallery, prices by season, booking request form, dark green serif design">
  <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="Encinar | Tailwind CSS Travel Template">
  <meta property="og:description" content="A Tailwind CSS travel template for country houses, rural cottages and small places to stay, with a dark landscape hero, a photo gallery, a ring map of what is around, prices by season and a booking request form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Encinar template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Encinar | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="A Tailwind CSS travel template for country houses, rural cottages and small places to stay, with a dark landscape hero, a photo gallery, a ring map of what is around, prices by season and a booking request form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Encinar 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&family=Fraunces:opsz,wght@9..144,300;9..144,400&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            moss: '#1b221a',
            paper: '#f2f0e7',
            leaf: '#a9c943',
            bark: '#6c6a5d'
          },
          fontFamily: {
            sans: ['Figtree', 'sans-serif'],
            serif: ['Fraunces', 'serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
    .seal { display: grid; place-items: center; height: 2.9rem; width: 2.9rem; border: 2px solid #a9c943; border-radius: 999px; font-family: Fraunces, serif; font-style: italic; font-size: 1.25rem; line-height: 1; }
    .navlink { position: relative; padding-bottom: .3rem; }
    .navlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: #a9c943; transition: width .25s ease; }
    .navlink:hover::after, .navlink[aria-current]::after { width: 100%; }
    .btn { display: inline-flex; align-items: center; gap: .8rem; border: 1px solid #a9c943; background: #a9c943; color: #1b221a; padding: .9rem 1.6rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
    .btn:hover { background: transparent; color: #a9c943; }
    .btn-dark:hover { color: #1b221a; border-color: #1b221a; }
    .go { display: inline-flex; align-items: center; gap: .8rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
    .go::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; transition: width .25s ease; }
    .go:hover::after { width: 3.6rem; }
    .field { width: 100%; border: 0; border-bottom: 1px solid rgba(242, 240, 231, .45); background: transparent; padding: .65rem 0; font-size: 1.05rem; color: inherit; outline: none; border-radius: 0; color-scheme: dark; }
    .field:focus { border-color: #a9c943; }
    .field option { color: #1b221a; }
    .field-light { border-color: rgba(27, 34, 26, .4); color-scheme: light; }
    .field-light:focus { border-color: #1b221a; }
    .slant { position: absolute; inset: 0; height: 100%; width: 100%; fill: none; stroke: rgba(242, 240, 231, .28); stroke-width: 1; pointer-events: none; }
    .side { writing-mode: vertical-rl; }
    .rings { position: relative; aspect-ratio: 1; }
    .rings i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(242, 240, 231, .3); border-radius: 999px; transform: translate(-50%, -50%); }
    .spot { position: absolute; display: flex; align-items: center; gap: .6rem; transform: translate(-1rem, -1rem); white-space: nowrap; }
    .spot b { display: grid; place-items: center; height: 2rem; width: 2rem; border: 1px solid #a9c943; border-radius: 999px; background: #1b221a; font-weight: 500; font-size: .8rem; transition: background-color .2s ease, color .2s ease; }
    .spot:hover b, .spot[aria-selected="true"] b { background: #a9c943; color: #1b221a; }
    .spot[aria-selected="true"] { color: #a9c943; }
    .leader { display: flex; align-items: baseline; gap: .8rem; }
    .leader::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted currentColor; opacity: .5; }
    .leader > :last-child { order: 2; }
    .bar { height: 2px; background: rgba(27, 34, 26, .15); }
    .bar span { display: block; height: 100%; background: #1b221a; }
    dialog::backdrop { background: rgba(15, 20, 14, .88); }
    .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) { html { scroll-behavior: auto; } }
  </style>
</head>
<body class="bg-paper font-sans text-moss antialiased">
<!-- block:start navbar -->
  <header class="relative z-40 bg-moss text-paper">
    <div class="flex items-center justify-between gap-6 px-6 py-5 md:px-12">
      <a href="index.html" class="flex items-center gap-4" aria-label="Encinar, home">
        <span class="seal" aria-hidden="true">e</span>
        <span class="font-serif text-2xl font-light">Encinar</span>
      </a>
      <nav aria-label="Main" class="hidden items-center gap-10 md:flex">
          <a href="house.html" class="label navlink">The house</a>
          <a href="around.html" class="label navlink">Around</a>
          <a href="contact.html" class="label navlink">Book</a>
        <a href="tel:+34959100240" class="label text-leaf">+34 959 100 240</a>
      </nav>
      <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" aria-label="Open menu" class="flex h-10 w-10 flex-col items-end justify-center gap-2 md:hidden">
        <span class="h-px w-8 bg-paper"></span>
        <span class="h-px w-5 bg-leaf"></span>
      </button>
    </div>
    <div id="mobile-menu" class="hidden border-t border-paper/20 px-6 py-7 md:hidden">
      <nav aria-label="Mobile" class="flex flex-col items-start gap-4">
        <a href="index.html" aria-current="page" class="font-serif text-4xl font-light text-leaf">Home</a>
          <a href="house.html" class="font-serif text-4xl font-light">The house</a>
          <a href="around.html" class="font-serif text-4xl font-light">Around</a>
          <a href="contact.html" class="font-serif text-4xl font-light">Book</a>
        <a href="tel:+34959100240" class="label mt-3 text-leaf">+34 959 100 240</a>
      </nav>
    </div>
  </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);
      });
    });

    (() => {
      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-tabs]").forEach((root) => {
      root.addEventListener("click", (event) => {
        const tab = event.target.closest("[data-tab]");
        if (!tab) return;
        root.querySelectorAll("[data-tab]").forEach((button) => button.setAttribute("aria-selected", String(button === tab)));
        root.querySelectorAll("[data-panel]").forEach((panel) => { panel.hidden = panel.dataset.panel !== tab.dataset.tab; });
      });
    });

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

    document.querySelectorAll("[data-filter]").forEach((root) => {
      const count = root.querySelector("[data-filter-count]");
      root.addEventListener("click", (event) => {
        const chip = event.target.closest("[data-filter-chip]");
        if (!chip) return;
        let shown = 0;
        root.querySelectorAll("[data-filter-chip]").forEach((button) => button.setAttribute("aria-pressed", String(button === chip)));
        root.querySelectorAll("[data-tags]").forEach((item) => {
          const match = chip.dataset.filterChip === "all" || item.dataset.tags.split(" ").includes(chip.dataset.filterChip);
          item.hidden = !match;
          if (match) shown += 1;
        });
        if (count) count.textContent = shown;
      });
    });

    document.querySelectorAll("[data-form]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        const valid = form.checkValidity();
        const error = form.querySelector("[data-form-error]");
        const done = form.querySelector("[data-form-done]");
        if (error) error.hidden = valid;
        if (done) done.hidden = !valid;
        if (valid) form.reset();
      });
    });
  </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

Encinar screenshot

Travel

Encinar

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