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

Lentamar Products

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

0 9
Lentamar Products 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 Products | Tailwind CSS UI Block</title>
  <meta name="description" content="A products 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 products -->
    <section id="journeys" class="bg-sand py-24 lg:py-32" data-rail>
      <div class="mx-auto max-w-[1440px] px-5 md:px-16">
        <div class="flex flex-col justify-between gap-6 md:flex-row md:items-end">
          <div>
            <p class="label text-coral">This season</p>
            <h2 class="mt-4 max-w-xl font-serif text-5xl font-light leading-none md:text-7xl">Five journeys, five coastlines.</h2>
          </div>
          <div class="flex items-center gap-8">
            <button type="button" data-rail-prev class="label inline-flex items-center gap-3 hover:text-coral"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i>Previous</button>
            <p class="label" aria-live="polite"><span data-rail-index>1</span> / 5</p>
            <button type="button" data-rail-next class="label inline-flex items-center gap-3 hover:text-coral">Next<i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
          </div>
        </div>
      </div>
      <div class="rail mt-14 flex snap-x snap-mandatory scroll-px-5 gap-6 overflow-x-auto px-5 pb-4 md:scroll-px-16 md:px-16" data-rail-track tabindex="0" aria-label="Journeys">
          <a href="the-amalfi-coast.html" data-rail-card class="group w-[82vw] shrink-0 snap-start sm:w-[420px]">
            <div class="overflow-hidden">
              <img src="https://images.unsplash.com/photo-1612698093158-e07ac200d44e?auto=format&fit=crop&w=900&q=80" alt="Pastel houses stacked up a green cliff above a small harbour" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
            </div>
            <div class="mt-5 flex items-start justify-between gap-4">
              <div>
                <p class="label text-ink/55">01 — Amalfi Coast, Italy</p>
                <h3 class="mt-2 font-serif text-3xl">Lemon Terraces</h3>
              </div>
              <p class="text-right"><span class="block font-serif text-2xl">€3,480</span><span class="label text-ink/55">8 days</span></p>
            </div>
          </a>
          <a href="departures.html" data-rail-card class="group w-[82vw] shrink-0 snap-start sm:w-[420px]">
            <div class="overflow-hidden">
              <img src="https://images.unsplash.com/photo-1530841377377-3ff06c0ca713?auto=format&fit=crop&w=900&q=80" alt="Blue domes and whitewashed churches above the Aegean" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
            </div>
            <div class="mt-5 flex items-start justify-between gap-4">
              <div>
                <p class="label text-ink/55">02 — Cyclades, Greece</p>
                <h3 class="mt-2 font-serif text-3xl">White Islands</h3>
              </div>
              <p class="text-right"><span class="block font-serif text-2xl">€3,150</span><span class="label text-ink/55">10 days</span></p>
            </div>
          </a>
          <a href="departures.html" data-rail-card class="group w-[82vw] shrink-0 snap-start sm:w-[420px]">
            <div class="overflow-hidden">
              <img src="https://images.unsplash.com/photo-1534445867742-43195f401b6c?auto=format&fit=crop&w=900&q=80" alt="Colourful village on a rocky headland over clear green sea" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
            </div>
            <div class="mt-5 flex items-start justify-between gap-4">
              <div>
                <p class="label text-ink/55">03 — Cinque Terre, Italy</p>
                <h3 class="mt-2 font-serif text-3xl">Five Villages on Foot</h3>
              </div>
              <p class="text-right"><span class="block font-serif text-2xl">€2,690</span><span class="label text-ink/55">7 days</span></p>
            </div>
          </a>
          <a href="departures.html" data-rail-card class="group w-[82vw] shrink-0 snap-start sm:w-[420px]">
            <div class="overflow-hidden">
              <img src="https://images.unsplash.com/photo-1555990793-da11153b2473?auto=format&fit=crop&w=900&q=80" alt="Walled old town with terracotta roofs beside a harbour" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
            </div>
            <div class="mt-5 flex items-start justify-between gap-4">
              <div>
                <p class="label text-ink/55">04 — Dalmatia, Croatia</p>
                <h3 class="mt-2 font-serif text-3xl">Stone and Salt</h3>
              </div>
              <p class="text-right"><span class="block font-serif text-2xl">€2,940</span><span class="label text-ink/55">9 days</span></p>
            </div>
          </a>
          <a href="departures.html" data-rail-card class="group w-[82vw] shrink-0 snap-start sm:w-[420px]">
            <div class="overflow-hidden">
              <img src="https://images.unsplash.com/photo-1555881400-74d7acaacd8b?auto=format&fit=crop&w=900&q=80" alt="Colourful riverside houses with boats moored in front" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
            </div>
            <div class="mt-5 flex items-start justify-between gap-4">
              <div>
                <p class="label text-ink/55">05 — Porto to the Algarve</p>
                <h3 class="mt-2 font-serif text-3xl">Atlantic Edge</h3>
              </div>
              <p class="text-right"><span class="block font-serif text-2xl">€3,320</span><span class="label text-ink/55">11 days</span></p>
            </div>
          </a>
      </div>
    </section>
    <!-- block:end products -->
<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