Gratis
Eventos
Ferrant Events
A events block extracted from the Ferrant template, available in Tailwind CSS.
0
9
A events block extracted from the Ferrant 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>Ferrant Events | Tailwind CSS UI Block</title>
<meta name="description" content="A events block extracted from the Ferrant template, available in Tailwind CSS.">
<meta name="keywords" content="Ferrant, Tailwind CSS template, HTML website template, boutique hotel template, guest house website, hotel rooms, room rates calculator, hotel restaurant menu, reservation form, travel template, premium 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="Ferrant | Tailwind CSS Travel Template">
<meta property="og:description" content="An editorial Tailwind CSS template for boutique hotels, with a ruled serif headline, a room index, a stay composer, a restaurant menu and a reservation request page.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Ferrant template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Ferrant | Tailwind CSS Travel Template">
<meta name="twitter:description" content="An editorial Tailwind CSS template for boutique hotels, with a ruled serif headline, a room index, a stay composer, a restaurant menu and a reservation request page.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Ferrant 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=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
stone: { DEFAULT: '#eceae4', light: '#f6f4ef', line: '#cdc9bf' },
ink: { DEFAULT: '#121212', soft: '#45433f', mute: '#77736b' },
bronze: { DEFAULT: '#9a7b4f', deep: '#7b6038' }
},
fontFamily: {
serif: ['"EB Garamond"', 'serif'],
sans: ['Inter', 'sans-serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.display { font-family: "EB Garamond", serif; font-weight: 400; letter-spacing: -.02em; line-height: .95; }
.rule { display: block; height: .045em; min-width: 1.2em; flex: 1 1 0; background: currentColor; transform: translateY(.06em); }
.bw { filter: grayscale(1) contrast(1.08); transition: filter .6s ease; }
.bw-hover:hover .bw, .bw-hover:focus-visible .bw { filter: none; }
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.marquee { display: flex; overflow: hidden; gap: 3rem; }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 3rem; animation: marquee 60s linear infinite; }
.marquee[data-reverse] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 3rem)); } }
.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) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } .bw { transition: none; } }
</style>
</head>
<body class="bg-stone font-sans text-ink antialiased">
<!-- block:start events -->
<section id="day" class="mx-auto max-w-[1400px] px-5 py-20 md:px-12 md:py-28">
<div class="flex flex-wrap items-end justify-between gap-6">
<div>
<p class="font-serif text-xl">Through the day:</p>
<h2 class="display mt-4 max-w-2xl text-4xl md:text-6xl">Nothing is compulsory. Most of it is free.</h2>
</div>
<div class="flex gap-3">
<button type="button" data-rail-prev aria-label="Earlier in the day" class="flex h-11 w-11 items-center justify-center rounded-full border border-ink hover:bg-ink hover:text-white"><i class="fa-solid fa-arrow-left-long"></i></button>
<button type="button" data-rail-next aria-label="Later in the day" class="flex h-11 w-11 items-center justify-center rounded-full border border-ink hover:bg-ink hover:text-white"><i class="fa-solid fa-arrow-right-long"></i></button>
</div>
</div>
<div class="rail mt-12 flex snap-x snap-mandatory gap-6 overflow-x-auto" data-rail tabindex="0" aria-label="The day at Ferrant, scroll sideways">
<article class="w-[82%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<img src="https://images.unsplash.com/photo-1525351484163-7529414344d8?auto=format&fit=crop&w=800&q=80" alt="Fried egg on toast with avocado on a white plate" class="aspect-[4/3] w-full object-cover">
<p class="mt-5 flex items-center gap-4"><span class="display text-5xl">07:30</span><span class="rule text-ink" aria-hidden="true" style="height: 1px"></span><span class="text-xs text-ink-mute">Every morning</span></p>
<h3 class="mt-4 font-serif text-2xl">Bread comes up the hill</h3>
<p class="mt-2 text-sm leading-relaxed text-ink-soft">From the bakery on Rua dos Remédios, still warm. Breakfast is laid in the courtyard and stays out until noon.</p>
</article>
<article class="w-[82%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<img src="https://images.unsplash.com/photo-1536663815808-535e2280d2c2?auto=format&fit=crop&w=800&q=80" alt="Terracotta rooftops of Alfama running down to the river" class="aspect-[4/3] w-full object-cover">
<p class="mt-5 flex items-center gap-4"><span class="display text-5xl">11:00</span><span class="rule text-ink" aria-hidden="true" style="height: 1px"></span><span class="text-xs text-ink-mute">Tuesdays and Fridays</span></p>
<h3 class="mt-4 font-serif text-2xl">A walk with Inês</h3>
<p class="mt-2 text-sm leading-relaxed text-ink-soft">Our housekeeper grew up four doors down. She takes six guests through the back stairs of Alfama, and ends at her cousin's ginjinha bar.</p>
</article>
<article class="w-[82%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<img src="https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=800&q=80" alt="Three hands holding cups of coffee over a wooden table" class="aspect-[4/3] w-full object-cover">
<p class="mt-5 flex items-center gap-4"><span class="display text-5xl">16:00</span><span class="rule text-ink" aria-hidden="true" style="height: 1px"></span><span class="text-xs text-ink-mute">Every afternoon</span></p>
<h3 class="mt-4 font-serif text-2xl">Coffee and custard tarts</h3>
<p class="mt-2 text-sm leading-relaxed text-ink-soft">In the library, on the house. The tarts come from the place the neighbours queue at, not the one in the guidebooks.</p>
</article>
<article class="w-[82%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<img src="https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=800&q=80" alt="Plated dinner on a long table set with wine glasses" class="aspect-[4/3] w-full object-cover">
<p class="mt-5 flex items-center gap-4"><span class="display text-5xl">19:30</span><span class="rule text-ink" aria-hidden="true" style="height: 1px"></span><span class="text-xs text-ink-mute">Thursdays</span></p>
<h3 class="mt-4 font-serif text-2xl">The long table</h3>
<p class="mt-2 text-sm leading-relaxed text-ink-soft">One sitting, sixteen chairs, whatever the fishmonger had. Guests first, then the street. €38 with wine.</p>
</article>
<article class="w-[82%] shrink-0 snap-start sm:w-[46%] lg:w-[30%]">
<img src="https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=800&q=80" alt="Amber cocktail with a sprig of rosemary on a dark bar" class="aspect-[4/3] w-full object-cover">
<p class="mt-5 flex items-center gap-4"><span class="display text-5xl">22:00</span><span class="rule text-ink" aria-hidden="true" style="height: 1px"></span><span class="text-xs text-ink-mute">Every night</span></p>
<h3 class="mt-4 font-serif text-2xl">The honesty bar</h3>
<p class="mt-2 text-sm leading-relaxed text-ink-soft">Port, vinho verde, three kinds of gin and a ledger. Write down what you pour. The record player takes requests.</p>
</article>
</div>
</section>
<!-- block:end events -->
<script>
// Mobile menu
(() => {
const toggle = document.querySelector("[data-menu-toggle]");
const menu = document.getElementById("mobile-menu");
if (!toggle || !menu) return;
toggle.addEventListener("click", () => {
const open = toggle.getAttribute("aria-expanded") === "true";
toggle.setAttribute("aria-expanded", String(!open));
toggle.setAttribute("aria-label", open ? "Open menu" : "Close menu");
menu.hidden = open;
});
})();
// Room index swaps the photo
(() => {
const image = document.querySelector("[data-room-image]");
if (!image) return;
document.querySelectorAll("[data-room-item]").forEach((item) => {
const show = () => {
if (image.src === item.dataset.image) return;
image.style.opacity = "0";
setTimeout(() => {
image.src = item.dataset.image;
image.alt = item.dataset.alt;
image.style.opacity = "1";
}, 150);
};
item.addEventListener("mouseenter", show);
item.addEventListener("focus", show);
});
})();
// Stay composer
(() => {
const root = document.querySelector("[data-stay]");
if (!root) return;
const form = root.querySelector("[data-stay-form]");
const words = ["One night", "Two nights", "Three nights", "Four nights", "Five nights", "Six nights", "A week", "Eight nights", "Nine nights", "Ten nights", "Eleven nights", "Twelve nights", "Thirteen nights", "A fortnight"];
const seasons = { "Quiet months": "in the quiet months", "Spring and autumn": "in spring or autumn", "High summer": "in high summer" };
const set = (name, text) => { root.querySelector(`[data-stay-${name}]`).textContent = text; };
let nights = 3;
const update = () => {
const room = form.querySelector("input[name=room]:checked");
const season = form.querySelector("input[name=season]:checked");
const rate = Math.round(Number(room.dataset.rate) * Number(season.dataset.factor) / 5) * 5;
const discount = nights >= 7 ? 0.15 : nights >= 5 ? 0.1 : 0;
const full = rate * nights;
const total = Math.round(full * (1 - discount));
const perk = nights >= 7 ? "15% off and a car from the airport" : nights >= 5 ? "10% off and your laundry done" : nights >= 3 ? "a late check-out at two" : "breakfast until noon";
set("nights", nights);
set("words", words[nights - 1]);
set("room", room.value);
set("season", seasons[season.value]);
set("perk", perk);
set("rate", "€" + rate);
set("total", "€" + total.toLocaleString("en-GB"));
set("saving", discount ? "€" + (full - total).toLocaleString("en-GB") : "–");
root.querySelector("[data-stay-line]").style.width = (nights / 14 * 100) + "%";
root.querySelectorAll("[data-stay-mark]").forEach((mark) => { mark.style.opacity = nights >= Number(mark.dataset.stayMark) ? "1" : ".45"; });
try {
sessionStorage.setItem("ferrant-stay", JSON.stringify({ nights, room: room.value, season: season.value, total }));
} catch (error) { /* storage is optional */ }
};
root.querySelector("[data-stay-less]").addEventListener("click", () => { nights = Math.max(1, nights - 1); update(); });
root.querySelector("[data-stay-more]").addEventListener("click", () => { nights = Math.min(14, nights + 1); update(); });
form.addEventListener("input", update);
form.addEventListener("submit", (event) => event.preventDefault());
update();
})();
// Day rail arrows
(() => {
const rail = document.querySelector("[data-rail]");
if (!rail) return;
const step = (direction) => {
const card = rail.firstElementChild;
rail.scrollBy({ left: direction * (card.offsetWidth + 24), behavior: "smooth" });
};
document.querySelector("[data-rail-prev]").addEventListener("click", () => step(-1));
document.querySelector("[data-rail-next]").addEventListener("click", () => step(1));
})();
// Postcard sign-up
(() => {
const form = document.querySelector("[data-postcard]");
if (!form) return;
form.addEventListener("submit", (event) => {
event.preventDefault();
form.querySelector("[data-postcard-done]").hidden = false;
form.reset();
});
})();
// Scroll reveal
(() => {
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.
Tailwind CSS · HTML download
Si no empieza, haz clic aquí.
¿Te gustan nuestras plantillas gratis?
Una pequeña propina nos ayuda a seguir añadiendo nuevas cada semana.
Invítanos a un café