Gratis
Llamada a la acción
Cairnlight Call to action
A call to action block extracted from the Cairnlight template, available in Tailwind CSS.
0
6
A call to action block extracted from the Cairnlight 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>Cairnlight Call to action | Tailwind CSS UI Block</title>
<meta name="description" content="A call to action block extracted from the Cairnlight template, available in Tailwind CSS.">
<meta name="keywords" content="Cairnlight, Tailwind CSS template, HTML website template, travel website template, walking holidays, tour operator template, mountain huts, interactive map, itinerary page, trip price calculator">
<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="Cairnlight | Tailwind CSS Travel Template">
<meta property="og:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Cairnlight template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Cairnlight | Tailwind CSS Travel Template">
<meta name="twitter:description" content="A deep green Tailwind CSS template for walking holidays and tour operators, with a glowing map of huts filtered by season, a rail of routes, a trip price builder, a day-by-day route page and a booking enquiry form.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Cairnlight 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:wght@300;400;500&family=Jost:wght@300;400;500&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
pine: { DEFAULT: '#073a2f', deep: '#042720', land: '#0f5342', high: '#17654f' },
cream: '#efe9dc',
mint: '#9fd8c0'
},
fontFamily: {
sans: ['Jost', 'sans-serif'],
serif: ['"Cormorant Garamond"', 'serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.night { background: radial-gradient(120% 90% at 55% 45%, #0a4a3b 0%, #073a2f 45%, #042720 100%); }
.lamp { fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .85)); transition: opacity .5s ease; }
.lamp[data-dim] { opacity: .1; }
.label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.slant { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.lead { display: inline-flex; align-items: center; }
.lead::before { content: ""; width: .4rem; height: .4rem; border: 1px solid currentColor; border-radius: 9999px; }
.lead > span:first-child { width: 1.75rem; height: 1px; background: currentColor; }
.lead > span:last-child { border: 1px solid currentColor; padding: .85rem 1.6rem; transition: background-color .3s ease, color .3s ease; }
.lead:hover > span:last-child { background: #efe9dc; color: #042720; }
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.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) { .lamp { transition: none; } }
</style>
</head>
<body class="bg-pine-deep font-sans font-light text-cream antialiased">
<!-- block:start cta -->
<section class="night relative overflow-hidden px-6 py-24 md:px-12 md:py-40">
<svg viewBox="0 0 1200 400" preserveAspectRatio="xMidYMid slice" class="absolute inset-0 h-full w-full" aria-hidden="true">
<circle class="lamp" cx="90" cy="310" r="3" opacity=".7"/>
<circle class="lamp" cx="160" cy="120" r="4" opacity=".7"/>
<circle class="lamp" cx="250" cy="240" r="2" opacity=".7"/>
<circle class="lamp" cx="330" cy="60" r="3" opacity=".7"/>
<circle class="lamp" cx="420" cy="330" r="5" opacity=".7"/>
<circle class="lamp" cx="530" cy="150" r="2" opacity=".7"/>
<circle class="lamp" cx="640" cy="70" r="3" opacity=".7"/>
<circle class="lamp" cx="700" cy="300" r="2" opacity=".7"/>
<circle class="lamp" cx="790" cy="190" r="4" opacity=".7"/>
<circle class="lamp" cx="880" cy="50" r="2" opacity=".7"/>
<circle class="lamp" cx="940" cy="320" r="3" opacity=".7"/>
<circle class="lamp" cx="1030" cy="140" r="5" opacity=".7"/>
<circle class="lamp" cx="1110" cy="260" r="3" opacity=".7"/>
<circle class="lamp" cx="1160" cy="70" r="2" opacity=".7"/>
</svg>
<div class="relative mx-auto max-w-[1100px] text-center">
<h2 class="font-serif text-5xl font-light leading-[1.05] md:text-7xl">The lamps are lit from the first of April.</h2>
<p class="mx-auto mt-6 max-w-md text-cream/75">Tell us when you can come and how far you like to walk. We will send a route and hold the beds for a week.</p>
<a href="contact.html" class="lead label mt-10"><span></span><span>Plan a walk</span></a>
</div>
</section>
<!-- block:end cta -->
<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-huts]").forEach((root) => {
const seasons = root.querySelectorAll("[data-season]");
const views = root.querySelectorAll("[data-view]");
const huts = root.querySelectorAll("[data-hut]");
seasons.forEach((season) => season.addEventListener("click", () => {
seasons.forEach((other) => other.setAttribute("aria-pressed", String(other === season)));
const key = season.dataset.season;
let open = 0;
huts.forEach((hut) => {
const lit = key === "all" || hut.dataset.open.split(" ").includes(key);
if (hut.tagName.toLowerCase() === "circle") { hut.toggleAttribute("data-dim", !lit); if (lit) open += 1; } else { hut.hidden = !lit; }
});
root.querySelector("[data-huts-count]").textContent = open;
}));
views.forEach((view) => view.addEventListener("click", () => {
views.forEach((other) => other.setAttribute("aria-pressed", String(other === view)));
root.querySelectorAll("[data-view-panel]").forEach((panel) => { panel.toggleAttribute("hidden", panel.dataset.viewPanel !== view.dataset.view); });
}));
});
document.querySelectorAll("[data-rail]").forEach((rail) => {
const track = rail.querySelector("[data-rail-track]");
const move = (direction) => track.scrollBy({ left: direction * (track.firstElementChild.clientWidth + 24), behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth" });
rail.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
rail.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
});
document.querySelectorAll("[data-trip]").forEach((trip) => {
const nightButtons = trip.querySelectorAll("[data-trip-nights]");
const walkersLabel = trip.querySelector("[data-trip-walkers]");
const link = trip.querySelector("[data-trip-link]");
let nights = 5;
let walkers = 2;
const update = () => {
const extra = (key) => { const box = trip.querySelector(`[data-trip-extra="${key}"]`); return box.checked ? Number(box.dataset.price) : 0; };
const total = walkers * nights * (78 + extra("bag") + extra("lunch")) + nights * extra("guide");
walkersLabel.textContent = walkers;
trip.querySelector("[data-trip-total]").textContent = total.toLocaleString("en-GB");
trip.querySelector("[data-trip-each]").textContent = Math.round(total / walkers).toLocaleString("en-GB");
trip.querySelector("[data-trip-nights-label]").textContent = nights;
if (link) link.href = `contact.html?nights=${nights}&walkers=${walkers}`;
};
nightButtons.forEach((button) => button.addEventListener("click", () => {
nights = Number(button.dataset.tripNights);
nightButtons.forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
update();
}));
trip.querySelectorAll("[data-trip-step]").forEach((button) => button.addEventListener("click", () => {
walkers = Math.min(8, Math.max(1, walkers + Number(button.dataset.tripStep)));
update();
}));
trip.addEventListener("change", update);
update();
});
document.querySelectorAll("[data-quotes]").forEach((root) => {
const quotes = JSON.parse(root.querySelector("[data-quotes-data]").textContent);
let index = 0;
root.querySelectorAll("[data-quotes-step]").forEach((button) => button.addEventListener("click", () => {
index = (index + Number(button.dataset.quotesStep) + quotes.length) % quotes.length;
root.querySelector("[data-quotes-quote]").textContent = quotes[index].quote;
root.querySelector("[data-quotes-name]").textContent = quotes[index].name;
root.querySelector("[data-quotes-place]").textContent = quotes[index].place;
root.querySelector("[data-quotes-index]").textContent = index + 1;
}));
});
(() => {
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>
Premium
Viajes
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.