Gratis
Demo
Velluto Demo
A demo block extracted from the Velluto template, available in Tailwind CSS.
0
4
A demo block extracted from the Velluto 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>Velluto Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo block extracted from the Velluto template, available in Tailwind CSS.">
<meta name="keywords" content="Velluto, Tailwind CSS template, HTML website template, restaurant template, wine bar, fine dining, wine list, tasting menu, table reservation, food website">
<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="Velluto | Tailwind CSS Restaurant Template">
<meta property="og:description" content="A warm Tailwind CSS wine bar and restaurant template with a pairing finder, wine dinners, a cellar list and table reservations.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Velluto template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Velluto | Tailwind CSS Restaurant Template">
<meta name="twitter:description" content="A warm Tailwind CSS wine bar and restaurant template with a pairing finder, wine dinners, a cellar list and table reservations.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Velluto 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=Libre+Caslon+Display&family=Figtree:wght@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { sand: { DEFAULT: '#d9cbb8', soft: '#e8dfd2' }, paper: '#fbf8f3', ink: '#1c1a17', gold: { DEFAULT: '#b0884f', deep: '#8c6a3a' }, wine: '#6e1f2b', stone: '#7d7366' },
fontFamily: { serif: ['"Libre Caslon Display"', 'serif'], sans: ['Figtree', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.dots { background-image: radial-gradient(currentColor 1px, transparent 1.2px); background-size: 6px 6px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-paper font-sans font-light text-ink antialiased">
<!-- block:start demo -->
<section id="pairing" class="mx-auto max-w-7xl px-5 py-24 md:px-10 md:py-32" data-pairing>
<div class="grid gap-14 lg:grid-cols-[1fr_1.1fr] lg:items-center">
<div>
<p class="text-xs uppercase tracking-[.35em] text-gold-deep">Pairing finder</p>
<h2 class="mt-5 font-serif text-4xl leading-tight md:text-6xl">Choose a plate, <span class="text-gold">we pour the glass.</span></h2>
<p class="mt-6 max-w-md text-ink/70">Our sommelier matched every dish on the evening menu. Pick one to see the wine, how it tastes and what it costs.</p>
<fieldset class="mt-10">
<legend class="text-xs uppercase tracking-[.25em] text-ink/60">Tonight's plates</legend>
<div class="mt-4 flex flex-wrap gap-2">
<label class="cursor-pointer"><input type="radio" name="dish" value="burrata" class="peer sr-only" data-dish><span class="block rounded-full border border-ink/20 px-5 py-2.5 text-sm transition hover:border-ink peer-checked:border-wine peer-checked:bg-wine peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-gold">Burrata, blood orange</span></label>
<label class="cursor-pointer"><input type="radio" name="dish" value="crudo" class="peer sr-only" data-dish><span class="block rounded-full border border-ink/20 px-5 py-2.5 text-sm transition hover:border-ink peer-checked:border-wine peer-checked:bg-wine peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-gold">Sea bass crudo</span></label>
<label class="cursor-pointer"><input type="radio" name="dish" value="risotto" class="peer sr-only" checked data-dish><span class="block rounded-full border border-ink/20 px-5 py-2.5 text-sm transition hover:border-ink peer-checked:border-wine peer-checked:bg-wine peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-gold">Porcini risotto</span></label>
<label class="cursor-pointer"><input type="radio" name="dish" value="shortrib" class="peer sr-only" data-dish><span class="block rounded-full border border-ink/20 px-5 py-2.5 text-sm transition hover:border-ink peer-checked:border-wine peer-checked:bg-wine peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-gold">Braised short rib</span></label>
<label class="cursor-pointer"><input type="radio" name="dish" value="tart" class="peer sr-only" data-dish><span class="block rounded-full border border-ink/20 px-5 py-2.5 text-sm transition hover:border-ink peer-checked:border-wine peer-checked:bg-wine peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-gold">Dark chocolate tart</span></label>
</div>
</fieldset>
<label class="mt-8 inline-flex cursor-pointer items-center gap-3 text-sm"><input type="checkbox" class="peer sr-only" data-pair-bottle><span class="relative h-6 w-11 rounded-full bg-ink/20 transition after:absolute after:left-1 after:top-1 after:h-4 after:w-4 after:rounded-full after:bg-white after:transition peer-checked:bg-wine peer-checked:after:translate-x-5 peer-focus-visible:ring-2 peer-focus-visible:ring-gold"></span>Show bottle prices</label>
</div>
<div class="grid items-center gap-8 bg-sand-soft p-8 sm:grid-cols-[10rem_1fr] md:p-12" aria-live="polite">
<svg viewBox="0 0 120 220" class="mx-auto h-56 w-auto" role="img" aria-label="Wine glass filled with the paired wine">
<defs><clipPath id="bowl"><path d="M22 14h76c2 46-6 84-38 92C28 98 20 60 22 14z"/></clipPath></defs>
<rect x="0" y="52" width="120" height="70" fill="#5a1a24" clip-path="url(#bowl)" data-pair-fill style="transition: fill .5s ease"/>
<path d="M22 14h76c2 46-6 84-38 92C28 98 20 60 22 14z" fill="none" stroke="#1c1a17" stroke-width="2"/>
<path d="M60 106v86M34 204c8-8 44-8 52 0" fill="none" stroke="#1c1a17" stroke-width="2" stroke-linecap="round"/>
</svg>
<div>
<p class="text-xs uppercase tracking-[.25em] text-gold-deep" data-pair-region>Piedmont · red</p>
<p class="mt-2 font-serif text-3xl md:text-4xl" data-pair-wine>Barolo Riserva 2016</p>
<p class="mt-3 text-sm text-ink/70" data-pair-note>Earth and roses; firm tannin cuts through butter and parmesan.</p>
<dl class="mt-6 grid gap-3 text-xs uppercase tracking-[.2em]">
<div class="grid grid-cols-[5.5rem_1fr] items-center gap-3"><dt class="text-ink/60">body</dt><dd class="h-1.5 bg-ink/10"><span class="block h-full bg-wine transition-[width] duration-500" style="width: 100%" data-bar="body"></span></dd></div>
<div class="grid grid-cols-[5.5rem_1fr] items-center gap-3"><dt class="text-ink/60">acidity</dt><dd class="h-1.5 bg-ink/10"><span class="block h-full bg-wine transition-[width] duration-500" style="width: 80%" data-bar="acidity"></span></dd></div>
<div class="grid grid-cols-[5.5rem_1fr] items-center gap-3"><dt class="text-ink/60">tannin</dt><dd class="h-1.5 bg-ink/10"><span class="block h-full bg-wine transition-[width] duration-500" style="width: 80%" data-bar="tannin"></span></dd></div>
</dl>
<p class="mt-6 font-serif text-3xl text-wine"><span data-pair-price>$26</span> <span class="font-sans text-xs uppercase tracking-[.2em] text-ink/60" data-pair-unit>per glass</span></p>
</div>
</div>
</div>
<script type="application/json" data-pairing-data>{"burrata":["Burrata, blood orange","Franciacorta Rosé","Lombardy · sparkling","#e8a49a",2,5,1,18,"Fine bubbles lift the cream; red berries meet the citrus."],"crudo":["Sea bass crudo","Vermentino di Gallura","Sardinia · white","#e9d58a",2,4,1,14,"Salty, herbal and bright, like the coast it grows on."],"risotto":["Porcini risotto","Barolo Riserva 2016","Piedmont · red","#5a1a24",5,4,4,26,"Earth and roses; firm tannin cuts through butter and parmesan."],"shortrib":["Braised short rib","Amarone della Valpolicella","Veneto · red","#4a1018",5,3,5,28,"Dried cherry and cocoa, big enough for a slow braise."],"tart":["Dark chocolate tart","Recioto di Soave","Veneto · sweet","#d9a440",4,3,1,16,"Honeyed and nutty, sweeter than the tart so neither tastes bitter."]}</script>
</section>
<!-- block:end demo -->
<script>
const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
const menu = document.getElementById(button.getAttribute('aria-controls'));
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
button.setAttribute('aria-expanded', String(!open));
menu.classList.toggle('hidden', open);
});
});
document.querySelectorAll('[data-slider]').forEach((root) => {
const total = root.querySelectorAll('[data-slide-copy]').length;
let current = 0;
const show = (index) => {
current = (index + total) % total;
root.querySelectorAll('[data-slide-photo]').forEach((img) => { img.hidden = Number(img.dataset.slidePhoto) !== current; });
root.querySelectorAll('[data-slide-copy]').forEach((copy) => { copy.hidden = Number(copy.dataset.slideCopy) !== current; });
root.querySelector('[data-slide-index]').textContent = String(current + 1).padStart(2, '0');
};
root.querySelector('[data-slide-prev]').addEventListener('click', () => show(current - 1));
root.querySelector('[data-slide-next]').addEventListener('click', () => show(current + 1));
});
document.querySelectorAll('[data-pairing]').forEach((root) => {
const data = JSON.parse(root.querySelector('[data-pairing-data]').textContent);
const bottle = root.querySelector('[data-pair-bottle]');
const update = () => {
const dish = root.querySelector('[data-dish]:checked').value;
const [, wine, region, colour, body, acidity, tannin, glass, note] = data[dish];
root.querySelector('[data-pair-wine]').textContent = wine;
root.querySelector('[data-pair-region]').textContent = region;
root.querySelector('[data-pair-note]').textContent = note;
root.querySelector('[data-pair-fill]').setAttribute('fill', colour);
Object.entries({ body, acidity, tannin }).forEach(([key, value]) => { root.querySelector(`[data-bar="${key}"]`).style.width = `${value * 20}%`; });
root.querySelector('[data-pair-price]').textContent = `$${bottle.checked ? glass * 5 - 10 : glass}`;
root.querySelector('[data-pair-unit]').textContent = bottle.checked ? 'per bottle' : 'per glass';
};
root.querySelectorAll('[data-dish], [data-pair-bottle]').forEach((input) => input.addEventListener('change', update));
update();
});
document.querySelectorAll('[data-rail]').forEach((root) => {
const track = root.querySelector('[data-rail-track]');
const step = () => track.firstElementChild.getBoundingClientRect().width + 24;
root.querySelector('[data-rail-prev]').addEventListener('click', () => track.scrollBy({ left: -step() }));
root.querySelector('[data-rail-next]').addEventListener('click', () => track.scrollBy({ left: step() }));
});
document.querySelectorAll('[data-dinner]').forEach((row) => {
const button = row.querySelector('[data-seat-button]');
const seats = row.querySelector('[data-seats]');
button.addEventListener('click', () => {
const held = button.getAttribute('aria-pressed') === 'true';
button.setAttribute('aria-pressed', String(!held));
seats.textContent = Number(seats.textContent) + (held ? 1 : -1);
button.textContent = held ? 'Hold a seat' : 'Seat held';
});
});
document.querySelectorAll('[data-voices]').forEach((root) => {
const buttons = [...root.querySelectorAll('[data-voice-button]')];
buttons.forEach((button) => button.addEventListener('click', () => {
buttons.forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
root.querySelectorAll('[data-voice]').forEach((voice) => { voice.hidden = voice.dataset.voice !== button.dataset.voiceButton; });
}));
});
document.querySelectorAll('[data-quick-form]').forEach((form) => {
const status = form.parentElement.querySelector('[data-form-status]');
form.addEventListener('submit', (event) => {
event.preventDefault();
const date = form.querySelector('[name="date"]');
if (!date.value) { status.textContent = 'Please choose a date first.'; date.focus(); return; }
status.innerHTML = `Tables free at 19:30 and 21:15 on ${date.value} for ${form.querySelector('[name="guests"]').value}. <a href="reservations.html" class="underline decoration-gold underline-offset-4">Complete your booking</a>`;
});
});
if (watchMotion) {
document.documentElement.classList.add('reveal-ready');
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
}), { threshold: 0.15 });
document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
}
</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.