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

Lentamar FAQ

A faq block extracted from the Lentamar template, available in Tailwind CSS.

0 5
Lentamar FAQ preview

Descargar el código

Licencia comercial

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

lentamar.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>Lentamar FAQ | Tailwind CSS UI Block</title>
  <meta name="description" content="A faq block extracted from the Lentamar template, available in Tailwind CSS.">
  <meta name="keywords" content="Lentamar, Tailwind CSS template, HTML website template, travel template, travel agency website, tour operator, itinerary planner, Mediterranean trips, travel blog, editorial 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="Lentamar | Tailwind CSS Travel Template">
  <meta property="og:description" content="An editorial Tailwind CSS travel template with an itinerary composer, a journey rail, postcard reviews, destinations, departures and a journal.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Lentamar template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Lentamar | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="An editorial Tailwind CSS travel template with an itinerary composer, a journey rail, postcard reviews, destinations, departures and a journal.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Lentamar 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:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { cream: '#f9f5ef', ink: { DEFAULT: '#1b1916', soft: '#4a453f' }, coral: { DEFAULT: '#c4372b', deep: '#a32a20', soft: '#f3d9d3' }, sea: { DEFAULT: '#7aa3a9', deep: '#45727a', soft: '#dde9ea' }, sand: '#ece3d6' },
          fontFamily: { serif: ['"Cormorant Garamond"', 'serif'], sans: ['Jost', 'sans-serif'] },
          letterSpacing: { label: '0.24em' }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .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; }
    .label { font-family: Jost, sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .marquee-track { animation: marquee 40s linear infinite; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .stop-chip:has(input:checked) { background: #1b1916; border-color: #1b1916; color: #f9f5ef; }
    .stop-chip-dark:has(input:checked) { background: #f9f5ef; border-color: #f9f5ef; color: #1b1916; }
    .stop-chip:has(input:focus-visible), .stop-chip-dark:has(input:focus-visible), .pace-chip:has(input:focus-visible) { outline: 2px solid #c4372b; outline-offset: 2px; }
    .pace-chip:has(input:checked) { background: #c4372b; border-color: #c4372b; color: #fff; }
    .route-line { transition: stroke-dashoffset .7s ease; }
    @media (prefers-reduced-motion: reduce) { .marquee-track, .route-line { animation: none; transition: none; } }
  </style>
</head>
<body class="bg-cream font-sans font-light text-ink antialiased">
<!-- block:start faq -->
    <section class="px-5 py-24 md:px-16 lg:py-32" data-chat-faq>
      <div class="mx-auto grid max-w-[1300px] gap-12 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)]">
        <div>
          <p class="label text-coral">Ask your host</p>
          <h2 class="mt-4 font-serif text-5xl font-light leading-none md:text-6xl">Questions we hear before every journey.</h2>
          <p class="mt-6 max-w-sm text-ink-soft">Tap a question. Giulia, one of our hosts, answers the way she would on the phone.</p>
          <div class="mt-8 flex flex-wrap gap-2">
              <button type="button" data-chat-question data-answer="Very. We handle the logistics that make a first visit stressful, and leave you the parts that make it unforgettable." class="border border-ink/25 px-4 py-2.5 text-left text-sm hover:border-ink">Is it right for a first trip to Italy?</button>
              <button type="button" data-chat-question data-answer="If you can walk two hours with stops, you are fine. Every walking day has a ferry or taxi alternative." class="border border-ink/25 px-4 py-2.5 text-left text-sm hover:border-ink">How fit do I need to be?</button>
              <button type="button" data-chat-question data-answer="About a third of our guests do. Single rooms are available on every departure, at a fair supplement." class="border border-ink/25 px-4 py-2.5 text-left text-sm hover:border-ink">Can I travel alone?</button>
              <button type="button" data-chat-question data-answer="Flights and about half of your dinners, so you can wander and choose. We always leave a list of places we love." class="border border-ink/25 px-4 py-2.5 text-left text-sm hover:border-ink">What is not included?</button>
          </div>
        </div>
        <div class="flex min-h-[420px] flex-col gap-4 border border-ink/15 bg-white p-6 md:p-8" data-chat-log aria-live="polite">
          <div class="flex items-end gap-3">
            <img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="Giulia, journey host" class="h-9 w-9 rounded-full object-cover">
            <p class="max-w-[80%] bg-sand px-5 py-3">Ciao! I am Giulia. Ask me anything about travelling with Lentamar.</p>
          </div>
          <div class="flex justify-end"><p class="max-w-[80%] bg-ink px-5 py-3 text-cream">Do we really get the same host for the whole trip?</p></div>
          <div class="flex items-end gap-3">
            <img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="" class="h-9 w-9 rounded-full object-cover">
            <p class="max-w-[80%] bg-sand px-5 py-3">Yes. The person who plans it with you is the one on WhatsApp while you travel, and usually at the first dinner too.</p>
          </div>
        </div>
      </div>
    </section>
    <!-- block:end faq -->
<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-rail]').forEach((root) => {
      const track = root.querySelector('[data-rail-track]');
      const cards = [...track.querySelectorAll('[data-rail-card]')];
      const label = root.querySelector('[data-rail-index]');
      let current = 0;
      const go = (index) => {
        current = (index + cards.length) % cards.length;
        track.scrollTo({ left: cards[current].offsetLeft - cards[0].offsetLeft, behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
        label.textContent = current + 1;
      };
      root.querySelector('[data-rail-prev]').addEventListener('click', () => go(current - 1));
      root.querySelector('[data-rail-next]').addEventListener('click', () => go(current + 1));
      track.addEventListener('scroll', () => {
        const nearest = cards.reduce((best, card, i) => (Math.abs(card.offsetLeft - cards[0].offsetLeft - track.scrollLeft) < Math.abs(cards[best].offsetLeft - cards[0].offsetLeft - track.scrollLeft) ? i : best), 0);
        current = nearest;
        label.textContent = nearest + 1;
      }, { passive: true });
    });

    document.querySelectorAll('[data-composer]').forEach((root) => {
      const form = root.querySelector('[data-composer-form]');
      const order = ['capri', 'sorrento', 'positano', 'amalfi', 'ravello', 'cilento'];
      const plans = {
        sorrento: ['Arrive in Sorrento, aperitivo on the cliff', 'Lemon grove walk and a cooking class'],
        positano: ['Ferry to Positano, afternoon on the beach', 'Path of the gods at dawn'],
        amalfi: ['Paper mill and cathedral in Amalfi', 'Boat to a hidden cove for lunch'],
        ravello: ['Gardens of Ravello and an evening concert', 'Walk down the old steps to Minori'],
        capri: ['Early boat to Capri, swim at the Faraglioni', 'Anacapri chairlift and a slow lunch'],
        cilento: ['Train south to Cilento, buffalo farm visit', 'Quiet beaches and a fisherman’s supper']
      };
      const paceFactor = { slow: 1, easy: 1.08, full: 1.18 };
      const tabs = root.querySelector('[data-composer-tabs]');
      const days = root.querySelector('[data-composer-days]');
      let activeDay = 0;
      const render = () => {
        const chosen = order.filter((key) => form.querySelector(`[name="stops"][value="${key}"]`).checked);
        const total = Number(form.querySelector('[name="days"]').value);
        const pace = form.querySelector('[name="pace"]:checked').value;
        root.querySelector('[data-composer-days-label]').textContent = total;
        root.querySelector('[data-composer-stops]').textContent = chosen.length;
        root.querySelector('[data-composer-nights]').textContent = total - 1;
        const price = Math.round((1450 + total * 230 + chosen.length * 120) * paceFactor[pace] / 10) * 10;
        root.querySelector('[data-composer-price]').textContent = '€' + price.toLocaleString('en-US');
        const points = chosen.map((key) => root.querySelector(`[data-map-stop="${key}"]`));
        root.querySelectorAll('[data-map-stop] circle').forEach((circle) => circle.setAttribute('fill', '#f9f5ef'));
        points.forEach((group) => group.querySelector('circle').setAttribute('fill', '#c4372b'));
        const line = root.querySelector('[data-route-line]');
        line.setAttribute('d', points.map((group, i) => `${i ? 'L' : 'M'}${group.dataset.x} ${group.dataset.y}`).join(' '));
        const itinerary = [];
        const perStop = chosen.length ? Math.max(1, Math.floor(total / chosen.length)) : total;
        chosen.forEach((key, i) => {
          const nights = i === chosen.length - 1 ? total - perStop * (chosen.length - 1) : perStop;
          for (let n = 0; n < nights; n += 1) itinerary.push({ place: key, text: plans[key][n % 2] + (pace === 'full' && n % 2 ? ', then an evening food walk' : pace === 'slow' && n > 1 ? ' — or simply the beach' : '') });
        });
        while (itinerary.length < total) itinerary.push({ place: 'free', text: 'A free day to swim, read and wander' });
        activeDay = Math.min(activeDay, itinerary.length - 1);
        tabs.innerHTML = '';
        itinerary.forEach((day, i) => {
          const tab = document.createElement('button');
          tab.type = 'button';
          tab.setAttribute('role', 'tab');
          tab.setAttribute('aria-selected', String(i === activeDay));
          tab.className = 'px-3 py-2 text-sm ' + (i === activeDay ? 'bg-coral text-white' : 'text-cream/70 hover:text-cream');
          tab.textContent = 'Day ' + (i + 1);
          tab.addEventListener('click', () => { activeDay = i; render(); });
          tabs.appendChild(tab);
        });
        const day = itinerary[activeDay];
        days.innerHTML = '';
        const place = document.createElement('p');
        place.className = 'label text-coral-soft';
        place.textContent = day.place === 'free' ? 'At leisure' : day.place;
        const text = document.createElement('p');
        text.className = 'mt-3 font-serif text-3xl leading-snug';
        text.textContent = day.text;
        days.append(place, text);
      };
      form.addEventListener('change', render);
      form.addEventListener('input', render);
      render();
    });

    document.querySelectorAll('[data-chat-faq]').forEach((root) => {
      const log = root.querySelector('[data-chat-log]');
      root.querySelectorAll('[data-chat-question]').forEach((button) => button.addEventListener('click', () => {
        const ask = document.createElement('div');
        ask.className = 'flex justify-end';
        ask.innerHTML = '<p class="max-w-[80%] bg-ink px-5 py-3 text-cream"></p>';
        ask.querySelector('p').textContent = button.textContent;
        const reply = document.createElement('div');
        reply.className = 'flex items-end gap-3';
        reply.innerHTML = '<img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="" class="h-9 w-9 rounded-full object-cover"><p class="max-w-[80%] bg-sand px-5 py-3"></p>';
        reply.querySelector('p').textContent = button.dataset.answer;
        log.append(ask, reply);
        while (log.children.length > 7) log.removeChild(log.children[1]);
        button.disabled = true;
        button.classList.add('opacity-40');
      }));
    });

    document.querySelectorAll('[data-toggle-chip]').forEach((chip) => {
      chip.addEventListener('click', () => chip.setAttribute('aria-pressed', String(chip.getAttribute('aria-pressed') !== 'true')));
    });

    document.querySelectorAll('[data-success-form]').forEach((form) => {
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        if (!form.reportValidity()) return;
        form.querySelector('[data-success]').hidden = false;
        form.reset();
      });
    });
  </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

Lentamar screenshot Premium

Viajes

Lentamar

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