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

Noctra FAQ

A faq block extracted from the Noctra template, available in Tailwind CSS.

0 15
Noctra FAQ preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

noctra.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>Noctra FAQ | Tailwind CSS UI Block</title>
  <meta name="description" content="A faq block extracted from the Noctra template, available in Tailwind CSS.">
  <meta name="keywords" content="Noctra, Tailwind CSS template, HTML website template, tattoo studio template, tattoo artist portfolio, piercing studio, permanent makeup, dark website template">
  <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="Noctra | Tailwind CSS Portfolio Template">
  <meta property="og:description" content="A dark Tailwind CSS tattoo studio template with a gradient services panel, a filterable portfolio, artist profiles and a booking form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Noctra template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Noctra | Tailwind CSS Portfolio Template">
  <meta name="twitter:description" content="A dark Tailwind CSS tattoo studio template with a gradient services panel, a filterable portfolio, artist profiles and a booking form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Noctra 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=Outfit:wght@400;500;600&family=Zilla+Slab:wght@400;500&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { night: '#121212', coal: '#1c1c1c', ash: '#a3a3a3', lilac: '#e8b4ff', peach: '#f3c6a6' },
          fontFamily: { display: ['Outfit', 'sans-serif'], slab: ['"Zilla Slab"', '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; }
    .glow-panel { background: linear-gradient(105deg, #e8b4ff 0%, #ecbde0 45%, #f3c6a6 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-night font-slab text-white antialiased">
<!-- block:start faq -->
  <section id="faq" class="mx-auto max-w-3xl px-5 py-20 md:px-8">
    <h2 data-reveal class="text-center font-display text-4xl font-medium">Before you book</h2>
    <div class="mt-10 divide-y divide-white/10 border-y border-white/10" data-accordion>
        <div>
          <h3>
            <button type="button" data-accordion-trigger aria-expanded="false" aria-controls="faq-0" class="flex w-full items-center justify-between gap-4 py-5 text-left font-display text-lg">
              How much does a tattoo cost?<i class="fa-solid fa-plus text-lilac transition" data-accordion-icon aria-hidden="true"></i>
            </button>
          </h3>
          <div id="faq-0" class="hidden pb-5 text-white/70">Small pieces start at $120. Larger work is priced by session, and we always agree the price before we start.</div>
        </div>
        <div>
          <h3>
            <button type="button" data-accordion-trigger aria-expanded="false" aria-controls="faq-1" class="flex w-full items-center justify-between gap-4 py-5 text-left font-display text-lg">
              Do I need a deposit?<i class="fa-solid fa-plus text-lilac transition" data-accordion-icon aria-hidden="true"></i>
            </button>
          </h3>
          <div id="faq-1" class="hidden pb-5 text-white/70">A $60 deposit holds your date and comes off the final price.</div>
        </div>
        <div>
          <h3>
            <button type="button" data-accordion-trigger aria-expanded="false" aria-controls="faq-2" class="flex w-full items-center justify-between gap-4 py-5 text-left font-display text-lg">
              How should I prepare?<i class="fa-solid fa-plus text-lilac transition" data-accordion-icon aria-hidden="true"></i>
            </button>
          </h3>
          <div id="faq-2" class="hidden pb-5 text-white/70">Sleep well, eat beforehand, stay hydrated and skip alcohol the night before.</div>
        </div>
        <div>
          <h3>
            <button type="button" data-accordion-trigger aria-expanded="false" aria-controls="faq-3" class="flex w-full items-center justify-between gap-4 py-5 text-left font-display text-lg">
              How do I look after a new tattoo?<i class="fa-solid fa-plus text-lilac transition" data-accordion-icon aria-hidden="true"></i>
            </button>
          </h3>
          <div id="faq-3" class="hidden pb-5 text-white/70">Keep it clean, use the balm in your aftercare kit and avoid sun and swimming for two weeks.</div>
        </div>
    </div>
  </section>
  <!-- block:end faq -->
<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-filter-group]').forEach((group) => {
      const buttons = group.querySelectorAll('[data-filter]');
      buttons.forEach((button) => {
        button.addEventListener('click', () => {
          buttons.forEach((other) => {
            const active = other === button;
            other.setAttribute('aria-pressed', String(active));
            other.classList.toggle('bg-white', active);
            other.classList.toggle('text-night', active);
            other.classList.toggle('border-white', active);
          });
          document.querySelectorAll('[data-filter-item]').forEach((item) => {
            item.hidden = button.dataset.filter !== 'all' && item.dataset.category !== button.dataset.filter;
          });
        });
      });
    });

    document.querySelectorAll('[data-carousel]').forEach((carousel) => {
      const track = carousel.querySelector('[data-carousel-track]');
      if (!track) return;
      const slides = [...track.children];
      const dots = carousel.querySelector('[data-carousel-dots]');
      let index = 0;
      const perView = () => Math.max(1, Math.round(track.clientWidth / slides[0].clientWidth));
      const maxIndex = () => Math.max(0, slides.length - perView());
      const render = () => {
        track.style.transform = `translateX(-${index * slides[0].clientWidth}px)`;
        dots?.querySelectorAll('button').forEach((dot, i) => dot.setAttribute('aria-current', String(i === index)));
      };
      const go = (next) => { const max = maxIndex(); index = next > max ? 0 : next < 0 ? max : next; render(); };
      const buildDots = () => {
        if (!dots) return;
        dots.innerHTML = '';
        for (let i = 0; i <= maxIndex(); i++) {
          const dot = document.createElement('button');
          dot.type = 'button';
          dot.className = 'h-2 w-2 rounded-full bg-current opacity-30 aria-[current=true]:opacity-100';
          dot.setAttribute('aria-label', `Go to review ${i + 1}`);
          dot.addEventListener('click', () => go(i));
          dots.append(dot);
        }
      };
      carousel.querySelector('[data-carousel-prev]')?.addEventListener('click', () => go(index - 1));
      carousel.querySelector('[data-carousel-next]')?.addEventListener('click', () => go(index + 1));
      addEventListener('resize', () => { buildDots(); go(Math.min(index, maxIndex())); });
      buildDots();
      render();
    });

    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-contact-form]').forEach((form) => {
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const status = form.querySelector('[data-form-status]');
        if (!form.checkValidity()) {
          status.textContent = form.dataset.error || 'Please complete the required fields.';
          return;
        }
        status.textContent = form.dataset.success || 'Thanks! We will be in touch soon.';
        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

Noctra screenshot Premium

Business

Noctra

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