Gratis
Demo
Lentamar Demo
A demo block extracted from the Lentamar template, available in Tailwind CSS.
0
6
A demo block extracted from the Lentamar template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access
<!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 Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo 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 demo -->
<section id="composer" class="bg-ink px-5 py-24 text-cream md:px-16 lg:py-32" data-composer>
<div class="mx-auto max-w-[1300px]">
<div class="grid gap-6 lg:grid-cols-[1fr_1fr] lg:items-end">
<div>
<p class="label text-coral-soft">Itinerary composer</p>
<h2 class="mt-4 font-serif text-5xl font-light leading-none md:text-7xl">Draw your own line along the coast.</h2>
</div>
<p class="max-w-md text-lg text-cream/70 lg:justify-self-end">Pick the places, the number of days and how slowly you like to travel. We sketch the route and a first price; your host turns it into a real journey.</p>
</div>
<div class="mt-14 grid gap-10 lg:grid-cols-[minmax(0,1.15fr)_minmax(0,1fr)]">
<div class="bg-cream p-5 text-ink md:p-8">
<svg viewBox="0 0 600 360" class="w-full" role="img" aria-label="Sketch map of the Amalfi and Sorrento coast with your chosen stops">
<rect width="600" height="360" fill="#dde9ea"/>
<path d="M0 40 C 80 60, 120 30, 190 70 S 300 140, 360 120 S 470 90, 520 150 S 580 230, 600 220 L600 0 L0 0 Z" fill="#ece3d6" stroke="#1b1916" stroke-width="1.5"/>
<path d="M40 300 c 20 -14 50 -14 70 0 c -20 14 -50 14 -70 0z" fill="#ece3d6" stroke="#1b1916" stroke-width="1.2"/>
<text x="58" y="330" font-family="Jost" font-size="12" letter-spacing="2" fill="#4a453f">CAPRI</text>
<text x="440" y="300" font-family="Cormorant Garamond" font-style="italic" font-size="26" fill="#45727a">Tyrrhenian Sea</text>
<path data-route-line class="route-line" d="" fill="none" stroke="#c4372b" stroke-width="3" stroke-dasharray="8 6"/>
<g data-map-stop="sorrento" data-x="120" data-y="92">
<circle cx="120" cy="92" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="132" y="82" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">SORRENTO</text>
</g>
<g data-map-stop="positano" data-x="250" data-y="118">
<circle cx="250" cy="118" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="262" y="108" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">POSITANO</text>
</g>
<g data-map-stop="amalfi" data-x="345" data-y="128">
<circle cx="345" cy="128" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="357" y="118" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">AMALFI</text>
</g>
<g data-map-stop="ravello" data-x="380" data-y="92">
<circle cx="380" cy="92" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="392" y="82" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">RAVELLO</text>
</g>
<g data-map-stop="capri" data-x="75" data-y="300">
<circle cx="75" cy="300" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="87" y="290" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">CAPRI</text>
</g>
<g data-map-stop="cilento" data-x="540" data-y="210">
<circle cx="540" cy="210" r="8" fill="#f9f5ef" stroke="#1b1916" stroke-width="2"/>
<text x="552" y="200" font-family="Jost" font-size="13" letter-spacing="1.5" fill="#1b1916">CILENTO</text>
</g>
</svg>
<div class="mt-6 grid grid-cols-3 gap-4 border-t border-ink/15 pt-5 text-center">
<div><p class="label text-ink/55">Stops</p><p class="mt-1 font-serif text-4xl" data-composer-stops>3</p></div>
<div><p class="label text-ink/55">Nights</p><p class="mt-1 font-serif text-4xl" data-composer-nights>7</p></div>
<div><p class="label text-ink/55">Per person</p><p class="mt-1 font-serif text-4xl text-coral" data-composer-price>€3,650</p></div>
</div>
</div>
<form class="flex flex-col gap-8" data-composer-form>
<fieldset>
<legend class="label text-cream/60">1 — Your stops</legend>
<div class="mt-4 flex flex-wrap gap-2">
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="sorrento" class="sr-only" checked>Sorrento</label>
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="positano" class="sr-only" checked>Positano</label>
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="amalfi" class="sr-only" checked>Amalfi</label>
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="ravello" class="sr-only" >Ravello</label>
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="capri" class="sr-only" >Capri</label>
<label class="stop-chip-dark cursor-pointer border border-cream/30 bg-cream/5 px-4 py-2.5 text-sm text-cream hover:border-cream"><input type="checkbox" name="stops" value="cilento" class="sr-only" >Cilento</label>
</div>
</fieldset>
<div>
<label for="composer-days" class="label flex justify-between text-cream/60"><span>2 — Length</span><span class="text-cream"><span data-composer-days-label>8</span> days</span></label>
<input id="composer-days" type="range" name="days" min="5" max="14" value="8" class="mt-4 w-full accent-[#c4372b]">
</div>
<fieldset>
<legend class="label text-cream/60">3 — Pace</legend>
<div class="mt-4 grid grid-cols-3 gap-2">
<label class="pace-chip cursor-pointer border border-cream/30 px-3 py-2.5 text-center text-sm"><input type="radio" name="pace" value="slow" class="sr-only" checked>Slow</label>
<label class="pace-chip cursor-pointer border border-cream/30 px-3 py-2.5 text-center text-sm"><input type="radio" name="pace" value="easy" class="sr-only" >Easy</label>
<label class="pace-chip cursor-pointer border border-cream/30 px-3 py-2.5 text-center text-sm"><input type="radio" name="pace" value="full" class="sr-only" >Full</label>
</div>
</fieldset>
<div>
<div class="flex flex-wrap gap-1 border-b border-cream/20" role="tablist" aria-label="Days of your journey" data-composer-tabs></div>
<div class="min-h-[132px] pt-5" data-composer-days aria-live="polite"></div>
</div>
<a href="contact.html" class="label inline-flex items-center justify-center gap-3 self-start bg-coral px-7 py-4 text-white hover:bg-cream hover:text-ink">Send this route to a host <i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
</form>
</div>
</div>
</section>
<!-- block:end demo -->
<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>
Premium
Viajes
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.