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

Alpenmoor Gallery

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

0 10
Alpenmoor Gallery preview

Descargar el código

Licencia comercial

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

alpenmoor.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>Alpenmoor Gallery | Tailwind CSS UI Block</title>
  <meta name="description" content="A gallery block extracted from the Alpenmoor template, available in Tailwind CSS.">
  <meta name="keywords" content="Alpenmoor, Tailwind CSS template, HTML website template, travel template, boutique hotel, mountain lodge, alpine resort, spa hotel, hotel booking, luxury travel">
  <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="Alpenmoor | Tailwind CSS Travel Template">
  <meta property="og:description" content="An editorial Tailwind CSS mountain hotel template with a booking bar, suite hotspots, a seasonal programme and a day-at-the-lodge light slider.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Alpenmoor template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Alpenmoor | Tailwind CSS Travel Template">
  <meta name="twitter:description" content="An editorial Tailwind CSS mountain hotel template with a booking bar, suite hotspots, a seasonal programme and a day-at-the-lodge light slider.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Alpenmoor 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=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300&family=Jost:wght@300;400;500&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { night: { DEFAULT: '#14130f', soft: '#1f1d18' }, ivory: { DEFAULT: '#f4efe6', deep: '#e8e0d2' }, brass: { DEFAULT: '#b48a52', deep: '#93703f' }, pine: '#24302a', stone: '#d9d1c4' },
          fontFamily: { serif: ['"Cormorant Garamond"', 'serif'], sans: ['Jost', '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; } }
    @keyframes drift { to { transform: translateX(-50%); } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .drift { animation: drift 60s linear infinite; }
    .drift-reverse { animation: drift 70s linear infinite reverse; }
    .drift-row:hover .drift, .drift-row:hover .drift-reverse { animation-play-state: paused; }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    dialog::backdrop { background: rgba(20, 19, 15, .85); }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .drift, .drift-reverse { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-ivory font-sans font-light text-night antialiased">
<!-- block:start gallery -->
  <section class="mx-auto max-w-7xl px-5 py-24 md:px-10 md:py-32" data-lightbox>
    <div class="flex flex-wrap items-end justify-between gap-6">
      <h2 class="font-serif text-4xl font-light md:text-6xl">Moments from the lodge</h2>
      <p class="max-w-xs text-night/60">Tap any picture to see it larger.</p>
    </div>
    <ul class="mt-12 grid auto-rows-[14rem] grid-flow-dense grid-cols-2 gap-3 md:grid-cols-3">
        <li class="row-span-2">
          <button type="button" data-lightbox-open="0" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Classic suite with a velvet sofa and warm lamps"><img src="https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=800&h=900&q=75" alt="Classic suite with a velvet sofa and warm lamps" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
        <li class="">
          <button type="button" data-lightbox-open="1" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Dining room with dark timber and long tables"><img src="https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=800&h=900&q=75" alt="Dining room with dark timber and long tables" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
        <li class="">
          <button type="button" data-lightbox-open="2" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Wooden boathouse on a turquoise mountain lake"><img src="https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=800&h=900&q=75" alt="Wooden boathouse on a turquoise mountain lake" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
        <li class="">
          <button type="button" data-lightbox-open="3" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Spa amenities with towels and a candle"><img src="https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=800&h=900&q=75" alt="Spa amenities with towels and a candle" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
        <li class="row-span-2">
          <button type="button" data-lightbox-open="4" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Skier mid-jump above snowy peaks"><img src="https://images.unsplash.com/photo-1551524559-8af4e6624178?auto=format&fit=crop&w=800&h=900&q=75" alt="Skier mid-jump above snowy peaks" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
        <li class="md:col-span-2">
          <button type="button" data-lightbox-open="5" class="group block h-full w-full overflow-hidden" aria-label="Enlarge: Outdoor bed on a deck above a lake valley"><img src="https://images.unsplash.com/photo-1596394516093-501ba68a0ba6?auto=format&fit=crop&w=800&h=900&q=75" alt="Outdoor bed on a deck above a lake valley" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></button>
        </li>
    </ul>
    <dialog class="w-[min(64rem,calc(100%-2rem))] bg-transparent p-0 text-ivory" data-lightbox-dialog aria-label="Photo viewer">
      <img src="https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1600&q=80" alt="Classic suite with a velvet sofa and warm lamps" class="max-h-[78vh] w-full object-contain" data-lightbox-image>
      <div class="mt-4 flex items-center justify-between gap-4">
        <p class="text-sm text-ivory/80" data-lightbox-caption>Classic suite with a velvet sofa and warm lamps</p>
        <div class="flex gap-2">
          <button type="button" data-lightbox-prev class="grid h-11 w-11 place-items-center rounded-full border border-ivory/40 hover:bg-ivory hover:text-night" aria-label="Previous photo"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
          <button type="button" data-lightbox-next class="grid h-11 w-11 place-items-center rounded-full border border-ivory/40 hover:bg-ivory hover:text-night" aria-label="Next photo"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
          <form method="dialog"><button class="grid h-11 w-11 place-items-center rounded-full bg-ivory text-night" aria-label="Close viewer"><i class="fa-solid fa-xmark" aria-hidden="true"></i></button></form>
        </div>
      </div>
    </dialog>
    <script type="application/json" data-lightbox-data>[{"photo":"1590490360182-c33d57733427","alt":"Classic suite with a velvet sofa and warm lamps"},{"photo":"1517248135467-4c7edcad34c4","alt":"Dining room with dark timber and long tables"},{"photo":"1470770841072-f978cf4d019e","alt":"Wooden boathouse on a turquoise mountain lake"},{"photo":"1540555700478-4be289fbecef","alt":"Spa amenities with towels and a candle"},{"photo":"1551524559-8af4e6624178","alt":"Skier mid-jump above snowy peaks"},{"photo":"1596394516093-501ba68a0ba6","alt":"Outdoor bed on a deck above a lake valley"}]</script>
  </section>
  <!-- block:end gallery -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    document.querySelectorAll('[data-overlay-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      const close = () => { menu.classList.add('hidden'); button.setAttribute('aria-expanded', 'false'); document.body.style.overflow = ''; button.focus(); };
      button.addEventListener('click', () => { menu.classList.remove('hidden'); button.setAttribute('aria-expanded', 'true'); document.body.style.overflow = 'hidden'; menu.querySelector('[data-overlay-close]').focus(); });
      menu.querySelector('[data-overlay-close]').addEventListener('click', close);
      document.addEventListener('keydown', (event) => { if (event.key === 'Escape' && !menu.classList.contains('hidden')) close(); });
    });

    document.querySelectorAll('[data-availability]').forEach((form) => {
      const status = document.querySelector('[data-availability-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const data = new FormData(form);
        if (!data.get('arrival')) { status.textContent = 'Please choose an arrival date.'; return; }
        const arrival = new Date(data.get('arrival'));
        const leave = new Date(arrival); leave.setDate(arrival.getDate() + Number(data.get('nights')));
        const fmt = (d) => d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short' });
        const free = 2 + ((arrival.getDate() + Number(data.get('nights'))) % 4);
        status.textContent = `${free} suites free for ${data.get('guests')} guests, ${fmt(arrival)} – ${fmt(leave)}. Continue on the booking page to hold one.`;
      });
    });

    document.querySelectorAll('[data-hotspots]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-spot-data]').textContent);
      const spots = [...root.querySelectorAll('[data-spot]')];
      spots.forEach((spot) => spot.addEventListener('click', () => {
        spots.forEach((other) => other.setAttribute('aria-pressed', String(other === spot)));
        const item = data[Number(spot.dataset.spot)];
        root.querySelector('[data-spot-title]').textContent = item.title;
        root.querySelector('[data-spot-text]').textContent = item.text;
      }));
    });

    document.querySelectorAll('[data-seasons]').forEach((root) => {
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const select = (tab, focus) => {
        tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; document.getElementById(other.getAttribute('aria-controls')).hidden = !on; });
        if (focus) tab.focus();
      };
      tabs.forEach((tab, i) => {
        tab.addEventListener('click', () => select(tab));
        tab.addEventListener('keydown', (event) => {
          if (event.key === 'ArrowRight') select(tabs[(i + 1) % tabs.length], true);
          if (event.key === 'ArrowLeft') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
        });
      });
    });

    document.querySelectorAll('[data-day]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-day-data]').textContent);
      const range = root.querySelector('[data-day-range]');
      const tint = root.querySelector('[data-day-tint]');
      const update = () => {
        const index = Number(range.value);
        const hour = data[index];
        tint.style.background = hour.tint;
        root.querySelectorAll('[data-day-photo]').forEach((img) => { img.hidden = Number(img.dataset.dayPhoto) !== index; });
        root.querySelector('[data-day-time]').textContent = hour.time;
        root.querySelector('[data-day-title]').textContent = hour.title;
        root.querySelector('[data-day-text]').textContent = hour.text;
      };
      range.addEventListener('input', update);
    });

    document.querySelectorAll('[data-lightbox]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-lightbox-data]').textContent);
      const dialog = root.querySelector('[data-lightbox-dialog]');
      let current = 0;
      const show = (index) => {
        current = (index + data.length) % data.length;
        const image = dialog.querySelector('[data-lightbox-image]');
        image.src = `https://images.unsplash.com/photo-${data[current].photo}?auto=format&fit=crop&w=1600&q=80`;
        image.alt = data[current].alt;
        dialog.querySelector('[data-lightbox-caption]').textContent = data[current].alt;
      };
      root.querySelectorAll('[data-lightbox-open]').forEach((button) => button.addEventListener('click', () => { show(Number(button.dataset.lightboxOpen)); dialog.showModal(); }));
      dialog.querySelector('[data-lightbox-prev]').addEventListener('click', () => show(current - 1));
      dialog.querySelector('[data-lightbox-next]').addEventListener('click', () => show(current + 1));
      dialog.addEventListener('click', (event) => { if (event.target === dialog) dialog.close(); });
    });

    document.querySelectorAll('[data-postcard]').forEach((form) => {
      const status = form.querySelector('[data-form-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const invalid = [...form.querySelectorAll('[required]')].find((field) => !field.value.trim() || !field.checkValidity());
        if (invalid) { status.textContent = 'Please add your name and a valid email.'; invalid.focus(); return; }
        status.textContent = `Thank you, ${form.querySelector('[name="name"]').value.trim()}. The first postcard arrives with the first snow.`;
        form.reset();
      });
    });

    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

Alpenmoor screenshot Premium

Viajes

Alpenmoor

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