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

Marram Demo

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

0 8
Marram Demo preview
marram.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>Marram Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo block extracted from the Marram template, available in Tailwind CSS.">
  <meta name="keywords" content="Marram, Tailwind CSS template, HTML website template, travel template, guesthouse website, bed and breakfast template, small hotel website, rooms and rates page, booking request form, minimal travel 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="Marram | Tailwind CSS Travel Template">
  <meta property="og:description" content="A calm Tailwind CSS travel template for guesthouses, bed and breakfasts and small hotels, with a line-drawn emblem, a mustard facts band, room tabs, a sun dial of the day, a handwritten guestbook, rooms and rates and a booking request form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Marram template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Marram | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="A calm Tailwind CSS travel template for guesthouses, bed and breakfasts and small hotels, with a line-drawn emblem, a mustard facts band, room tabs, a sun dial of the day, a handwritten guestbook, rooms and rates and a booking request form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Marram 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=Caveat:wght@500&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,800;1,6..12,300&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            paper: '#ecebe8',
            ink: '#161616',
            sun: '#e8d23a',
            clay: '#b4532e',
            stone: '#6f6d68'
          },
          fontFamily: {
            sans: ['"Nunito Sans"', 'sans-serif'],
            hand: ['Caveat', 'cursive']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .airy { font-style: italic; font-weight: 300; letter-spacing: .08em; text-transform: lowercase; }
    .label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
    .tag { background: #b4532e; color: #fff; padding: .15rem .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s ease; }
    .tag:hover, .tag[aria-current] { background: #161616; }
    .under { border-bottom: 1.5px solid currentColor; padding-bottom: .2rem; transition: color .2s ease; }
    .under:hover { color: #b4532e; }
    .btn { display: inline-flex; align-items: center; gap: .7rem; background: #161616; color: #fff; padding: .9rem 1.5rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s ease; }
    .btn:hover { background: #b4532e; }
    .side { writing-mode: vertical-rl; }
    .field { width: 100%; border: 0; border-bottom: 1.5px solid #161616; background: transparent; padding: .7rem 0; font-size: 1.05rem; color: #161616; outline: none; border-radius: 0; }
    .field:focus { border-color: #b4532e; }
    .chip { display: inline-flex; align-items: center; border: 1.5px solid #161616; padding: .5rem 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
    .chip[aria-pressed="true"], .chip[aria-selected="true"], input:checked + .chip { background: #161616; color: #fff; }
    input:focus-visible + .chip { outline: 2px solid #b4532e; outline-offset: 3px; }
    .dial { position: relative; aspect-ratio: 2 / 1; --x: 50; --y: 12; }
    .dial-sun { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); height: 2.75rem; width: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border: 2.5px solid #161616; border-radius: 999px; background: #ecebe8; transition: left .6s ease, top .6s ease; }
    .note { background: #fff; padding: 1.6rem 1.5rem; break-inside: avoid; margin-bottom: 1.5rem; }
    .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) { .dial-sun { transition: none; } html { scroll-behavior: auto; } }
  </style>
</head>
<body class="bg-paper font-sans text-ink antialiased">
<!-- block:start demo -->
    <section id="day" class="bg-sun px-6 py-20 md:px-12 md:py-28" data-tabs>
      <div class="grid items-center gap-12 lg:grid-cols-12">
        <div class="lg:col-span-6">
          <div class="dial" data-dial style="--x: 18.2; --y: 35.4">
            <svg viewBox="0 0 200 100" fill="none" stroke="#161616" stroke-linecap="round" class="h-full w-full" aria-hidden="true">
              <path d="M10 92a90 80 0 0 1 180 0" stroke-width=".8" stroke-dasharray="1 4"/>
              <path d="M2 92h196" stroke-width="1.6"/>
              <path d="M24 97h152" stroke-width="1"/>
            </svg>
            <span class="dial-sun" aria-hidden="true"></span>
          </div>
        </div>
        <div class="lg:col-span-5 lg:col-start-8">
          <p class="label text-ink/70">A day at the house</p>
          <h2 class="airy mt-4 text-4xl leading-snug md:text-5xl md:leading-snug">nothing is on a timetable, but here is one</h2>
          <div role="tablist" aria-label="Time of day" class="mt-8 flex flex-wrap gap-2.5">
              <button type="button" role="tab" id="day-tab-0" aria-controls="day-0" aria-selected="false" data-tab="0" data-x="6.1" data-y="74.5" class="chip">6.40</button>
              <button type="button" role="tab" id="day-tab-1" aria-controls="day-1" aria-selected="true" data-tab="1" data-x="18.2" data-y="35.4" class="chip">8.30</button>
              <button type="button" role="tab" id="day-tab-2" aria-controls="day-2" aria-selected="false" data-tab="2" data-x="50.0" data-y="12.0" class="chip">13.00</button>
              <button type="button" role="tab" id="day-tab-3" aria-controls="day-3" aria-selected="false" data-tab="3" data-x="86.4" data-y="45.0" class="chip">18.00</button>
              <button type="button" role="tab" id="day-tab-4" aria-controls="day-4" aria-selected="false" data-tab="4" data-x="94.4" data-y="79.5" class="chip">21.30</button>
          </div>
            <div role="tabpanel" id="day-0" aria-labelledby="day-tab-0" data-panel="0" class="mt-8 min-h-[11rem]" hidden>
              <h3 class="text-2xl font-extrabold lowercase">first light</h3>
              <p class="mt-3 text-lg leading-relaxed">The sun comes up over the marsh behind the house. The front door is never locked from the inside, and there are blankets and a flask on the bench.</p>
            </div>
            <div role="tabpanel" id="day-1" aria-labelledby="day-tab-1" data-panel="1" class="mt-8 min-h-[11rem]" >
              <h3 class="text-2xl font-extrabold lowercase">breakfast</h3>
              <p class="mt-3 text-lg leading-relaxed">Bread from our oven, eggs from next door and whatever Daniel picked. Breakfast runs until eleven, so nobody has to set an alarm.</p>
            </div>
            <div role="tabpanel" id="day-2" aria-labelledby="day-tab-2" data-panel="2" class="mt-8 min-h-[11rem]" hidden>
              <h3 class="text-2xl font-extrabold lowercase">the beach</h3>
              <p class="mt-3 text-lg leading-relaxed">Four minutes through the dunes. We will pack you a lunch if you ask the night before, and lend you a windbreak either way.</p>
            </div>
            <div role="tabpanel" id="day-3" aria-labelledby="day-tab-3" data-panel="3" class="mt-8 min-h-[11rem]" hidden>
              <h3 class="text-2xl font-extrabold lowercase">the honesty bar</h3>
              <p class="mt-3 text-lg leading-relaxed">Help yourself in the sitting room and write it in the book. The fire is lit from September, and the tide table is on the mantelpiece.</p>
            </div>
            <div role="tabpanel" id="day-4" aria-labelledby="day-tab-4" data-panel="4" class="mt-8 min-h-[11rem]" hidden>
              <h3 class="text-2xl font-extrabold lowercase">lights low</h3>
              <p class="mt-3 text-lg leading-relaxed">The sun goes into the sea in front of the house. Lamps are on in the hall, and the only sound upstairs is the water.</p>
            </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) => {
      const dial = root.querySelector("[data-dial]");
      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; });
        if (dial && tab.dataset.x) {
          dial.style.setProperty("--x", tab.dataset.x);
          dial.style.setProperty("--y", tab.dataset.y);
        }
      });
    });

    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-stepper]").forEach((stepper) => {
      const input = stepper.querySelector("input");
      stepper.addEventListener("click", (event) => {
        const button = event.target.closest("[data-step]");
        if (!button) return;
        const next = Number(input.value) + Number(button.dataset.step);
        input.value = Math.min(Number(input.max), Math.max(Number(input.min), next));
        input.dispatchEvent(new Event("input", { bubbles: true }));
      });
    });

    document.querySelectorAll("[data-booking]").forEach((form) => {
      const total = form.querySelector("[data-booking-total]");
      const update = () => {
        const room = form.querySelector("[name=room]");
        const nights = Number(form.querySelector("[name=nights]").value);
        const price = Number(room.selectedOptions[0].dataset.price);
        if (total) total.textContent = `£${(price * nights).toLocaleString("en-GB")}`;
      };
      form.addEventListener("input", update);
      form.addEventListener("reset", () => setTimeout(update));
      const wanted = new URLSearchParams(location.search).get("room");
      const room = form.querySelector("[name=room]");
      if (wanted && [...room.options].some((option) => option.value === wanted)) room.value = wanted;
      update();
    });

    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

Marram screenshot

Travel

Marram

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