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

Fadeline Hero

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

0 13
Fadeline Hero 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 Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero 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 hero -->
  <section id="intro" class="relative">
    <div class="hero-dark absolute inset-x-0 top-0 h-[78%]" aria-hidden="true"></div>
    <div class="relative mx-auto max-w-6xl px-5 pb-16 pt-6 md:px-8">
      <div class="grid gap-10 text-white lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)] lg:items-start">
        <h1 data-reveal class="font-display text-5xl font-normal uppercase leading-[1.05] md:text-7xl lg:text-[5.5rem]">Own your look, own your day</h1>
        <div data-reveal style="--reveal-delay:120ms">
          <p class="leading-relaxed text-white/70">Cuts for men and women, where your hair, scalp and skin all get proper attention, with skilled hands and a chair you won't want to leave.</p>
          <dl class="mt-8 grid grid-cols-2 gap-6">
            <div class="flex flex-col"><dt class="order-1 flex items-center gap-2 text-2xl font-semibold"><span class="h-0.5 w-5 bg-white"></span>Open</dt><dd class="order-2 pl-7 text-2xl font-semibold">08:00 AM</dd></div>
            <div class="flex flex-col text-white/60"><dt class="order-1 flex items-center gap-2 text-2xl font-semibold"><span class="h-0.5 w-5 bg-white/60"></span>Close</dt><dd class="order-2 pl-7 text-2xl font-semibold">09:30 PM</dd></div>
          </dl>
        </div>
      </div>
      <img data-reveal src="https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=1600&h=760&q=80" alt="Barber shaping the back of a client's short haircut" class="mt-14 aspect-[16/9] w-full rounded-[28px] object-cover md:aspect-[2/1]">
    </div>
  </section>
  <!-- block:end hero -->
<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