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

Charabanc Features

A features block extracted from the Charabanc template, available in Tailwind CSS.

0 0
Charabanc Features preview

Download Codebase

Commercial License

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

charabanc.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>Charabanc Features | Tailwind CSS UI Block</title>
  <meta name="description" content="A features block extracted from the Charabanc template, available in Tailwind CSS.">
  <meta name="keywords" content="Charabanc, Tailwind CSS template, HTML website template, day trip template, tour operator website, coach tours template, travel agency template, postcard design, trip booking page, travel 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="Charabanc | Tailwind CSS Travel Template">
  <meta property="og:description" content="A cheerful Tailwind CSS template for day-trip and small-group tour operators, with a carousel of tilted postcards, a weekly departures picker, a filtered list of days out, a trip page and a booking request.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Charabanc template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Charabanc | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="A cheerful Tailwind CSS template for day-trip and small-group tour operators, with a carousel of tilted postcards, a weekly departures picker, a filtered list of days out, a trip page and a booking request.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Charabanc 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=Alfa+Slab+One&family=Caveat:wght@500;700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,800&family=Yellowtail&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            moss: { DEFAULT: '#74a165', deep: '#5c8750' },
            forest: { DEFAULT: '#2f4a2c', deep: '#223620' },
            cream: '#ece7d6',
            paper: '#f7f2e4',
            coral: '#d9705f',
            mustard: '#b08d3f',
            teal: '#2f8791',
            plum: '#8a5a6b',
            ink: { DEFAULT: '#22301f', soft: '#46553f' }
          },
          fontFamily: {
            slab: ['"Alfa Slab One"', 'serif'],
            script: ['Yellowtail', 'cursive'],
            hand: ['Caveat', 'cursive'],
            sans: ['"Nunito Sans"', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
    .slab { font-family: "Alfa Slab One", serif; font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: .01em; }
    .script { font-family: Yellowtail, cursive; line-height: 1; }

    /* Postcard: a cream border round a one-colour photo, with type sized from the card's own width. */
    .postcard { display: block; container-type: inline-size; background: #ece7d6; padding: 2.6%; border-radius: 3px; box-shadow: 0 18px 30px -18px rgba(20, 35, 18, .55); }
    .postcard-face { position: relative; isolation: isolate; display: block; aspect-ratio: 19 / 10; overflow: hidden; border-radius: 4px; background: var(--tint, #b08d3f); color: #f7f2e4; }
    .postcard-face img { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.1); mix-blend-mode: multiply; opacity: .8; }
    .postcard-face::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint, #b08d3f); opacity: .28; }
    .postcard-script { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font-family: Yellowtail, cursive; font-size: 8.5cqw; line-height: 1; }
    .postcard-title { position: absolute; left: 4%; right: 4%; top: 33%; text-align: center; font-family: "Alfa Slab One", serif; font-size: 12.5cqw; line-height: .95; text-transform: uppercase; text-shadow: 0 .04em 0 rgba(20, 35, 18, .28); }
    .postcard-place { position: absolute; right: 6%; bottom: 8%; font-size: 3cqw; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

    /* Deck: the middle card sits straight, its neighbours lean away and run off the page. */
    .deck { position: relative; margin-inline: auto; width: min(64vw, 46rem); aspect-ratio: 19 / 10.9; }
    .deck > li { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
    .deck > li[data-pos="0"] { z-index: 3; }
    .deck > li[data-pos="-1"] { --x: -92%; --r: -13deg; --s: .86; z-index: 2; }
    .deck > li[data-pos="1"] { --x: 92%; --r: 11deg; --s: .86; z-index: 2; }
    .deck > li[data-pos="-2"] { --x: -190%; --r: -20deg; --s: .8; opacity: 0; pointer-events: none; }
    .deck > li[data-pos="2"] { --x: 190%; --r: 20deg; --s: .8; opacity: 0; pointer-events: none; }
    @media (max-width: 767px) { .deck { width: 78vw; } .deck > li[data-pos="-1"] { --x: -88%; } .deck > li[data-pos="1"] { --x: 88%; } }

    /* Stamp: perforated edge cut with a mask. */
    .stamp { --hole: 5px; display: inline-grid; place-items: center; padding: 12px; background: var(--stamp, #ece7d6); -webkit-mask: radial-gradient(circle var(--hole), #0000 96%, #000) calc(var(--hole) * -1.5) calc(var(--hole) * -1.5) / calc(var(--hole) * 3) calc(var(--hole) * 3), linear-gradient(#000 0 0) center / calc(100% - var(--hole) * 2) calc(100% - var(--hole) * 2) no-repeat; mask: radial-gradient(circle var(--hole), #0000 96%, #000) calc(var(--hole) * -1.5) calc(var(--hole) * -1.5) / calc(var(--hole) * 3) calc(var(--hole) * 3), linear-gradient(#000 0 0) center / calc(100% - var(--hole) * 2) calc(100% - var(--hole) * 2) no-repeat; }
    .postmark { display: grid; place-items: center; height: 5.5rem; width: 5.5rem; border: 2px solid currentColor; border-radius: 999px; outline: 1px solid currentColor; outline-offset: -8px; text-align: center; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; transform: rotate(-12deg); opacity: .75; }
    .postback { background: #f7f2e4; border-radius: 3px; box-shadow: 0 18px 30px -18px rgba(20, 35, 18, .5); }
    .ruled { border-bottom: 1.5px solid rgba(34, 48, 31, .35); }
    .hand { font-family: Caveat, cursive; font-weight: 500; line-height: 1.25; }

    .ticker { display: flex; width: max-content; animation: ticker 36s linear infinite; }
    .ticker:hover { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }
    .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) { .ticker { animation: none; } .deck > li { transition: none; } }
  </style>
</head>
<body class="bg-paper font-sans text-ink antialiased">
<!-- block:start features -->
  <section id="included" class="bg-cream px-5 py-20 md:px-10 md:py-28">
    <div class="mx-auto max-w-[1400px]">
      <div class="flex flex-col gap-4 md:flex-row md:items-end md:justify-between">
        <h2 class="text-forest"><span class="script block text-4xl text-coral md:text-5xl">In the price</span><span class="slab mt-1 block text-4xl md:text-6xl">Every day out</span></h2>
        <p class="max-w-sm text-lg text-ink-soft">One fare covers the seat, the guide, the ferry or the boat, and lunch. You bring a coat.</p>
      </div>
      <div class="mt-12 grid gap-5 md:grid-cols-4 md:grid-rows-2">
        <div class="postcard md:col-span-2 md:row-span-2" style="--tint: #2f8791" data-reveal>
          <div class="postcard-face h-full min-h-[20rem] !aspect-auto p-7 md:p-10">
            <img src="https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="A laid restaurant table with plates and glasses">
            <div class="flex h-full flex-col justify-end">
              <p class="script text-4xl md:text-5xl">Sit down for</p>
              <h3 class="slab text-4xl md:text-6xl">A proper lunch</h3>
              <p class="mt-4 max-w-md text-lg">Two courses at a table we booked in March, in a place the guide would take their own mother. Never a sandwich in a car park.</p>
            </div>
          </div>
        </div>
          <div class="rounded-[3px] p-7 bg-paper text-ink" data-reveal style="--reveal-delay: 80ms">
            <i class="fa-solid fa-location-dot text-2xl"></i>
            <h3 class="slab mt-5 text-2xl">Four pick-ups</h3>
            <p class="mt-3">Corn Exchange, the station, Mill Bridge and the park gates. Pick the nearest.</p>
          </div>
          <div class="rounded-[3px] p-7 bg-forest text-cream" data-reveal style="--reveal-delay: 160ms">
            <i class="fa-solid fa-clock text-2xl"></i>
            <h3 class="slab mt-5 text-2xl">Back by seven</h3>
            <p class="mt-3">We leave after rush hour and you are home in time for your own supper.</p>
          </div>
          <div class="rounded-[3px] p-7 bg-coral text-paper" data-reveal style="--reveal-delay: 240ms">
            <i class="fa-solid fa-user-group text-2xl"></i>
            <h3 class="slab mt-5 text-2xl">A local guide</h3>
            <p class="mt-3">Every route is led by somebody who lived on it. They know which gate is never locked.</p>
          </div>
          <div class="rounded-[3px] p-7 bg-paper text-ink" data-reveal style="--reveal-delay: 320ms">
            <i class="fa-solid fa-umbrella text-2xl"></i>
            <h3 class="slab mt-5 text-2xl">Rain plan</h3>
            <p class="mt-3">Each day has a wet-weather version, and it is usually the one with the better pub.</p>
          </div>
      </div>
    </div>
  </section>
  <!-- block:end features -->
<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-deck]").forEach((root) => {
      const cards = [...root.querySelectorAll("[data-deck-card]")];
      if (cards.length < 3) return;
      let current = 0;
      const set = (name, value) => { const node = root.querySelector(`[data-deck-${name}]`); if (node) node.textContent = value; };
      const show = (index) => {
        current = (index + cards.length) % cards.length;
        cards.forEach((card, i) => {
          let offset = i - current;
          if (offset > cards.length / 2) offset -= cards.length;
          if (offset < -cards.length / 2) offset += cards.length;
          card.dataset.pos = Math.max(-2, Math.min(2, offset));
          card.querySelector("a").tabIndex = offset === 0 ? 0 : -1;
        });
        const card = cards[current];
        set("line", card.dataset.line);
        set("hours", card.dataset.hours);
        set("price", card.dataset.price);
      };
      root.querySelector("[data-deck-prev]")?.addEventListener("click", () => show(current - 1));
      root.querySelector("[data-deck-next]")?.addEventListener("click", () => show(current + 1));
      cards.forEach((card, i) => card.addEventListener("click", (event) => {
        if (i === current) return;
        event.preventDefault();
        show(i);
      }));
      show(0);
    });

    document.querySelectorAll("[data-departures]").forEach((root) => {
      const tabs = [...root.querySelectorAll("[data-day]")];
      const words = ["No", "One", "Two", "Three", "Four", "Five", "Six"];
      let seats = 2;
      const set = (name, value) => { const node = root.querySelector(`[data-card-${name}]`); if (node) node.textContent = value; };
      const update = () => {
        const tab = tabs.find((item) => item.getAttribute("aria-selected") === "true") || tabs[0];
        const data = tab.dataset;
        seats = Math.max(1, Math.min(seats, Number(data.left)));
        root.querySelector("[data-seats]").textContent = seats;
        root.querySelector("[data-seats-hint]").textContent = seats === Number(data.left) ? `That is the last of ${data.dayName}'s seats` : "";
        set("day", data.dayName);
        set("note", data.note);
        set("leaves", data.leaves);
        set("back", data.back);
        set("seats", `${words[seats]} seat${seats === 1 ? "" : "s"}`);
        set("short", data.dayName.slice(0, 3));
        set("time", data.leaves);
        set("total", Number(data.price) * seats);
        set("trip", data.trip);
        set("price", data.price);
        root.querySelector("[data-card-stamp]")?.style.setProperty("--stamp", data.tint);
        root.querySelector("[data-card-link]")?.setAttribute("href", `contact.html?day=${data.day}&seats=${seats}`);
      };
      tabs.forEach((tab) => tab.addEventListener("click", () => {
        tabs.forEach((other) => other.setAttribute("aria-selected", String(other === tab)));
        update();
      }));
      root.querySelector("[data-seats-less]")?.addEventListener("click", () => { seats -= 1; update(); });
      root.querySelector("[data-seats-more]")?.addEventListener("click", () => { seats += 1; update(); });
      update();
    });

    document.querySelectorAll("[data-letter]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        const status = form.querySelector("[data-letter-status]");
        const email = form.elements.email;
        if (!email.checkValidity()) { status.textContent = "That email address does not look right."; email.focus(); return; }
        const picked = [...form.querySelectorAll("input[name=interests]:checked")].map((input) => input.value.toLowerCase());
        status.textContent = picked.length ? `You are on the list for ${picked.join(", ")}.` : "You are on the list for everything.";
        email.value = "";
      });
    });

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

Charabanc screenshot Premium

Travel

Charabanc

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