Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Menú de navegación

Fadeline Navbar

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

0 12
Fadeline Navbar preview

Descargar el código

Licencia comercial

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

fadeline.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>Fadeline Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Fadeline template, available in Tailwind CSS.">
  <meta name="keywords" content="Fadeline, Tailwind CSS template, HTML website template, barbershop template, hair salon, men's grooming, haircut membership, barber booking, unisex salon">
  <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="Fadeline | Tailwind CSS Health & Fitness Template">
  <meta property="og:description" content="A bold Tailwind CSS barbershop and hair salon template with a dark hero, bento service cards and membership plans with a regular/premium switch.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Fadeline template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Fadeline | Tailwind CSS Health & Fitness Template">
  <meta name="twitter:description" content="A bold Tailwind CSS barbershop and hair salon template with a dark hero, bento service cards and membership plans with a regular/premium switch.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Fadeline 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=Archivo:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { night: '#0b0b14', coral: '#ef7676', smoke: '#f5f5f5' },
          fontFamily: { display: ['Archivo', 'sans-serif'], sans: ['"Plus Jakarta Sans"', '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; }
    .hero-dark { background: linear-gradient(160deg, #2b2b35 0%, #13131c 45%, #0b0b14 100%); }
    .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) {
      html { scroll-behavior: auto; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-white font-sans text-night antialiased">
<!-- block:start navbar -->
  <header class="hero-dark relative z-40 text-white">
    <nav class="mx-auto flex max-w-6xl items-center justify-between gap-6 px-5 py-7 md:px-8" aria-label="Main">
      <a href="index.html" class="flex items-center gap-2 text-2xl font-semibold">
        <span class="grid h-10 w-10 place-items-center rounded-full border-2 border-white"><i class="fa-solid fa-asterisk text-coral" aria-hidden="true"></i></span>Fadeline.
      </a>
      <ul class="hidden items-center gap-8 text-[15px] lg:flex">
          <li><a href="index.html" aria-current="page" class="flex items-center gap-2 font-semibold text-white"><span class="h-1.5 w-1.5 rounded-full bg-coral"></span>Home</a></li>
          <li><a href="location.html"  class="flex items-center gap-2 text-white/60 hover:text-white">Location</a></li>
          <li><a href="about.html"  class="flex items-center gap-2 text-white/60 hover:text-white">About Us</a></li>
          <li><a href="careers.html"  class="flex items-center gap-2 text-white/60 hover:text-white">Careers</a></li>
          <li><a href="faq.html"  class="flex items-center gap-2 text-white/60 hover:text-white">FAQ</a></li>
      </ul>
      <div class="flex items-center gap-3">
        <a href="contact.html" class="hidden items-center gap-2 rounded-full bg-white px-6 py-3 font-semibold text-night transition hover:bg-coral hover:text-white sm:inline-flex"><i class="fa-solid fa-phone text-sm" aria-hidden="true"></i>Contact Us</a>
        <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" aria-label="Open menu" class="grid h-11 w-11 place-items-center rounded-full border border-white/30 lg:hidden"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
      </div>
    </nav>
    <div id="mobile-menu" class="hidden px-5 pb-6 lg:hidden">
      <ul class="grid gap-1 rounded-3xl bg-white/5 p-3 text-lg">
          <li><a href="index.html" aria-current="page" class="block rounded-2xl px-4 py-3 bg-white text-night font-semibold">Home</a></li>
          <li><a href="location.html"  class="block rounded-2xl px-4 py-3 text-white/80">Location</a></li>
          <li><a href="about.html"  class="block rounded-2xl px-4 py-3 text-white/80">About Us</a></li>
          <li><a href="careers.html"  class="block rounded-2xl px-4 py-3 text-white/80">Careers</a></li>
          <li><a href="faq.html"  class="block rounded-2xl px-4 py-3 text-white/80">FAQ</a></li>
          <li><a href="contact.html"  class="block rounded-2xl px-4 py-3 text-white/80">Contact Us</a></li>
      </ul>
    </div>
  </header>
  <!-- block:end navbar -->
<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);
      });
    });

    document.querySelectorAll('[data-plan-switch]').forEach((button) => {
      button.addEventListener('click', () => {
        const plan = button.dataset.planSwitch;
        document.querySelectorAll('[data-plan-switch]').forEach((other) => {
          const active = other === button;
          other.setAttribute('aria-pressed', String(active));
          other.classList.toggle('bg-night', active);
          other.classList.toggle('text-white', active);
          other.classList.toggle('text-night', !active);
        });
        document.querySelectorAll('[data-plan-price]').forEach((price) => { price.textContent = price.dataset[plan]; });
      });
    });

    document.querySelectorAll('[data-accordion]').forEach((accordion) => {
      const triggers = accordion.querySelectorAll('[data-accordion-trigger]');
      triggers.forEach((trigger) => {
        trigger.addEventListener('click', () => {
          const willOpen = trigger.getAttribute('aria-expanded') !== 'true';
          triggers.forEach((other) => {
            const open = other === trigger && willOpen;
            other.setAttribute('aria-expanded', String(open));
            document.getElementById(other.getAttribute('aria-controls')).classList.toggle('hidden', !open);
            other.querySelector('[data-accordion-icon]')?.classList.toggle('rotate-45', open);
          });
        });
      });
    });

    document.querySelectorAll('[data-newsletter-form], [data-contact-form]').forEach((form) => {
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const status = form.querySelector('[data-form-status]') || form.parentElement.querySelector('[data-form-status]');
        if (!form.checkValidity()) {
          status.textContent = form.dataset.error || 'Please enter a valid email address.';
          return;
        }
        status.textContent = form.dataset.success || "You're on the list. Watch your inbox for open slots.";
        form.reset();
      });
    });

    document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });

    (() => {
      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));
    })();
  </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

Fadeline screenshot Premium

Negocios

Fadeline

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