Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Navbar

Velluto Navbar

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

0 8
Velluto Navbar preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with 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 Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar 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 navbar -->
  <header class="sticky top-0 z-40 border-b border-ink/10 bg-white/95 backdrop-blur" data-header>
    <nav class="mx-auto grid max-w-7xl grid-cols-[1fr_auto_1fr] items-center gap-4 px-5 py-4 md:px-10" aria-label="Main">
      <ul class="hidden items-center gap-8 text-xs uppercase tracking-[.25em] lg:flex">
          <li><a href="menu.html"  class="border-b py-1 transition border-transparent text-ink/70 hover:text-ink">Menu</a></li>
          <li><a href="cellar.html"  class="border-b py-1 transition border-transparent text-ink/70 hover:text-ink">Cellar</a></li>
      </ul>
      <a href="index.html" class="col-start-1 text-left lg:col-start-2 lg:text-center">
        <span class="block font-serif text-3xl tracking-[.18em]">VELLUTO</span>
        <span class="block text-[10px] uppercase tracking-[.5em] text-gold-deep">Wine bar · Kitchen</span>
      </a>
      <div class="col-start-3 flex items-center justify-end gap-6">
        <ul class="hidden items-center gap-8 text-xs uppercase tracking-[.25em] lg:flex">
            <li><a href="tastings.html"  class="border-b py-1 transition border-transparent text-ink/70 hover:text-ink">Tastings</a></li>
            <li><a href="contact.html"  class="border-b py-1 transition border-transparent text-ink/70 hover:text-ink">Contact</a></li>
        </ul>
        <a href="reservations.html" class="hidden rounded-full border border-ink px-5 py-2.5 text-xs uppercase tracking-[.2em] transition hover:bg-ink hover:text-white sm:inline-block">Book a table</a>
        <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="grid h-11 w-11 place-items-center rounded-full border border-ink/20 lg:hidden" aria-label="Open menu"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
      </div>
    </nav>
    <div id="mobile-menu" class="hidden border-t border-ink/10 bg-white px-5 pb-6 lg:hidden">
      <ul class="grid">
          <li><a href="index.html" aria-current="page" class="block border-b border-ink/10 py-4 font-serif text-2xl text-gold-deep">Home</a></li>
          <li><a href="menu.html"  class="block border-b border-ink/10 py-4 font-serif text-2xl ">Menu</a></li>
          <li><a href="cellar.html"  class="block border-b border-ink/10 py-4 font-serif text-2xl ">Cellar</a></li>
          <li><a href="tastings.html"  class="block border-b border-ink/10 py-4 font-serif text-2xl ">Tastings</a></li>
          <li><a href="contact.html"  class="block border-b border-ink/10 py-4 font-serif text-2xl ">Contact</a></li>
          <li><a href="reservations.html"  class="block border-b border-ink/10 py-4 font-serif text-2xl ">Reservations</a></li>
      </ul>
    </div>
  </header>
  <!-- block:end navbar -->
<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>

From this template

Velluto screenshot Premium

Food & Restaurant

Velluto

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access