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

Encinar Demo

A demo block extracted from the Encinar template, available in Tailwind CSS.

0 0
Encinar Demo 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 Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo 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 demo -->
    <section id="around" class="bg-moss px-6 py-20 text-paper md:px-12 md:py-28" data-tabs>
      <div class="grid items-center gap-12 lg:grid-cols-12">
        <div class="lg:col-span-5">
          <p class="label text-leaf">Around the house</p>
          <h2 class="mt-6 font-serif text-4xl font-light leading-tight md:text-5xl">What is near, and how near</h2>
          <p class="mt-6 max-w-md text-lg leading-relaxed text-paper/75">The house is at the centre. The first ring is on foot, the second a short drive, the third under an hour. Choose a place.</p>
          <div class="mt-10 min-h-[11rem] border-t border-paper/25 pt-7" aria-live="polite">
              <div role="tabpanel" id="spot-0" aria-labelledby="spot-tab-0" data-panel="0" >
                <p class="label text-leaf">Ten minutes on foot</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The spring pool</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">A stone basin under the poplars where the stream is dammed. Cold all year, and usually yours alone.</p>
              </div>
              <div role="tabpanel" id="spot-1" aria-labelledby="spot-tab-1" data-panel="1" hidden>
                <p class="label text-leaf">Starts at the gate</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The ridge walk</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">Three hours there and back through the oaks to a ridge with the whole valley below.</p>
              </div>
              <div role="tabpanel" id="spot-2" aria-labelledby="spot-tab-2" data-panel="2" hidden>
                <p class="label text-leaf">Five minutes by car</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The village</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">A bakery, two bars, a shop that sells everything and a square with a fountain.</p>
              </div>
              <div role="tabpanel" id="spot-3" aria-labelledby="spot-tab-3" data-panel="3" hidden>
                <p class="label text-leaf">Fifteen minutes by car</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The Saturday market</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">Cheese, ham, vegetables and honey from the farms around. Go before eleven.</p>
              </div>
              <div role="tabpanel" id="spot-4" aria-labelledby="spot-tab-4" data-panel="4" hidden>
                <p class="label text-leaf">Thirty minutes by car</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The river beach</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">A sandy bend of the river with shade, shallow water for children and a bar in summer.</p>
              </div>
              <div role="tabpanel" id="spot-5" aria-labelledby="spot-tab-5" data-panel="5" hidden>
                <p class="label text-leaf">Forty minutes by car</p>
                <h3 class="mt-3 font-serif text-3xl font-light">The caves</h3>
                <p class="mt-3 max-w-md leading-relaxed text-paper/75">An hour underground among lakes and columns. Bring a jumper, even in August.</p>
              </div>
          </div>
          <a href="around.html" class="go mt-8">Everything to do</a>
        </div>
        <div class="lg:col-span-6 lg:col-start-7">
          <div class="rings mx-auto max-w-[34rem]" role="tablist" aria-label="Places around the house">
            <i style="width: 34%; height: 34%"></i>
            <i style="width: 64%; height: 64%"></i>
            <i style="width: 92%; height: 92%"></i>
            <span class="seal absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-moss" aria-hidden="true">e</span>
              <button type="button" role="tab" id="spot-tab-0" aria-controls="spot-0" aria-selected="true" data-tab="0" class="spot" style="left: 35.3%; top: 41.5%" aria-label="The spring pool">
                <b>1</b>
                <span class="hidden font-serif text-lg font-light md:inline ">The spring pool</span>
              </button>
              <button type="button" role="tab" id="spot-tab-1" aria-controls="spot-1" aria-selected="false" data-tab="1" class="spot" style="left: 64.7%; top: 58.5%" aria-label="The ridge walk">
                <b>2</b>
                <span class="hidden font-serif text-lg font-light md:inline ">The ridge walk</span>
              </button>
              <button type="button" role="tab" id="spot-tab-2" aria-controls="spot-2" aria-selected="false" data-tab="2" class="spot" style="left: 74.5%; top: 29.4%" aria-label="The village">
                <b>3</b>
                <span class="hidden font-serif text-lg font-light md:inline md:hidden xl:inline">The village</span>
              </button>
              <button type="button" role="tab" id="spot-tab-3" aria-controls="spot-3" aria-selected="false" data-tab="3" class="spot" style="left: 22.3%; top: 66.0%" aria-label="The Saturday market">
                <b>4</b>
                <span class="hidden font-serif text-lg font-light md:inline ">The Saturday market</span>
              </button>
              <button type="button" role="tab" id="spot-tab-4" aria-controls="spot-4" aria-selected="false" data-tab="4" class="spot" style="left: 34.3%; top: 6.8%" aria-label="The river beach">
                <b>5</b>
                <span class="hidden font-serif text-lg font-light md:inline ">The river beach</span>
              </button>
              <button type="button" role="tab" id="spot-tab-5" aria-controls="spot-5" aria-selected="false" data-tab="5" class="spot" style="left: 61.9%; top: 94.4%" aria-label="The caves">
                <b>6</b>
                <span class="hidden font-serif text-lg font-light md:inline ">The caves</span>
              </button>
          </div>
        </div>
      </div>
    </section>
    <!-- block:end demo -->
<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