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

Inkhaven Hero

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

0 13
Inkhaven Hero preview

Download Codebase

Commercial License

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

inkhaven.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>Inkhaven Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Inkhaven template, available in Tailwind CSS.">
  <meta name="keywords" content="Inkhaven, Tailwind CSS template, HTML website template, portfolio template, tattoo studio website, tattoo artist portfolio, dark editorial design, booking form, price list, artist gallery">
  <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="Inkhaven | Tailwind CSS Portfolio Template">
  <meta property="og:description" content="A dark, editorial Tailwind CSS portfolio template for tattoo studios, with a body placement planner, fresh-vs-healed sliders and a chat-style booking form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Inkhaven template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Inkhaven | Tailwind CSS Portfolio Template">
  <meta name="twitter:description" content="A dark, editorial Tailwind CSS portfolio template for tattoo studios, with a body placement planner, fresh-vs-healed sliders and a chat-style booking form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Inkhaven 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=Josefin+Sans:wght@100;200;300&family=Jost:wght@300;400;500&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { char: '#1b1e1e', coal: '#121414', bone: '#ece8e1', ember: { DEFAULT: '#b83a3a', soft: '#d9706a' } },
          fontFamily: { sans: ['Jost', 'sans-serif'], display: ['"Josefin 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; }
    [hidden] { display: none !important; }
    .grid-lines { background-image: linear-gradient(90deg, transparent calc(16.6% - .5px), rgba(236,232,225,.16) calc(16.6% - .5px) calc(16.6% + .5px), transparent calc(16.6% + .5px), transparent calc(35.2% - .5px), rgba(236,232,225,.16) calc(35.2% - .5px) calc(35.2% + .5px), transparent calc(35.2% + .5px), transparent calc(65.9% - .5px), rgba(236,232,225,.16) calc(65.9% - .5px) calc(65.9% + .5px), transparent calc(65.9% + .5px), transparent calc(84.4% - .5px), rgba(236,232,225,.16) calc(84.4% - .5px) calc(84.4% + .5px), transparent calc(84.4% + .5px)); }
    .outline-text { color: transparent; -webkit-text-stroke: 1px #ece8e1; }
    .marquee-left { animation: slide-left 50s linear infinite; }
    .marquee-right { animation: slide-right 50s linear infinite; }
    .marquee-left:hover, .marquee-right:hover { animation-play-state: paused; }
    @keyframes slide-left { to { transform: translateX(-50%); } }
    @keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
    .zone { cursor: pointer; transition: fill .3s ease, stroke .3s ease; }
    .zone:hover, .zone:focus-visible { fill: rgba(184,58,58,.35); outline: none; }
    .zone[aria-pressed="true"] { fill: rgba(184,58,58,.6); stroke: #d9706a; }
    .orbit-step { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
    .leader { background-image: radial-gradient(circle, rgba(236,232,225,.35) 1px, transparent 1.5px); background-size: 8px 4px; background-repeat: repeat-x; background-position: left bottom 6px; }
    .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; }
      .marquee-left, .marquee-right { animation: none; }
      .zone, .orbit-step { transition: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-char font-sans font-light text-bone antialiased">
<!-- block:start hero -->
  <section class="grid-lines relative -mt-28 min-h-[56rem] overflow-hidden pt-28 lg:min-h-[58rem]">
    <div class="absolute inset-y-0 left-[35.2%] hidden w-[30.7%] lg:block">
      <img src="https://images.unsplash.com/photo-1475695752828-6d2b0a83cf8a?auto=format&fit=crop&w=1000&q=80" alt="Woman with tattooed hands and fingers resting against her face" class="h-full w-full object-cover">
    </div>
    <svg class="pointer-events-none absolute left-1/2 top-1/2 hidden h-[44rem] w-[44rem] -translate-x-[40%] -translate-y-1/2 lg:block" viewBox="0 0 100 100" aria-hidden="true"><path d="M50 2 98 50 50 98 2 50Z" fill="none" stroke="#b83a3a" stroke-width=".15"/></svg>
    <div class="relative mx-auto grid max-w-[100rem] gap-10 px-5 pb-10 pt-16 md:px-10 lg:min-h-[48rem] lg:grid-cols-[1fr_1fr] lg:pt-48">
      <div>
        <h1 class="font-display text-[15vw] font-thin uppercase leading-[0.95] tracking-[0.02em] md:text-[6.5rem] lg:text-[7.2rem]">Wear your<br><span class="font-extralight">story <span class="outline-text">in ink</span></span></h1>
        <a href="booking.html" class="mt-16 inline-block border-b border-bone pb-1 font-display text-2xl font-light uppercase tracking-[0.04em] transition hover:border-ember hover:text-ember-soft lg:ml-[18%]">Book a session</a>
        <img src="https://images.unsplash.com/photo-1475695752828-6d2b0a83cf8a?auto=format&fit=crop&w=800&q=80" alt="Woman with tattooed hands and fingers resting against her face" class="mt-10 aspect-[4/5] w-full object-cover lg:hidden">
      </div>
      <div class="flex flex-col justify-between gap-10 lg:pl-[30%]">
        <p class="font-display text-2xl font-light uppercase tracking-[0.45em] lg:mt-6 lg:text-[1.65rem]">Become the art</p>
        <a href="gallery.html" class="group relative block w-full max-w-sm self-end overflow-hidden lg:-mr-10">
          <img src="https://images.unsplash.com/photo-1611501275019-9b5cda994e8d?auto=format&fit=crop&w=700&q=80" alt="Detailed blackwork tattoo sleeve covering an arm and shoulder" class="aspect-[4/5] w-full object-cover transition duration-700 group-hover:scale-105">
          <span class="absolute inset-x-6 bottom-5 flex items-center justify-between font-display text-2xl font-light">See the work <span class="ml-4 h-px flex-1 bg-bone transition group-hover:bg-ember" aria-hidden="true"></span><i class="fa-solid fa-chevron-right -ml-1 text-xs" aria-hidden="true"></i></span>
        </a>
      </div>
    </div>
    <ul class="relative mx-auto flex max-w-[100rem] gap-8 px-5 pb-8 text-sm md:px-10 lg:pl-[10%]">
        <li><a href="https://www.instagram.com" class="transition hover:text-ember-soft">Instagram</a></li>
        <li><a href="https://www.tiktok.com" class="transition hover:text-ember-soft">TikTok</a></li>
        <li><a href="https://www.pinterest.com" class="transition hover:text-ember-soft">Pinterest</a></li>
    </ul>
  </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-search-toggle]').forEach((button) => {
      const form = document.getElementById(button.getAttribute('aria-controls'));
      button.addEventListener('click', () => {
        const open = form.hidden;
        form.hidden = !open;
        button.setAttribute('aria-expanded', String(open));
        if (open) form.querySelector('input').focus();
      });
    });

    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    document.querySelectorAll('[data-placement]').forEach((root) => {
      const zones = [...root.querySelectorAll('[data-zone]')];
      const pain = root.querySelector('[data-zone-pain]');
      const priceEl = root.querySelector('[data-zone-price]');
      const factor = () => Number(root.querySelector('[name="size"]:checked')?.dataset.factor || 1);
      const scale = (range) => range.replace(/[\d,]+/g, (n) => Math.round(Number(n.replace(/,/g, '')) * factor() / 10) * 10).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
      const paintPrice = () => { priceEl.textContent = scale(priceEl.dataset.base); };
      const show = (zone) => {
        zones.forEach((other) => other.setAttribute('aria-pressed', String(other === zone)));
        root.querySelector('[data-zone-label]').textContent = zone.dataset.label;
        root.querySelector('[data-zone-time]').textContent = zone.dataset.time;
        root.querySelector('[data-zone-heal]').textContent = zone.dataset.heal;
        priceEl.dataset.base = zone.dataset.price;
        paintPrice();
        const level = Number(zone.dataset.pain);
        pain.setAttribute('aria-label', `${level} out of 5`);
        [...pain.children].forEach((bar, i) => { bar.className = bar.className.replace(/\bbg-(ember|bone\/15)\b/, i < level ? 'bg-ember' : 'bg-bone/15'); });
      };
      zones.forEach((zone) => {
        zone.addEventListener('click', () => show(zone));
        zone.addEventListener('keydown', (event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); show(zone); } });
      });
      root.addEventListener('change', (event) => { if (event.target.name === 'size') paintPrice(); });
    });

    document.querySelectorAll('[data-compare]').forEach((compare) => {
      const range = compare.querySelector('[data-compare-range]');
      const after = compare.querySelector('[data-compare-after]');
      const handle = compare.querySelector('[data-compare-handle]');
      const update = () => { const value = Number(range.value); after.style.clipPath = `inset(0 ${100 - value}% 0 0)`; handle.style.left = `${value}%`; };
      range.addEventListener('input', update);
      update();
    });

    document.querySelectorAll('[data-orbit]').forEach((orbit) => {
      orbit.querySelectorAll('[data-orbit-step]').forEach((step) => step.addEventListener('click', () => {
        orbit.querySelectorAll('[data-orbit-step]').forEach((other) => other.setAttribute('aria-pressed', String(other === step)));
        orbit.querySelector('[data-orbit-title]').textContent = step.dataset.title;
        orbit.querySelector('[data-orbit-text]').textContent = step.dataset.text;
      }));
    });

    document.querySelectorAll('[data-gallery]').forEach((root) => {
      const items = [...root.querySelectorAll('[data-piece]')];
      const search = root.querySelector('[data-gallery-search]');
      const count = root.querySelector('[data-gallery-count]');
      const empty = root.querySelector('[data-gallery-empty]');
      let style = 'all';
      const apply = () => {
        const query = String(search.value || '').trim().toLowerCase();
        let shown = 0;
        items.forEach((item) => {
          const match = (style === 'all' || item.dataset.style === style) && (!query || item.textContent.toLowerCase().includes(query));
          item.hidden = !match;
          if (match) shown += 1;
        });
        count.textContent = shown;
        empty.hidden = shown > 0;
      };
      root.querySelectorAll('[data-style-filter]').forEach((chip) => chip.addEventListener('click', () => {
        style = chip.dataset.styleFilter;
        root.querySelectorAll('[data-style-filter]').forEach((other) => { other.setAttribute('aria-pressed', String(other === chip)); other.selected = other === chip; });
        apply();
      }));
      search.addEventListener('input', apply);
      const initial = new URLSearchParams(location.search).get('q');
      if (initial) search.value = initial;
      apply();
    });

    document.querySelectorAll('[data-spotlight]').forEach((root) => {
      root.querySelectorAll('[data-spotlight-pick]').forEach((button) => button.addEventListener('click', () => {
        root.querySelectorAll('[data-spotlight-pick]').forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
        root.querySelectorAll('[data-spotlight-panel]').forEach((panel) => { panel.hidden = panel.dataset.spotlightPanel !== button.dataset.spotlightPick; });
      }));
    });

    document.querySelectorAll('[data-chat-form]').forEach((form) => {
      const log = form.querySelector('[data-chat-log]');
      const steps = [...form.querySelectorAll('[data-chat-step]')];
      const status = form.querySelector('[data-form-status]');
      let current = 0;
      const say = (text, mine) => {
        const bubble = document.createElement('li');
        bubble.className = mine ? 'ml-auto max-w-[80%] border border-ember bg-ember/20 px-4 py-3' : 'max-w-[80%] border border-bone/20 px-4 py-3';
        bubble.textContent = text;
        log.append(bubble);
        log.scrollTop = log.scrollHeight;
      };
      const show = (index) => steps.forEach((step, i) => { step.hidden = i !== index; });
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const step = steps[current];
        const field = step.querySelector('input, select, textarea, md-outlined-text-field, md-outlined-select');
        if (!field.checkValidity() || !String(field.value || '').trim()) {
          status.textContent = form.dataset.error;
          field.focus();
          return;
        }
        status.textContent = '';
        say(String(field.value), true);
        current += 1;
        if (current < steps.length) {
          say(steps[current].dataset.question, false);
          show(current);
          steps[current].querySelector('input, select, textarea, md-outlined-text-field, md-outlined-select').focus();
        } else {
          say(form.dataset.success, false);
          show(-1);
        }
      });
      show(0);
    });

    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;
          form.querySelector(':invalid')?.focus();
          return;
        }
        status.textContent = form.dataset.success;
        form.reset();
      });
    });

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

    (() => {
      const items = document.querySelectorAll('[data-reveal]');
      if (!items.length || !watchMotion) 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

Inkhaven screenshot Premium

Portfolio

Inkhaven

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