Gratis
Portada
Hoopla Hero
A hero block extracted from the Hoopla template, available in Tailwind CSS.
0
0
A hero block extracted from the Hoopla 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>Hoopla Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Hoopla template, available in Tailwind CSS.">
<meta name="keywords" content="Hoopla, Tailwind CSS template, HTML website template, doughnut shop template, bakery website, brunch cafe template, restaurant menu page, table booking form, food 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="Hoopla | Tailwind CSS Food & Restaurant Template">
<meta property="og:description" content="A playful Tailwind CSS template for doughnut shops, bakeries and brunch cafes, with sticker badges on speckled paper, a build-your-box picker, a weekly board, a menu, table booking and a contact form.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Hoopla template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Hoopla | Tailwind CSS Food & Restaurant Template">
<meta name="twitter:description" content="A playful Tailwind CSS template for doughnut shops, bakeries and brunch cafes, with sticker badges on speckled paper, a build-your-box picker, a weekly board, a menu, table booking and a contact form.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Hoopla 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=Fredoka:wght@500;600;700&family=Josefin+Sans:wght@300;400;600&family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
paper: { DEFAULT: '#f4f0e4', deep: '#e9e3d2', card: '#fffdf7' },
ink: { DEFAULT: '#3f4347', soft: '#5d6165', deep: '#2b2d2f' },
teal: { DEFAULT: '#2aa6b8', deep: '#14707e', pale: '#a8d8d4' },
olive: { DEFAULT: '#7b8530', deep: '#565e1d' },
tangerine: { DEFAULT: '#e2603a', deep: '#b03f1c' },
sun: '#f2c230',
leaf: '#6fae3c'
},
fontFamily: {
sans: ['Nunito', 'sans-serif'],
display: ['"Josefin Sans"', 'sans-serif'],
chunky: ['Fredoka', 'sans-serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { background-color: #f4f0e4; background-image: radial-gradient(rgba(63, 67, 71, .09) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.6px); background-size: 23px 23px, 31px 31px; background-position: 0 0, 11px 17px; }
.rainbow { font-family: 'Fredoka', sans-serif; font-weight: 700; text-transform: lowercase; letter-spacing: -.01em; color: #14707e; background: linear-gradient(90deg, #2aa6b8 0 30%, #f2c230 30% 44%, #e2603a 44% 62%, #6fae3c 62% 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.thin-caps { font-family: 'Josefin Sans', sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
.sticker { display: block; filter: drop-shadow(0 6px 5px rgba(63, 67, 71, .22)); transition: transform .35s ease; }
.sticker:hover { transform: rotate(0deg) scale(1.04) !important; }
.sticker text { font-family: 'Fredoka', sans-serif; font-weight: 600; }
.strip-card { overflow: hidden; border-radius: 1.1rem; background: #fffdf7; box-shadow: 0 10px 22px -12px rgba(63, 67, 71, .45); }
.strip { display: block; padding: .55rem 1rem .5rem; text-align: center; color: #fff; font-family: 'Josefin Sans', sans-serif; font-size: 1.15rem; letter-spacing: .03em; }
.pill { display: inline-flex; align-items: center; gap: .6rem; border-radius: 9999px; padding: .8rem 1.6rem; font-family: 'Fredoka', sans-serif; font-weight: 600; transition: transform .2s ease, background-color .2s ease; }
.pill:hover { transform: translateY(-2px); }
.pill-solid { background: #14707e; color: #fff; }
.pill-solid:hover { background: #0f5a66; }
.pill-line { border: 2px solid #3f4347; color: #2b2d2f; }
.pill-line:hover { background: #2b2d2f; color: #fff; }
.chip { border-radius: 9999px; border: 2px solid #3f4347; padding: .45rem 1.1rem; font-weight: 700; color: #2b2d2f; background: #fffdf7; transition: background-color .2s ease, color .2s ease; }
.chip[aria-pressed="true"] { background: #2b2d2f; color: #fff; }
.ring { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9999px; border: 2px dashed rgba(63, 67, 71, .35); background: transparent; }
.ring.is-filled { border: 0; background: radial-gradient(circle, #fffdf7 0 20%, var(--glaze, #f2c230) 21% 100%); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 6px 8px -4px rgba(63, 67, 71, .5); }
.marquee { display: flex; overflow: hidden; gap: 2.5rem; }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 2.5rem)); } }
[data-week] .is-today { background: #fffdf7; box-shadow: 0 10px 22px -14px rgba(63, 67, 71, .5); }
[data-week] .is-today [data-today-tag] { display: inline-block; }
.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; } .sticker, .pill { transition: none; } }
</style>
</head>
<body class="font-sans text-ink-soft antialiased">
<!-- block:start hero -->
<section id="top" class="relative overflow-hidden px-5 pb-20 pt-8 md:px-10 md:pb-28 md:pt-12">
<div class="mx-auto grid max-w-[1380px] grid-cols-1 items-center gap-8 lg:grid-cols-12">
<div class="relative hidden h-[560px] lg:col-span-3 lg:block" aria-hidden="true">
<span class="sticker absolute left-2 top-0 w-40" style="transform: rotate(-9deg)"><svg viewBox="0 0 200 220" role="img" aria-label="Shield sticker: made by hand"><path d="M22 14h156v112c0 52-40 78-78 88-38-10-78-36-78-88z" fill="#fffdf7"/><path d="M32 24h136v102c0 44-34 67-68 77-34-10-68-33-68-77z" fill="#7b8530"/><path d="M32 126l68-74 68 74c0 6-1 12-2 17H34c-1-5-2-11-2-17z" fill="#e2603a"/><path d="M32 126l40-44 30 61H34c-1-5-2-11-2-17z" fill="#2aa6b8"/><circle cx="100" cy="46" r="11" fill="#f2c230"/><path d="M34 143h132c-9 32-38 51-66 60-28-9-57-28-66-60z" fill="#565e1d"/><text x="100" y="170" text-anchor="middle" font-size="17" fill="#fffdf7" letter-spacing="1.5">MADE BY</text><text x="100" y="189" text-anchor="middle" font-size="17" fill="#f2c230" letter-spacing="1.5">HAND</text></svg></span>
<span class="sticker absolute left-20 top-52 w-44" style="transform: rotate(7deg)"><svg viewBox="0 0 240 150" role="img" aria-label="Ticket sticker: good for one ring"><rect x="6" y="6" width="228" height="138" rx="18" fill="#fffdf7"/><rect x="16" y="16" width="208" height="118" rx="12" fill="#f2c230"/><rect x="24" y="24" width="192" height="102" rx="8" fill="none" stroke="#565e1d" stroke-width="3"/><path d="M168 28v94" stroke="#565e1d" stroke-width="2" stroke-dasharray="4 6"/><text x="96" y="66" text-anchor="middle" font-size="20" fill="#565e1d" letter-spacing="1.5">GOOD FOR</text><text x="96" y="98" text-anchor="middle" font-size="28" fill="#b03f1c" letter-spacing="1">ONE RING</text><circle cx="192" cy="75" r="14" fill="none" stroke="#b03f1c" stroke-width="7"/></svg></span>
<span class="sticker absolute bottom-0 left-0 w-48" style="transform: rotate(-14deg)"><svg viewBox="0 0 220 200" role="img" aria-label="Triangle sticker: little treats"><path d="M110 6l104 184H6z" fill="#fffdf7" stroke="#fffdf7" stroke-width="8" stroke-linejoin="round"/><path d="M110 28l86 152H24z" fill="#565e1d" stroke="#565e1d" stroke-width="6" stroke-linejoin="round"/><text x="110" y="92" text-anchor="middle" font-size="15" fill="#f2c230">★ ★ ★</text><text x="110" y="126" text-anchor="middle" font-size="24" fill="#fffdf7" font-style="italic">Little</text><text x="110" y="160" text-anchor="middle" font-size="30" fill="#f2c230" letter-spacing="2">TREATS</text></svg></span>
</div>
<div class="min-w-0 lg:col-span-6">
<h1 class="thin-caps text-5xl leading-[1.05] text-ink sm:text-6xl lg:text-7xl" data-reveal>Good mornings start <span class="rainbow">round</span></h1>
<p class="mt-7 max-w-xl text-lg leading-relaxed" data-reveal style="--reveal-delay: 100ms">Rings fried at five, brunch from nine and coffee all day. Made by hand in the back room, and gone when they are gone.</p>
<div class="mt-8 flex flex-wrap gap-4" data-reveal style="--reveal-delay: 150ms">
<a href="reservations.html" class="pill pill-solid">Book a table</a>
<a href="menu.html" class="pill pill-line">See the menu</a>
</div>
<div class="mt-10 grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 sm:gap-5" data-reveal style="--reveal-delay: 200ms">
<figure class="strip-card">
<img src="https://images.unsplash.com/photo-1618411640018-972400a01458?auto=format&fit=crop&w=700&q=80" alt="A tray of glazed and iced doughnuts seen from above" class="aspect-[4/3] w-full object-cover">
<figcaption class="strip bg-teal-deep">morning : RINGS</figcaption>
</figure>
<i class="fa-solid fa-chevron-right text-3xl text-olive" aria-hidden="true"></i>
<figure class="strip-card">
<img src="https://images.unsplash.com/photo-1712746785649-11ffe27af62e?auto=format&fit=crop&w=700&q=80" alt="A brunch plate of poached eggs with a small salad" class="aspect-[4/3] w-full object-cover">
<figcaption class="strip bg-olive-deep">noon : BRUNCH</figcaption>
</figure>
</div>
</div>
<div class="relative hidden h-[560px] lg:col-span-3 lg:block" aria-hidden="true">
<span class="sticker absolute right-4 top-2 w-48" style="transform: rotate(8deg)"><svg viewBox="0 0 200 200" role="img" aria-label="Round sticker: fresh every morning"><circle cx="100" cy="100" r="92" fill="#fffdf7"/><circle cx="100" cy="100" r="82" fill="#14707e"/><circle cx="100" cy="100" r="50" fill="none" stroke="#a8d8d4" stroke-width="2" stroke-dasharray="3 6"/><path id="seal-arc" d="M100 100 m-64 0 a64 64 0 1 1 128 0 a64 64 0 1 1 -128 0" fill="none"/><text font-size="17" fill="#fffdf7" letter-spacing="3"><textPath href="#seal-arc">FRESH EVERY MORNING ★ FRESH EVERY MORNING ★</textPath></text><circle cx="100" cy="100" r="30" fill="#f2c230"/><circle cx="100" cy="100" r="10" fill="#14707e"/><path d="M84 88l6 4M112 86l-4 6M118 106l-7-2M88 112l5-5M100 76v6" stroke="#e2603a" stroke-width="3" stroke-linecap="round"/></svg></span>
<span class="sticker absolute bottom-6 right-12 w-44" style="transform: rotate(-6deg)"><svg viewBox="0 0 200 200" role="img" aria-label="Round sticker: up at five"><circle cx="100" cy="100" r="92" fill="#fffdf7"/><circle cx="100" cy="100" r="82" fill="#2b2d2f"/><path d="M40 124a60 60 0 0 1 120 0z" fill="#e2603a"/><path d="M100 44v-14M58 62l-10-10M142 62l10-10M34 100H20M166 100h14" stroke="#f2c230" stroke-width="5" stroke-linecap="round"/><path d="M26 124h148" stroke="#fffdf7" stroke-width="3"/><text x="100" y="152" text-anchor="middle" font-size="20" fill="#fffdf7" letter-spacing="2">UP AT FIVE</text><text x="100" y="112" text-anchor="middle" font-size="14" fill="#2b2d2f">★ ★ ★</text></svg></span>
</div>
<div class="flex items-center justify-center gap-4 lg:hidden" aria-hidden="true">
<span class="sticker w-28" style="transform: rotate(-8deg)"><svg viewBox="0 0 200 220" role="img" aria-label="Shield sticker: made by hand"><path d="M22 14h156v112c0 52-40 78-78 88-38-10-78-36-78-88z" fill="#fffdf7"/><path d="M32 24h136v102c0 44-34 67-68 77-34-10-68-33-68-77z" fill="#7b8530"/><path d="M32 126l68-74 68 74c0 6-1 12-2 17H34c-1-5-2-11-2-17z" fill="#e2603a"/><path d="M32 126l40-44 30 61H34c-1-5-2-11-2-17z" fill="#2aa6b8"/><circle cx="100" cy="46" r="11" fill="#f2c230"/><path d="M34 143h132c-9 32-38 51-66 60-28-9-57-28-66-60z" fill="#565e1d"/><text x="100" y="170" text-anchor="middle" font-size="17" fill="#fffdf7" letter-spacing="1.5">MADE BY</text><text x="100" y="189" text-anchor="middle" font-size="17" fill="#f2c230" letter-spacing="1.5">HAND</text></svg></span>
<span class="sticker w-32" style="transform: rotate(6deg)"><svg viewBox="0 0 240 150" role="img" aria-label="Ticket sticker: good for one ring"><rect x="6" y="6" width="228" height="138" rx="18" fill="#fffdf7"/><rect x="16" y="16" width="208" height="118" rx="12" fill="#f2c230"/><rect x="24" y="24" width="192" height="102" rx="8" fill="none" stroke="#565e1d" stroke-width="3"/><path d="M168 28v94" stroke="#565e1d" stroke-width="2" stroke-dasharray="4 6"/><text x="96" y="66" text-anchor="middle" font-size="20" fill="#565e1d" letter-spacing="1.5">GOOD FOR</text><text x="96" y="98" text-anchor="middle" font-size="28" fill="#b03f1c" letter-spacing="1">ONE RING</text><circle cx="192" cy="75" r="14" fill="none" stroke="#b03f1c" stroke-width="7"/></svg></span>
<span class="sticker w-28" style="transform: rotate(-5deg)"><svg viewBox="0 0 200 200" role="img" aria-label="Round sticker: up at five"><circle cx="100" cy="100" r="92" fill="#fffdf7"/><circle cx="100" cy="100" r="82" fill="#2b2d2f"/><path d="M40 124a60 60 0 0 1 120 0z" fill="#e2603a"/><path d="M100 44v-14M58 62l-10-10M142 62l10-10M34 100H20M166 100h14" stroke="#f2c230" stroke-width="5" stroke-linecap="round"/><path d="M26 124h148" stroke="#fffdf7" stroke-width="3"/><text x="100" y="152" text-anchor="middle" font-size="20" fill="#fffdf7" letter-spacing="2">UP AT FIVE</text><text x="100" y="112" text-anchor="middle" font-size="14" fill="#2b2d2f">★ ★ ★</text></svg></span>
</div>
</div>
</section>
<!-- block:end hero -->
<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-box]").forEach((root) => {
const flavours = [...root.querySelectorAll("[data-flavour]")];
const slots = [...root.querySelectorAll("[data-box-slot]")];
const sizes = [...root.querySelectorAll("[data-box-size]")];
const link = root.querySelector("[data-box-link]");
const summary = root.querySelector("[data-box-summary]");
const hint = summary.textContent;
const nameOf = (key) => root.querySelector(`[data-flavour="${key}"] [data-flavour-name]`).textContent.trim();
let capacity = 6;
let box = [];
const render = () => {
slots.forEach((slot, index) => {
const key = box[index];
slot.hidden = index >= capacity;
slot.classList.toggle("is-filled", Boolean(key));
slot.setAttribute("aria-pressed", String(Boolean(key)));
if (key) slot.style.setProperty("--glaze", root.querySelector(`[data-flavour="${key}"]`).dataset.glaze);
});
const counts = {};
box.forEach((key) => { counts[key] = (counts[key] || 0) + 1; });
const lines = Object.entries(counts).map(([key, count]) => `${count} × ${nameOf(key)}`);
summary.textContent = lines.length ? lines.join(", ") : hint;
root.querySelector("[data-box-count]").textContent = box.length;
root.querySelector("[data-box-capacity]").textContent = capacity;
root.querySelector("[data-box-total]").textContent = sizes.find((size) => Number(size.dataset.boxSize) === capacity).dataset.price;
if (link) link.href = link.getAttribute("href").split("?")[0] + (lines.length ? `?box=${encodeURIComponent(`Box of ${capacity}: ${lines.join(", ")}`)}` : "");
};
flavours.forEach((flavour) => flavour.querySelector("[data-box-add]").addEventListener("click", () => {
if (box.length < capacity) box.push(flavour.dataset.flavour);
render();
}));
slots.forEach((slot, index) => slot.addEventListener("click", () => {
if (index < box.length) box.splice(index, 1);
render();
}));
sizes.forEach((size) => size.addEventListener("click", () => {
capacity = Number(size.dataset.boxSize);
box = box.slice(0, capacity);
sizes.forEach((item) => item.setAttribute("aria-pressed", String(item === size)));
render();
}));
root.querySelector("[data-box-fill]").addEventListener("click", () => {
let next = box.length;
while (box.length < capacity) box.push(flavours[next++ % flavours.length].dataset.flavour);
render();
});
root.querySelector("[data-box-clear]").addEventListener("click", () => { box = []; render(); });
box = flavours.slice(0, 3).map((flavour) => flavour.dataset.flavour);
render();
});
document.querySelectorAll("[data-week]").forEach((list) => {
const row = list.querySelector(`[data-day="${new Date().getDay()}"]`);
if (row) row.classList.add("is-today");
});
</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
Comida y restaurantes
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.