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

Cairnlight Reviews

A reviews block extracted from the Cairnlight template, available in Tailwind CSS.

0 9
Cairnlight Reviews preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

cairnlight.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>Cairnlight Reviews | Tailwind CSS UI Block</title>
  <meta name="description" content="A reviews block extracted from the Cairnlight template, available in Tailwind CSS.">
  <meta name="keywords" content="Cairnlight, Tailwind CSS template, HTML website template, travel website template, walking holidays, tour operator template, mountain huts, interactive map, itinerary page, trip price calculator">
  <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="Cairnlight | Tailwind CSS Travel Template">
  <meta property="og:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Cairnlight template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Cairnlight | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Cairnlight 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=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            pine: { DEFAULT: '#073a2f', deep: '#042720', land: '#0f5342', high: '#17654f' },
            cream: '#efe9dc',
            mint: '#9fd8c0'
          },
          fontFamily: {
            sans: ['Jost', 'sans-serif'],
            serif: ['"Cormorant Garamond"', 'serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .night { background: radial-gradient(120% 90% at 55% 45%, #0a4a3b 0%, #073a2f 45%, #042720 100%); }
    .lamp { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .85)); transition: opacity .5s ease; }
    .lamp[data-dim] { opacity: .1; }
    .label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
    .slant { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
    .lead { display: inline-flex; align-items: center; }
    .lead::before { content: ""; width: .4rem; height: .4rem; border: 1px solid currentColor; border-radius: 9999px; }
    .lead > span:first-child { width: 1.75rem; height: 1px; background: currentColor; }
    .lead > span:last-child { border: 1px solid currentColor; padding: .85rem 1.6rem; transition: background-color .3s ease, color .3s ease; }
    .lead:hover > span:last-child { background: #efe9dc; color: #042720; }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .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) { .lamp { transition: none; } }
  </style>
</head>
<body class="bg-pine-deep font-sans font-light text-cream antialiased">
<!-- block:start reviews -->
    <section class="bg-pine px-6 py-20 md:px-12 md:py-32" data-quotes>
      <script type="application/json" data-quotes-data>[{"quote":"We saw the lamp in the window from two miles off, in the rain, and I have never been so glad of anything.","name":"Morven Aird","place":"The Long Glen, September"},{"quote":"Five days without deciding anything except where to stop for lunch. The warden had our boots by the stove before we had sat down.","name":"Piers Hallam","place":"The Salt Path North, June"},{"quote":"I walked it alone and ate dinner with strangers every night. By the third hut they were not strangers.","name":"Ottilie Brandt","place":"The Ridge of Lights, July"}]</script>
      <div class="mx-auto max-w-[1100px] text-center">
        <p class="label text-mint">From the hut books</p>
        <blockquote class="mt-8 font-serif text-3xl font-light leading-snug md:text-5xl md:leading-[1.2]" aria-live="polite">&ldquo;<span data-quotes-quote>We saw the lamp in the window from two miles off, in the rain, and I have never been so glad of anything.</span>&rdquo;</blockquote>
        <p class="mt-8"><span class="block font-serif text-2xl" data-quotes-name>Morven Aird</span><span class="label mt-2 block text-[.6rem] text-cream/70" data-quotes-place>The Long Glen, September</span></p>
        <div class="mt-10 flex items-center justify-center gap-6">
          <button type="button" data-quotes-step="-1" aria-label="Previous entry" aria-controls="quote-counter" class="flex h-12 w-12 items-center justify-center rounded-full border border-cream/40 transition hover:bg-cream hover:text-pine-deep"><i class="fa-solid fa-arrow-left text-sm"></i></button>
          <p id="quote-counter" class="font-serif text-xl"><span data-quotes-index>1</span> &mdash; 3</p>
          <button type="button" data-quotes-step="1" aria-label="Next entry" aria-controls="quote-counter" class="flex h-12 w-12 items-center justify-center rounded-full border border-cream/40 transition hover:bg-cream hover:text-pine-deep"><i class="fa-solid fa-arrow-right text-sm"></i></button>
        </div>
      </div>
    </section>
    <!-- block:end reviews -->
<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);
      });
    });

    document.querySelectorAll("[data-huts]").forEach((root) => {
      const seasons = root.querySelectorAll("[data-season]");
      const views = root.querySelectorAll("[data-view]");
      const huts = root.querySelectorAll("[data-hut]");
      seasons.forEach((season) => season.addEventListener("click", () => {
        seasons.forEach((other) => other.setAttribute("aria-pressed", String(other === season)));
        const key = season.dataset.season;
        let open = 0;
        huts.forEach((hut) => {
          const lit = key === "all" || hut.dataset.open.split(" ").includes(key);
          if (hut.tagName.toLowerCase() === "circle") { hut.toggleAttribute("data-dim", !lit); if (lit) open += 1; } else { hut.hidden = !lit; }
        });
        root.querySelector("[data-huts-count]").textContent = open;
      }));
      views.forEach((view) => view.addEventListener("click", () => {
        views.forEach((other) => other.setAttribute("aria-pressed", String(other === view)));
        root.querySelectorAll("[data-view-panel]").forEach((panel) => { panel.toggleAttribute("hidden", panel.dataset.viewPanel !== view.dataset.view); });
      }));
    });

    document.querySelectorAll("[data-rail]").forEach((rail) => {
      const track = rail.querySelector("[data-rail-track]");
      const move = (direction) => track.scrollBy({ left: direction * (track.firstElementChild.clientWidth + 24), behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth" });
      rail.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
      rail.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
    });

    document.querySelectorAll("[data-trip]").forEach((trip) => {
      const nightButtons = trip.querySelectorAll("[data-trip-nights]");
      const walkersLabel = trip.querySelector("[data-trip-walkers]");
      const link = trip.querySelector("[data-trip-link]");
      let nights = 5;
      let walkers = 2;
      const update = () => {
        const extra = (key) => { const box = trip.querySelector(`[data-trip-extra="${key}"]`); return box.checked ? Number(box.dataset.price) : 0; };
        const total = walkers * nights * (78 + extra("bag") + extra("lunch")) + nights * extra("guide");
        walkersLabel.textContent = walkers;
        trip.querySelector("[data-trip-total]").textContent = total.toLocaleString("en-GB");
        trip.querySelector("[data-trip-each]").textContent = Math.round(total / walkers).toLocaleString("en-GB");
        trip.querySelector("[data-trip-nights-label]").textContent = nights;
        if (link) link.href = `contact.html?nights=${nights}&walkers=${walkers}`;
      };
      nightButtons.forEach((button) => button.addEventListener("click", () => {
        nights = Number(button.dataset.tripNights);
        nightButtons.forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
        update();
      }));
      trip.querySelectorAll("[data-trip-step]").forEach((button) => button.addEventListener("click", () => {
        walkers = Math.min(8, Math.max(1, walkers + Number(button.dataset.tripStep)));
        update();
      }));
      trip.addEventListener("change", update);
      update();
    });

    document.querySelectorAll("[data-quotes]").forEach((root) => {
      const quotes = JSON.parse(root.querySelector("[data-quotes-data]").textContent);
      let index = 0;
      root.querySelectorAll("[data-quotes-step]").forEach((button) => button.addEventListener("click", () => {
        index = (index + Number(button.dataset.quotesStep) + quotes.length) % quotes.length;
        root.querySelector("[data-quotes-quote]").textContent = quotes[index].quote;
        root.querySelector("[data-quotes-name]").textContent = quotes[index].name;
        root.querySelector("[data-quotes-place]").textContent = quotes[index].place;
        root.querySelector("[data-quotes-index]").textContent = index + 1;
      }));
    });

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

From this template

Cairnlight screenshot Premium

Travel

Cairnlight

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