Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Reseñas

Ferrant Reviews

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

0 8
Ferrant Reviews preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

ferrant.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>Ferrant Reviews | Tailwind CSS UI Block</title>
  <meta name="description" content="A reviews block extracted from the Ferrant template, available in Tailwind CSS.">
  <meta name="keywords" content="Ferrant, Tailwind CSS template, HTML website template, boutique hotel template, guest house website, hotel rooms, room rates calculator, hotel restaurant menu, reservation form, travel template, premium 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="Ferrant | Tailwind CSS Travel Template">
  <meta property="og:description" content="An editorial Tailwind CSS template for boutique hotels, with a ruled serif headline, a room index, a stay composer, a restaurant menu and a reservation request page.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Ferrant template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Ferrant | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="An editorial Tailwind CSS template for boutique hotels, with a ruled serif headline, a room index, a stay composer, a restaurant menu and a reservation request page.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Ferrant 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=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            stone: { DEFAULT: '#eceae4', light: '#f6f4ef', line: '#cdc9bf' },
            ink: { DEFAULT: '#121212', soft: '#45433f', mute: '#77736b' },
            bronze: { DEFAULT: '#9a7b4f', deep: '#7b6038' }
          },
          fontFamily: {
            serif: ['"EB Garamond"', 'serif'],
            sans: ['Inter', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .display { font-family: "EB Garamond", serif; font-weight: 400; letter-spacing: -.02em; line-height: .95; }
    .rule { display: block; height: .045em; min-width: 1.2em; flex: 1 1 0; background: currentColor; transform: translateY(.06em); }
    .bw { filter: grayscale(1) contrast(1.08); transition: filter .6s ease; }
    .bw-hover:hover .bw, .bw-hover:focus-visible .bw { filter: none; }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .marquee { display: flex; overflow: hidden; gap: 3rem; }
    .marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 3rem; animation: marquee 60s linear infinite; }
    .marquee[data-reverse] .marquee-track { animation-direction: reverse; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    @keyframes marquee { to { transform: translateX(calc(-100% - 3rem)); } }
    .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) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } .bw { transition: none; } }
  </style>
</head>
<body class="bg-stone font-sans text-ink antialiased">
<!-- block:start reviews -->
    <section id="guestbook" class="border-y border-stone-line bg-stone-light py-16 md:py-20" aria-label="From the guest book">
      <p class="mx-auto max-w-[1400px] px-5 font-serif text-xl md:px-12">From the guest book:</p>
        <div class="marquee mt-8" >
            <div class="marquee-track" >
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“We booked two nights and stayed six.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Marta and Jules, Lyon</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“The only hotel where I have missed my flight on purpose.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Henrik, Oslo</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“Breakfast at 11:40 and nobody raised an eyebrow.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Priya, London</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
            </div>
            <div class="marquee-track" aria-hidden="true">
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“We booked two nights and stayed six.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Marta and Jules, Lyon</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“The only hotel where I have missed my flight on purpose.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Henrik, Oslo</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“Breakfast at 11:40 and nobody raised an eyebrow.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Priya, London</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
            </div>
        </div>
        <div class="marquee mt-8" data-reverse>
            <div class="marquee-track" >
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“Inês showed us a staircase that is on no map.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">The Okoros, Lagos</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“I wrote half a book in the library.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Daniel, Toronto</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“The honesty bar ledger is the best thing I read all year.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Sofia, Milan</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
            </div>
            <div class="marquee-track" aria-hidden="true">
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“Inês showed us a staircase that is on no map.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">The Okoros, Lagos</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“I wrote half a book in the library.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Daniel, Toronto</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
                <figure class="flex items-center gap-6 whitespace-nowrap">
                  <blockquote class="font-serif text-3xl md:text-5xl">“The honesty bar ledger is the best thing I read all year.”</blockquote>
                  <span class="block h-px w-16 bg-ink"></span>
                  <figcaption class="text-xs text-ink-mute">Sofia, Milan</figcaption>
                  <span class="block h-px w-16 bg-ink"></span>
                </figure>
            </div>
        </div>
    </section>
    <!-- block:end reviews -->
<script>
    // Mobile menu
    (() => {
      const toggle = document.querySelector("[data-menu-toggle]");
      const menu = document.getElementById("mobile-menu");
      if (!toggle || !menu) return;
      toggle.addEventListener("click", () => {
        const open = toggle.getAttribute("aria-expanded") === "true";
        toggle.setAttribute("aria-expanded", String(!open));
        toggle.setAttribute("aria-label", open ? "Open menu" : "Close menu");
        menu.hidden = open;
      });
    })();

    // Room index swaps the photo
    (() => {
      const image = document.querySelector("[data-room-image]");
      if (!image) return;
      document.querySelectorAll("[data-room-item]").forEach((item) => {
        const show = () => {
          if (image.src === item.dataset.image) return;
          image.style.opacity = "0";
          setTimeout(() => {
            image.src = item.dataset.image;
            image.alt = item.dataset.alt;
            image.style.opacity = "1";
          }, 150);
        };
        item.addEventListener("mouseenter", show);
        item.addEventListener("focus", show);
      });
    })();

    // Stay composer
    (() => {
      const root = document.querySelector("[data-stay]");
      if (!root) return;
      const form = root.querySelector("[data-stay-form]");
      const words = ["One night", "Two nights", "Three nights", "Four nights", "Five nights", "Six nights", "A week", "Eight nights", "Nine nights", "Ten nights", "Eleven nights", "Twelve nights", "Thirteen nights", "A fortnight"];
      const seasons = { "Quiet months": "in the quiet months", "Spring and autumn": "in spring or autumn", "High summer": "in high summer" };
      const set = (name, text) => { root.querySelector(`[data-stay-${name}]`).textContent = text; };
      let nights = 3;
      const update = () => {
        const room = form.querySelector("input[name=room]:checked");
        const season = form.querySelector("input[name=season]:checked");
        const rate = Math.round(Number(room.dataset.rate) * Number(season.dataset.factor) / 5) * 5;
        const discount = nights >= 7 ? 0.15 : nights >= 5 ? 0.1 : 0;
        const full = rate * nights;
        const total = Math.round(full * (1 - discount));
        const perk = nights >= 7 ? "15% off and a car from the airport" : nights >= 5 ? "10% off and your laundry done" : nights >= 3 ? "a late check-out at two" : "breakfast until noon";
        set("nights", nights);
        set("words", words[nights - 1]);
        set("room", room.value);
        set("season", seasons[season.value]);
        set("perk", perk);
        set("rate", "€" + rate);
        set("total", "€" + total.toLocaleString("en-GB"));
        set("saving", discount ? "€" + (full - total).toLocaleString("en-GB") : "–");
        root.querySelector("[data-stay-line]").style.width = (nights / 14 * 100) + "%";
        root.querySelectorAll("[data-stay-mark]").forEach((mark) => { mark.style.opacity = nights >= Number(mark.dataset.stayMark) ? "1" : ".45"; });
        try {
          sessionStorage.setItem("ferrant-stay", JSON.stringify({ nights, room: room.value, season: season.value, total }));
        } catch (error) { /* storage is optional */ }
      };
      root.querySelector("[data-stay-less]").addEventListener("click", () => { nights = Math.max(1, nights - 1); update(); });
      root.querySelector("[data-stay-more]").addEventListener("click", () => { nights = Math.min(14, nights + 1); update(); });
      form.addEventListener("input", update);
      form.addEventListener("submit", (event) => event.preventDefault());
      update();
    })();

    // Day rail arrows
    (() => {
      const rail = document.querySelector("[data-rail]");
      if (!rail) return;
      const step = (direction) => {
        const card = rail.firstElementChild;
        rail.scrollBy({ left: direction * (card.offsetWidth + 24), behavior: "smooth" });
      };
      document.querySelector("[data-rail-prev]").addEventListener("click", () => step(-1));
      document.querySelector("[data-rail-next]").addEventListener("click", () => step(1));
    })();

    // Postcard sign-up
    (() => {
      const form = document.querySelector("[data-postcard]");
      if (!form) return;
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        form.querySelector("[data-postcard-done]").hidden = false;
        form.reset();
      });
    })();

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

De esta plantilla

Ferrant screenshot Premium

Viajes

Ferrant

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado