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

Ardentry Gallery

A gallery block extracted from the Ardentry template, available in Tailwind CSS.

0 13
Ardentry Gallery preview

Descargar el código

Licencia comercial

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

ardentry.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>Ardentry Gallery | Tailwind CSS UI Block</title>
  <meta name="description" content="A gallery block extracted from the Ardentry template, available in Tailwind CSS.">
  <meta name="keywords" content="Ardentry, Tailwind CSS template, HTML website template, agency template, advertising agency website, creative studio, branding agency, portfolio case study, offices page, multi-step contact form">
  <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="Ardentry | Tailwind CSS Agency Template">
  <meta property="og:description" content="An editorial Tailwind CSS agency template with a cut-out collage hero, a draggable work rail and a hover services list.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Ardentry template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Ardentry | Tailwind CSS Agency Template">
  <meta name="twitter:description" content="An editorial Tailwind CSS agency template with a cut-out collage hero, a draggable work rail and a hover services list.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Ardentry 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=Lexend:wght@300;400;500&family=Inter:wght@400;500&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { paper: '#f3f1ec', ink: { DEFAULT: '#1c1c1c', soft: '#2a2a2a' }, flame: { DEFAULT: '#e8461e', dark: '#c9370f', soft: '#fbe3da' } },
          fontFamily: { sans: ['Inter', 'sans-serif'], display: ['Lexend', '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; }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .blob { border-radius: 42% 58% 63% 37% / 46% 38% 62% 54%; }
    .blob-img { transition: opacity .45s ease, transform .45s ease; }
    .spin-slow { animation: spin 14s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .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; }
      .spin-slow { animation: none; }
      .blob-img { transition: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-paper font-sans text-ink antialiased">
<!-- block:start gallery -->
  <section class="mx-auto max-w-7xl px-5 py-16 md:px-10 md:py-24" data-rail-root>
    <div class="flex flex-wrap items-center justify-between gap-4 border-b border-ink/15 pb-8">
      <h2 class="flex items-baseline gap-4 font-display text-5xl tracking-[-0.03em] text-flame md:text-6xl">Work <span class="text-2xl font-light text-ink/50">/</span> <span class="font-sans text-base text-flame/80">Featured projects</span></h2>
      <div class="flex items-center gap-2">
        <button type="button" data-rail-prev class="grid h-11 w-11 place-items-center rounded-full border border-flame text-flame transition hover:bg-flame hover:text-white" aria-label="Previous projects"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
        <button type="button" data-rail-next class="grid h-11 w-11 place-items-center rounded-full border border-flame text-flame transition hover:bg-flame hover:text-white" aria-label="Next projects"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
        <a href="work.html" class="ml-2 rounded-full border border-flame px-5 py-2.5 text-sm text-flame transition hover:bg-flame hover:text-white">View all</a>
      </div>
    </div>
    <ul class="rail -mx-5 mt-10 flex cursor-grab snap-x snap-mandatory gap-6 overflow-x-auto px-5 pb-4 active:cursor-grabbing md:-mx-10 md:px-10" data-rail tabindex="0" aria-label="Featured projects">
        <li class="w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[31%]">
          <a href="project-halden.html" class="group block" draggable="false">
            <span class="relative block">
              <img src="https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=700&h=900&q=75" alt="Bright clothing store interior with hanging rails" class="aspect-[4/5] w-full rounded-[2rem] object-cover grayscale transition duration-500 group-hover:grayscale-0 group-focus-visible:grayscale-0 grayscale-0" draggable="false">
              <span class="absolute -right-2 -top-2 grid h-14 w-14 place-items-center rounded-full border-4 border-paper bg-flame text-lg text-white transition scale-100"><i class="fa-solid fa-arrow-down rotate-[-45deg]" aria-hidden="true"></i></span>
            </span>
            <span class="mt-6 block px-2 font-display text-xl transition group-hover:text-flame text-flame">Streets That Listen</span>
            <span class="mt-2 block px-2 text-sm text-ink/60">Halden Outfitters · New York</span>
            <span class="mt-1 block px-2 text-sm text-ink/60">Year, 2025</span>
          </a>
        </li>
        <li class="w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[31%]">
          <a href="project-halden.html" class="group block" draggable="false">
            <span class="relative block">
              <img src="https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=700&h=900&q=75" alt="Two minimal white smartwatches on a white surface" class="aspect-[4/5] w-full rounded-[2rem] object-cover grayscale transition duration-500 group-hover:grayscale-0 group-focus-visible:grayscale-0 " draggable="false">
              <span class="absolute -right-2 -top-2 grid h-14 w-14 place-items-center rounded-full border-4 border-paper bg-flame text-lg text-white transition scale-0 group-hover:scale-100 group-focus-visible:scale-100"><i class="fa-solid fa-arrow-down rotate-[-45deg]" aria-hidden="true"></i></span>
            </span>
            <span class="mt-6 block px-2 font-display text-xl transition group-hover:text-flame ">Time, Reframed</span>
            <span class="mt-2 block px-2 text-sm text-ink/60">Morrow Watch Co. · Copenhagen</span>
            <span class="mt-1 block px-2 text-sm text-ink/60">Year, 2025</span>
          </a>
        </li>
        <li class="w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[31%]">
          <a href="project-halden.html" class="group block" draggable="false">
            <span class="relative block">
              <img src="https://images.unsplash.com/photo-1550684848-fac1c5b4e853?auto=format&fit=crop&w=700&h=900&q=75" alt="Macro shot of colourful oil bubbles" class="aspect-[4/5] w-full rounded-[2rem] object-cover grayscale transition duration-500 group-hover:grayscale-0 group-focus-visible:grayscale-0 " draggable="false">
              <span class="absolute -right-2 -top-2 grid h-14 w-14 place-items-center rounded-full border-4 border-paper bg-flame text-lg text-white transition scale-0 group-hover:scale-100 group-focus-visible:scale-100"><i class="fa-solid fa-arrow-down rotate-[-45deg]" aria-hidden="true"></i></span>
            </span>
            <span class="mt-6 block px-2 font-display text-xl transition group-hover:text-flame ">Colour in Motion</span>
            <span class="mt-2 block px-2 text-sm text-ink/60">Prisma Paints · Milan</span>
            <span class="mt-1 block px-2 text-sm text-ink/60">Year, 2024</span>
          </a>
        </li>
        <li class="w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[31%]">
          <a href="project-halden.html" class="group block" draggable="false">
            <span class="relative block">
              <img src="https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&w=700&h=900&q=75" alt="Worn paintbrushes covered in bright paint" class="aspect-[4/5] w-full rounded-[2rem] object-cover grayscale transition duration-500 group-hover:grayscale-0 group-focus-visible:grayscale-0 " draggable="false">
              <span class="absolute -right-2 -top-2 grid h-14 w-14 place-items-center rounded-full border-4 border-paper bg-flame text-lg text-white transition scale-0 group-hover:scale-100 group-focus-visible:scale-100"><i class="fa-solid fa-arrow-down rotate-[-45deg]" aria-hidden="true"></i></span>
            </span>
            <span class="mt-6 block px-2 font-display text-xl transition group-hover:text-flame ">The Brush Edit</span>
            <span class="mt-2 block px-2 text-sm text-ink/60">Atelier Nove · Lisbon</span>
            <span class="mt-1 block px-2 text-sm text-ink/60">Year, 2024</span>
          </a>
        </li>
        <li class="w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[31%]">
          <a href="project-halden.html" class="group block" draggable="false">
            <span class="relative block">
              <img src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=700&h=900&q=75" alt="Looking up at dark glass skyscrapers" class="aspect-[4/5] w-full rounded-[2rem] object-cover grayscale transition duration-500 group-hover:grayscale-0 group-focus-visible:grayscale-0 " draggable="false">
              <span class="absolute -right-2 -top-2 grid h-14 w-14 place-items-center rounded-full border-4 border-paper bg-flame text-lg text-white transition scale-0 group-hover:scale-100 group-focus-visible:scale-100"><i class="fa-solid fa-arrow-down rotate-[-45deg]" aria-hidden="true"></i></span>
            </span>
            <span class="mt-6 block px-2 font-display text-xl transition group-hover:text-flame ">Glass &amp; Grid</span>
            <span class="mt-2 block px-2 text-sm text-ink/60">Meridian Tower · Chicago</span>
            <span class="mt-1 block px-2 text-sm text-ink/60">Year, 2023</span>
          </a>
        </li>
    </ul>
  </section>
  <!-- block:end gallery -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        button.setAttribute('aria-expanded', String(!open));
        menu.classList.toggle('hidden', open);
      });
    });

    document.querySelectorAll('[data-rail-root]').forEach((root) => {
      const rail = root.querySelector('[data-rail]');
      const step = () => (rail.firstElementChild ? rail.firstElementChild.getBoundingClientRect().width + 24 : 300);
      root.querySelector('[data-rail-prev]').addEventListener('click', () => rail.scrollBy({ left: -step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
      root.querySelector('[data-rail-next]').addEventListener('click', () => rail.scrollBy({ left: step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
      rail.addEventListener('keydown', (event) => { if (event.key === 'ArrowRight') rail.scrollBy({ left: step() }); if (event.key === 'ArrowLeft') rail.scrollBy({ left: -step() }); });
      let startX = 0; let startScroll = 0; let dragging = false; let moved = false;
      rail.addEventListener('pointerdown', (event) => { if (event.pointerType !== 'mouse') return; dragging = true; moved = false; startX = event.clientX; startScroll = rail.scrollLeft; rail.style.scrollSnapType = 'none'; });
      addEventListener('pointermove', (event) => { if (!dragging) return; const dx = event.clientX - startX; if (Math.abs(dx) > 5) moved = true; rail.scrollLeft = startScroll - dx; });
      addEventListener('pointerup', () => { if (!dragging) return; dragging = false; rail.style.scrollSnapType = ''; });
      rail.addEventListener('click', (event) => { if (moved) { event.preventDefault(); moved = false; } }, true);
    });

    document.querySelectorAll('[data-services]').forEach((root) => {
      const links = [...root.querySelectorAll('[data-service]')];
      const activate = (index) => {
        links.forEach((link, i) => {
          const on = i === index;
          link.querySelector('[data-service-name]').classList.toggle('text-flame', on);
          link.querySelector('[data-service-name]').classList.toggle('text-ink/35', !on);
          link.querySelector('[data-service-num]').classList.toggle('text-flame', on);
          link.querySelector('[data-service-num]').classList.toggle('text-ink/40', !on);
          link.parentElement.querySelector('[data-service-text]').classList.toggle('hidden', !on);
        });
        root.querySelectorAll('[data-service-photo]').forEach((photo, i) => { photo.classList.toggle('opacity-100', i === index); photo.classList.toggle('opacity-0', i !== index); photo.classList.toggle('rotate-6', i !== index); });
      };
      links.forEach((link, i) => { link.addEventListener('mouseenter', () => activate(i)); link.addEventListener('focus', () => activate(i)); });
    });

    document.querySelectorAll('[data-count]').forEach((el) => {
      if (!watchMotion) return;
      const target = Number(el.dataset.count);
      const observer = new IntersectionObserver(([entry]) => {
        if (!entry.isIntersecting) return;
        observer.disconnect();
        const start = performance.now();
        const tick = (now) => { const t = Math.min(1, (now - start) / 700); el.textContent = Math.round(target * t); if (t < 1) requestAnimationFrame(tick); };
        requestAnimationFrame(tick);
      });
      observer.observe(el);
    });

    if (watchMotion) {
      document.documentElement.classList.add('reveal-ready');
      const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
      }), { threshold: 0.15 });
      document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
    }
  </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

Ardentry screenshot Premium

Agencia

Ardentry

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