Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Galería

Velluto Gallery

A gallery block extracted from the Velluto template, available in Tailwind CSS.

0 8
Velluto Gallery preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

velluto.html
<!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 Gallery | Tailwind CSS UI Block</title>
  <meta name="description" content="A gallery 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 gallery -->
  <section class="bg-sand py-24 md:py-28" data-rail>
    <div class="mx-auto flex max-w-7xl flex-wrap items-end justify-between gap-6 px-5 md:px-10">
      <h2 class="font-serif text-4xl md:text-6xl">From the kitchen <span class="text-gold">this month</span></h2>
      <div class="flex gap-3">
        <button type="button" data-rail-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="Scroll dishes back"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
        <button type="button" data-rail-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="Scroll dishes forward"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
      </div>
    </div>
    <ul class="no-scrollbar mt-12 flex gap-6 overflow-x-auto scroll-smooth px-5 pb-2 md:px-10 lg:px-[max(2.5rem,calc((100vw-80rem)/2+2.5rem))]" data-rail-track>
        <li class="w-72 shrink-0 md:w-80">
          <img src="https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=640&h=800&q=75" alt="Colourful plates of grilled meat and salad seen from above" class="aspect-[4/5] w-full object-cover">
          <p class="mt-4 text-xs uppercase tracking-[.25em] text-gold-deep">Spring</p>
          <h3 class="mt-1 font-serif text-2xl">Burrata, blood orange &amp; fennel</h3>
        </li>
        <li class="w-72 shrink-0 md:w-80">
          <img src="https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=640&h=800&q=75" alt="Chef chopping herbs and vegetables on a board" class="aspect-[4/5] w-full object-cover">
          <p class="mt-4 text-xs uppercase tracking-[.25em] text-gold-deep">Kitchen</p>
          <h3 class="mt-1 font-serif text-2xl">Hand-cut tagliolini, sage butter</h3>
        </li>
        <li class="w-72 shrink-0 md:w-80">
          <img src="https://images.unsplash.com/photo-1600891964092-4316c288032e?auto=format&fit=crop&w=640&h=800&q=75" alt="Sliced steak with fries and herbs on a white plate" class="aspect-[4/5] w-full object-cover">
          <p class="mt-4 text-xs uppercase tracking-[.25em] text-gold-deep">Grill</p>
          <h3 class="mt-1 font-serif text-2xl">Flank steak, crisp potatoes</h3>
        </li>
        <li class="w-72 shrink-0 md:w-80">
          <img src="https://images.unsplash.com/photo-1424847651672-bf20a4b0982b?auto=format&fit=crop&w=640&h=800&q=75" alt="Brunch table with waffles, eggs and coffee seen from above" class="aspect-[4/5] w-full object-cover">
          <p class="mt-4 text-xs uppercase tracking-[.25em] text-gold-deep">Brunch</p>
          <h3 class="mt-1 font-serif text-2xl">Saturday table for four</h3>
        </li>
        <li class="w-72 shrink-0 md:w-80">
          <img src="https://images.unsplash.com/photo-1600565193348-f74bd3c7ccdf?auto=format&fit=crop&w=640&h=800&q=75" alt="Chef cooking over a flaming pan in a busy kitchen" class="aspect-[4/5] w-full object-cover">
          <p class="mt-4 text-xs uppercase tracking-[.25em] text-gold-deep">Fire</p>
          <h3 class="mt-1 font-serif text-2xl">Wood oven, open kitchen</h3>
        </li>
    </ul>
  </section>
  <!-- block:end gallery -->
<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>

De esta plantilla

Velluto screenshot Premium

Comida y restaurantes

Velluto

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado