Free
Products
Marram Products
A products block extracted from the Marram template, available in Tailwind CSS.
0
2
A products block extracted from the Marram template, available in Tailwind CSS.
<!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>Marram Products | Tailwind CSS UI Block</title>
<meta name="description" content="A products block extracted from the Marram template, available in Tailwind CSS.">
<meta name="keywords" content="Marram, Tailwind CSS template, HTML website template, travel template, guesthouse website, bed and breakfast template, small hotel website, rooms and rates page, booking request form, minimal 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="Marram | Tailwind CSS Travel Template">
<meta property="og:description" content="A calm Tailwind CSS travel template for guesthouses, bed and breakfasts and small hotels, with a line-drawn emblem, a mustard facts band, room tabs, a sun dial of the day, a handwritten guestbook, rooms and rates and a booking request form.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Marram template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Marram | Tailwind CSS Travel Template">
<meta name="twitter:description" content="A calm Tailwind CSS travel template for guesthouses, bed and breakfasts and small hotels, with a line-drawn emblem, a mustard facts band, room tabs, a sun dial of the day, a handwritten guestbook, rooms and rates and a booking request form.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Marram 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=Caveat:wght@500&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,800;1,6..12,300&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
paper: '#ecebe8',
ink: '#161616',
sun: '#e8d23a',
clay: '#b4532e',
stone: '#6f6d68'
},
fontFamily: {
sans: ['"Nunito Sans"', 'sans-serif'],
hand: ['Caveat', 'cursive']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.airy { font-style: italic; font-weight: 300; letter-spacing: .08em; text-transform: lowercase; }
.label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tag { background: #b4532e; color: #fff; padding: .15rem .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s ease; }
.tag:hover, .tag[aria-current] { background: #161616; }
.under { border-bottom: 1.5px solid currentColor; padding-bottom: .2rem; transition: color .2s ease; }
.under:hover { color: #b4532e; }
.btn { display: inline-flex; align-items: center; gap: .7rem; background: #161616; color: #fff; padding: .9rem 1.5rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s ease; }
.btn:hover { background: #b4532e; }
.side { writing-mode: vertical-rl; }
.field { width: 100%; border: 0; border-bottom: 1.5px solid #161616; background: transparent; padding: .7rem 0; font-size: 1.05rem; color: #161616; outline: none; border-radius: 0; }
.field:focus { border-color: #b4532e; }
.chip { display: inline-flex; align-items: center; border: 1.5px solid #161616; padding: .5rem 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], input:checked + .chip { background: #161616; color: #fff; }
input:focus-visible + .chip { outline: 2px solid #b4532e; outline-offset: 3px; }
.dial { position: relative; aspect-ratio: 2 / 1; --x: 50; --y: 12; }
.dial-sun { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); height: 2.75rem; width: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border: 2.5px solid #161616; border-radius: 999px; background: #ecebe8; transition: left .6s ease, top .6s ease; }
.note { background: #fff; padding: 1.6rem 1.5rem; break-inside: avoid; margin-bottom: 1.5rem; }
.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) { .dial-sun { transition: none; } html { scroll-behavior: auto; } }
</style>
</head>
<body class="bg-paper font-sans text-ink antialiased">
<!-- block:start products -->
<section id="rooms" class="px-6 py-20 md:px-12 md:py-28" data-tabs>
<div class="grid gap-12 lg:grid-cols-12">
<div class="lg:col-span-4">
<p class="label text-stone">Where you will sleep</p>
<h2 class="airy mt-4 text-4xl leading-snug md:text-5xl md:leading-snug">six rooms,<br>no two alike</h2>
<div role="tablist" aria-label="Rooms" aria-orientation="vertical" class="mt-10 flex flex-col items-start border-t border-ink/25">
<button type="button" role="tab" id="room-tab-0" aria-controls="room-0" aria-selected="true" data-tab="0" class="group flex w-full items-center justify-between border-b border-ink/25 py-5 text-left text-xl font-semibold lowercase text-stone aria-selected:text-ink">
<span><span class="label mr-4">01</span>The Lantern Room</span>
<i class="fa-solid fa-arrow-right text-sm opacity-0 group-aria-selected:opacity-100" aria-hidden="true"></i>
</button>
<button type="button" role="tab" id="room-tab-1" aria-controls="room-1" aria-selected="false" data-tab="1" class="group flex w-full items-center justify-between border-b border-ink/25 py-5 text-left text-xl font-semibold lowercase text-stone aria-selected:text-ink">
<span><span class="label mr-4">02</span>The Loft</span>
<i class="fa-solid fa-arrow-right text-sm opacity-0 group-aria-selected:opacity-100" aria-hidden="true"></i>
</button>
<button type="button" role="tab" id="room-tab-2" aria-controls="room-2" aria-selected="false" data-tab="2" class="group flex w-full items-center justify-between border-b border-ink/25 py-5 text-left text-xl font-semibold lowercase text-stone aria-selected:text-ink">
<span><span class="label mr-4">03</span>The Bath House</span>
<i class="fa-solid fa-arrow-right text-sm opacity-0 group-aria-selected:opacity-100" aria-hidden="true"></i>
</button>
</div>
<a href="rooms.html" class="label under mt-8 inline-block">See all six rooms</a>
</div>
<div class="lg:col-span-7 lg:col-start-6">
<div role="tabpanel" id="room-0" aria-labelledby="room-tab-0" data-panel="0" >
<img src="https://images.unsplash.com/photo-1634207522611-74c4024941a0?auto=format&fit=crop&w=1400&q=80" alt="Bright bedroom with a white bed, pale pink cushions and white wardrobes" class="aspect-[4/3] w-full object-cover">
<div class="mt-6 grid gap-6 md:grid-cols-12">
<p class="text-lg leading-relaxed md:col-span-7">The first room to catch the sun, with a wide bed, white shutters and the sea beyond the garden wall.</p>
<div class="md:col-span-4 md:col-start-9">
<p class="label">Sea view, king bed</p>
<p class="mt-2 text-sm uppercase tracking-[.12em] text-stone">From £165 a night, with breakfast</p>
<a href="the-lantern-room.html" class="label under mt-4 inline-block">Look inside <span class="sr-only">The Lantern Room</span></a>
</div>
</div>
</div>
<div role="tabpanel" id="room-1" aria-labelledby="room-tab-1" data-panel="1" hidden>
<img src="https://images.unsplash.com/photo-1727270921836-3d51d25d9e33?auto=format&fit=crop&w=1400&q=80" alt="Attic bedroom with wooden beams, a stone fireplace and an armchair" class="aspect-[4/3] w-full object-cover">
<div class="mt-6 grid gap-6 md:grid-cols-12">
<p class="text-lg leading-relaxed md:col-span-7">Under the beams at the top of the house, with a fire laid for you and a chair that is hard to leave.</p>
<div class="md:col-span-4 md:col-start-9">
<p class="label">Sea view, fireplace</p>
<p class="mt-2 text-sm uppercase tracking-[.12em] text-stone">From £185 a night, with breakfast</p>
<a href="rooms.html" class="label under mt-4 inline-block">Look inside <span class="sr-only">The Loft</span></a>
</div>
</div>
</div>
<div role="tabpanel" id="room-2" aria-labelledby="room-tab-2" data-panel="2" hidden>
<img src="https://images.unsplash.com/photo-1671497601148-bc2375e45a74?auto=format&fit=crop&w=1400&q=80" alt="Dark freestanding bathtub beside a large window looking over dunes to the sea" class="aspect-[4/3] w-full object-cover">
<div class="mt-6 grid gap-6 md:grid-cols-12">
<p class="text-lg leading-relaxed md:col-span-7">A room in the garden with its own door, and a deep bath set in front of the dunes.</p>
<div class="md:col-span-4 md:col-start-9">
<p class="label">Own entrance, bath with a view</p>
<p class="mt-2 text-sm uppercase tracking-[.12em] text-stone">From £195 a night, with breakfast</p>
<a href="rooms.html" class="label under mt-4 inline-block">Look inside <span class="sr-only">The Bath House</span></a>
</div>
</div>
</div>
</div>
</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-tabs]").forEach((root) => {
const dial = root.querySelector("[data-dial]");
root.addEventListener("click", (event) => {
const tab = event.target.closest("[data-tab]");
if (!tab) return;
root.querySelectorAll("[data-tab]").forEach((button) => button.setAttribute("aria-selected", String(button === tab)));
root.querySelectorAll("[data-panel]").forEach((panel) => { panel.hidden = panel.dataset.panel !== tab.dataset.tab; });
if (dial && tab.dataset.x) {
dial.style.setProperty("--x", tab.dataset.x);
dial.style.setProperty("--y", tab.dataset.y);
}
});
});
document.querySelectorAll("[data-filter]").forEach((root) => {
const count = root.querySelector("[data-filter-count]");
root.addEventListener("click", (event) => {
const chip = event.target.closest("[data-filter-chip]");
if (!chip) return;
let shown = 0;
root.querySelectorAll("[data-filter-chip]").forEach((button) => button.setAttribute("aria-pressed", String(button === chip)));
root.querySelectorAll("[data-tags]").forEach((item) => {
const match = chip.dataset.filterChip === "all" || item.dataset.tags.split(" ").includes(chip.dataset.filterChip);
item.hidden = !match;
if (match) shown += 1;
});
if (count) count.textContent = shown;
});
});
document.querySelectorAll("[data-stepper]").forEach((stepper) => {
const input = stepper.querySelector("input");
stepper.addEventListener("click", (event) => {
const button = event.target.closest("[data-step]");
if (!button) return;
const next = Number(input.value) + Number(button.dataset.step);
input.value = Math.min(Number(input.max), Math.max(Number(input.min), next));
input.dispatchEvent(new Event("input", { bubbles: true }));
});
});
document.querySelectorAll("[data-booking]").forEach((form) => {
const total = form.querySelector("[data-booking-total]");
const update = () => {
const room = form.querySelector("[name=room]");
const nights = Number(form.querySelector("[name=nights]").value);
const price = Number(room.selectedOptions[0].dataset.price);
if (total) total.textContent = `£${(price * nights).toLocaleString("en-GB")}`;
};
form.addEventListener("input", update);
form.addEventListener("reset", () => setTimeout(update));
const wanted = new URLSearchParams(location.search).get("room");
const room = form.querySelector("[name=room]");
if (wanted && [...room.options].some((option) => option.value === wanted)) room.value = wanted;
update();
});
document.querySelectorAll("[data-form]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
const valid = form.checkValidity();
const error = form.querySelector("[data-form-error]");
const done = form.querySelector("[data-form-done]");
if (error) error.hidden = valid;
if (done) done.hidden = !valid;
if (valid) form.reset();
});
});
</script>
<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>
Travel
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.