Free
Hero
Linnet Hero
A hero block extracted from the Linnet template, available in Tailwind CSS.
0
10
A hero block extracted from the Linnet template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with 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>Linnet Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Linnet template, available in Tailwind CSS.">
<meta name="keywords" content="Linnet, Tailwind CSS template, HTML website template, restaurant template, tasting menu website, fine dining template, restaurant menu page, table reservation form, wine pairing, food and restaurant 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="Linnet | Tailwind CSS Restaurant Template">
<meta property="og:description" content="A calm Tailwind CSS template for seasonal restaurants, with a draped linen hero in sage green, a five-course menu with a wine pairing, a full menu with dietary filters and a table reservation page.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Linnet template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Linnet | Tailwind CSS Restaurant Template">
<meta name="twitter:description" content="A calm Tailwind CSS template for seasonal restaurants, with a draped linen hero in sage green, a five-course menu with a wine pairing, a full menu with dietary filters and a table reservation page.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Linnet 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=Jost:wght@300;400;500&family=Marcellus&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
sage: { DEFAULT: '#93a39b', deep: '#7b8b84', light: '#b9c7bf', mist: '#d3ddd5' },
linen: { DEFAULT: '#e8eee5', light: '#f4f7f0' },
ink: { DEFAULT: '#1b1f1c', soft: '#38423c', mute: '#55625b' },
clay: '#8f4f33'
},
fontFamily: {
display: ['Marcellus', 'serif'],
sans: ['Jost', 'sans-serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.display { font-family: Marcellus, serif; text-transform: uppercase; letter-spacing: .16em; line-height: 1.05; }
.label { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
.half-link { position: relative; display: inline-block; padding-bottom: .55rem; }
.half-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 46%; background: currentColor; transition: width .4s ease; }
.half-link:hover::after, .half-link:focus-visible::after { width: 100%; }
.sage-sky { background: linear-gradient(135deg, #7d8d86 0%, #94a49c 45%, #c2cfc7 100%); }
.dome { border-radius: 999px 999px 0 0; }
.cloth { animation: sway 11s ease-in-out infinite alternate; transform-origin: 20% 100%; }
@keyframes sway { from { transform: rotate(-1.2deg) scaleY(1); } to { transform: rotate(1.4deg) scaleY(1.03); } }
.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) { .cloth { animation: none; } .half-link::after { transition: none; } }
</style>
</head>
<body class="bg-linen font-sans font-light text-ink antialiased">
<!-- block:start hero -->
<section id="welcome" class="sage-sky relative flex min-h-[100svh] flex-col items-center justify-center overflow-hidden px-5 pb-24 pt-32 text-center">
<svg class="cloth pointer-events-none absolute -left-[28%] bottom-[6%] h-[78%] w-[125%] md:-left-[4%] md:bottom-[2%] md:h-[90%] md:w-[62%]" viewBox="0 0 1000 900" preserveAspectRatio="none" aria-hidden="true">
<defs>
<linearGradient id="cloth-fill" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#cfdbcf"/>
<stop offset=".55" stop-color="#e6eee2"/>
<stop offset="1" stop-color="#f4f8ee"/>
</linearGradient>
</defs>
<path d="M-40 430C120 310 250 40 480 40c230 0 330 260 342 480 7 130 16 250-24 340-20-52-18-112-26-162C600 606 300 664-40 830Z" fill="url(#cloth-fill)"/>
<path d="M772 698c26 30 48 92 26 162-20-52-18-112-26-162Z" fill="#fbfdf6"/>
</svg>
<div class="relative">
<p class="font-display text-sm tracking-[.3em]">1 — 5</p><p class="label mt-2">The welcome</p>
<h1 class="display mt-10 text-[clamp(2.3rem,9.4vw,8.5rem)] md:mt-14">Unhurried</h1>
<p class="mx-auto mt-8 max-w-md text-base md:text-lg">Five courses from the valley around us, cooked over embers and served at the pace of a long evening.</p>
<a href="menu.html" class="label half-link mt-10 md:mt-14">See this week's menu</a>
</div>
<a href="#kitchen" class="label absolute bottom-7 left-1/2 -translate-x-1/2 !text-[.62rem]">Scroll</a>
</section>
<!-- block:end hero -->
<script>
(() => {
const menu = document.getElementById("site-menu");
const toggle = document.querySelector("[data-menu-toggle]");
if (!menu || !toggle) return;
const setOpen = (open) => {
toggle.setAttribute("aria-expanded", String(open));
menu.classList.toggle("hidden", !open);
document.body.style.overflow = open ? "hidden" : "";
if (open) menu.querySelector("[data-menu-close]")?.focus(); else toggle.focus();
};
toggle.addEventListener("click", () => setOpen(toggle.getAttribute("aria-expanded") !== "true"));
menu.querySelector("[data-menu-close]")?.addEventListener("click", () => setOpen(false));
document.addEventListener("keydown", (event) => { if (event.key === "Escape" && toggle.getAttribute("aria-expanded") === "true") setOpen(false); });
})();
document.querySelectorAll("[data-switcher]").forEach((root) => {
root.addEventListener("click", (event) => {
const button = event.target.closest("[data-switch]");
if (!button) return;
root.querySelectorAll("[data-switch]").forEach((b) => b.setAttribute("aria-selected", String(b === button)));
root.querySelectorAll("[data-switch-panel]").forEach((panel) => { panel.hidden = panel.dataset.switchPanel !== button.dataset.switch; });
});
});
document.querySelectorAll("[data-courses]").forEach((root) => {
const tabs = [...root.querySelectorAll("[data-course]")];
const toggle = root.querySelector("[data-pairing-toggle]");
let current = 0;
const show = (index) => {
current = (index + tabs.length) % tabs.length;
root.querySelectorAll("[data-course-panel]").forEach((panel) => { panel.hidden = Number(panel.dataset.coursePanel) !== current; });
tabs.forEach((tab, i) => {
tab.setAttribute("aria-selected", String(i === current));
tab.classList.toggle("border-ink", i === current);
tab.classList.toggle("border-ink/40", i !== current);
});
root.querySelector("[data-course-number]").textContent = current + 1;
};
tabs.forEach((tab, i) => tab.addEventListener("click", () => show(i)));
root.querySelector("[data-course-prev]")?.addEventListener("click", () => show(current - 1));
root.querySelector("[data-course-next]")?.addEventListener("click", () => show(current + 1));
toggle?.addEventListener("click", () => {
const paired = toggle.getAttribute("aria-checked") !== "true";
toggle.setAttribute("aria-checked", String(paired));
root.querySelectorAll("[data-pairing-line]").forEach((line) => { line.hidden = !paired; });
root.querySelector("[data-course-total]").textContent = Number(root.dataset.menuPrice) + (paired ? Number(root.dataset.pairingPrice) : 0);
});
});
document.querySelectorAll("[data-hours]").forEach((list) => {
const today = list.querySelector(`[data-day="${new Date().getDay()}"]`);
if (!today) return;
today.classList.add("font-normal");
today.querySelector("span")?.insertAdjacentHTML("beforeend", ' <span class="label ml-3 align-middle text-clay">Today</span>');
});
(() => {
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
Food & Restaurant
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.
Tailwind CSS · HTML download