Gratis
Portada
Velluto Hero
A hero block extracted from the Velluto template, available in Tailwind CSS.
0
8
A hero 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 Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero 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 hero -->
<section class="relative bg-sand pb-16" data-slider>
<div class="relative h-[44vh] min-h-[280px] overflow-hidden lg:mr-[18%] lg:h-[52vh]">
<img src="https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&h=900&q=75" alt="Set table with plates, glasses and candles in a warm dining room" class="absolute inset-0 h-full w-full object-cover" data-slide-photo="0" >
<img src="https://images.unsplash.com/photo-1528823872057-9c018a7a7553?auto=format&fit=crop&w=1600&h=900&q=75" alt="Long cellar corridor lined with steel wine tanks" class="absolute inset-0 h-full w-full object-cover" data-slide-photo="1" hidden>
<img src="https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&h=900&q=75" alt="Dark restaurant interior with wooden tables and pendant lights" class="absolute inset-0 h-full w-full object-cover" data-slide-photo="2" hidden>
</div>
<div class="relative mx-auto grid max-w-7xl lg:grid-cols-[1.3fr_1fr]">
<div class="relative mx-5 -mt-20 bg-white px-6 py-12 shadow-[0_30px_60px_-30px_rgba(28,26,23,.35)] md:mx-10 md:px-16 md:py-16 lg:-mt-28 lg:ml-0 lg:mr-0">
<div data-slide-copy="0" >
<h1 class="font-serif text-5xl leading-[1.05] md:text-7xl">An evening <span class="block text-gold">poured slowly.</span></h1>
<span class="dots mt-8 block h-3 w-12 text-ink/50" aria-hidden="true"></span>
<p class="mt-8 max-w-md text-ink/75">Seasonal plates from a small open kitchen, and a cellar of four hundred labels chosen by people who drink them.</p>
</div>
<div data-slide-copy="1" hidden>
<p class="font-serif text-5xl leading-[1.05] md:text-7xl">A cellar <span class="block text-gold">worth the stairs.</span></p>
<span class="dots mt-8 block h-3 w-12 text-ink/50" aria-hidden="true"></span>
<p class="mt-8 max-w-md text-ink/75">Bottles from small growers in Piedmont, Burgundy and the Jura, opened by the glass every night.</p>
</div>
<div data-slide-copy="2" hidden>
<p class="font-serif text-5xl leading-[1.05] md:text-7xl">A room <span class="block text-gold">made for lingering.</span></p>
<span class="dots mt-8 block h-3 w-12 text-ink/50" aria-hidden="true"></span>
<p class="mt-8 max-w-md text-ink/75">Low light, deep chairs and a counter where the sommelier pours you a taste before you choose.</p>
</div>
<div class="mt-10 flex flex-wrap items-center gap-4">
<a href="reservations.html" class="rounded-full bg-ink px-7 py-3.5 text-xs uppercase tracking-[.2em] text-white transition hover:bg-gold">Book a table</a>
<a href="menu.html" class="text-xs uppercase tracking-[.2em] underline decoration-gold underline-offset-8 hover:text-gold-deep">See the menu</a>
</div>
</div>
<div class="flex flex-col items-center gap-10 px-5 pt-10 text-center lg:pt-6">
<div class="flex items-center gap-3 self-center lg:self-end">
<span class="mr-2 text-xs tracking-[.25em] text-ink/60"><span data-slide-index>01</span> / 03</span>
<button type="button" data-slide-prev class="grid h-14 w-14 place-items-center rounded-full bg-white/60 text-ink/60 transition hover:bg-white hover:text-ink" aria-label="Previous slide"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
<button type="button" data-slide-next class="grid h-14 w-14 place-items-center rounded-full bg-white text-ink shadow-sm transition hover:bg-ink hover:text-white" aria-label="Next slide"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
</div>
<span class="h-20 w-px bg-gold" aria-hidden="true"></span>
<p class="max-w-xs font-serif text-2xl leading-snug md:text-3xl">Twelve tables, one long counter and a wine list that changes with the weather.</p>
</div>
</div>
</section>
<!-- block:end hero -->
<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.