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

Fadeline Newsletter

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

0 20
Fadeline Newsletter preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with 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 Newsletter | Tailwind CSS UI Block</title>
  <meta name="description" content="A newsletter 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 newsletter -->
  <section class="relative">
    <div class="absolute inset-x-0 bottom-0 h-1/2 bg-night" aria-hidden="true"></div>
    <div class="relative mx-auto max-w-6xl px-5 pt-20 md:px-8">
      <div class="grid gap-8 rounded-[28px] border border-night/10 bg-white p-8 shadow-sm md:grid-cols-2 md:items-center md:p-14">
        <div>
          <h2 data-reveal class="font-display text-4xl font-normal uppercase leading-[1.05] md:text-5xl">Join the chair list</h2>
          <p class="mt-4 text-night/70">Be first to hear about open slots, offers and new services.</p>
        </div>
        <form data-newsletter-form class="flex flex-col gap-3 rounded-full sm:flex-row sm:bg-smoke sm:p-2" novalidate>
          <label class="sr-only" for="newsletter-email">Email address</label>
          <input id="newsletter-email" type="email" name="email" required autocomplete="email" placeholder="Your email address" class="min-w-0 flex-1 rounded-full bg-smoke px-6 py-4 focus:outline-none focus:ring-2 focus:ring-coral sm:bg-transparent">
          <button type="submit" class="rounded-full bg-night px-8 py-4 font-semibold text-white transition hover:bg-coral">Subscribe</button>
        </form>
        <p data-form-status class="text-sm text-night/70 md:col-start-2" role="status" aria-live="polite"></p>
      </div>
    </div>
  </section>
  <!-- block:end newsletter -->
<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>

From this template

Fadeline screenshot Premium

Business

Fadeline

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