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

Alpenmoor Demo

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

0 6
Alpenmoor Demo preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with 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 Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo 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 demo -->
  <section class="relative isolate overflow-hidden text-ivory" data-day>
      <img src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="0" hidden>
      <img src="https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="1" hidden>
      <img src="https://images.unsplash.com/photo-1596394516093-501ba68a0ba6?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="2" >
      <img src="https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="3" hidden>
      <img src="https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="4" hidden>
      <img src="https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1800&h=1000&q=75" alt="" class="absolute inset-0 -z-20 h-full w-full object-cover transition-opacity duration-700" data-day-photo="5" hidden>
    <div class="absolute inset-0 -z-10 bg-night/35"></div>
    <div class="absolute inset-0 -z-10" style="background: linear-gradient(to bottom, rgba(254,243,199,.2), transparent, rgba(20,19,15,.45))" data-day-tint></div>
    <div class="mx-auto grid min-h-[38rem] max-w-7xl content-between gap-10 px-5 py-20 md:px-10">
      <div class="max-w-xl">
        <p class="text-xs uppercase tracking-[.4em] text-ivory/80">A day at Alpenmoor</p>
        <h2 class="mt-4 font-serif text-4xl font-light md:text-6xl">Slide through the light</h2>
      </div>
      <div class="grid gap-8 lg:grid-cols-[1fr_1.2fr] lg:items-end">
        <div aria-live="polite">
          <p class="font-serif text-7xl font-light md:text-8xl" data-day-time>13:00</p>
          <p class="mt-2 text-xs uppercase tracking-[.4em] text-brass" data-day-title>Terrace lunch · +2°C</p>
          <p class="mt-4 max-w-md text-lg text-ivory/85" data-day-text>Barley soup and alpine cheese in full sun.</p>
        </div>
        <div>
          <label for="day-range" class="sr-only">Time of day</label>
          <input id="day-range" type="range" min="0" max="5" value="2" step="1" class="w-full accent-[#b48a52]" data-day-range>
          <div class="mt-3 flex justify-between text-xs tracking-[.2em] text-ivory/70" aria-hidden="true"><span>07:00</span><span>10:00</span><span>13:00</span><span>16:00</span><span>19:00</span><span>22:00</span></div>
        </div>
      </div>
    </div>
    <script type="application/json" data-day-data>[{"time":"07:00","title":"Sunrise · −8°C","text":"Yoga on the larch deck while the peaks turn pink.","tint":"linear-gradient(to bottom, rgba(253,164,175,.5), rgba(254,215,170,.2), rgba(20,19,15,.6))"},{"time":"10:00","title":"First tracks · −4°C","text":"Ski from the door; the lift opens two minutes away.","tint":"linear-gradient(to bottom, rgba(186,230,253,.1), transparent, rgba(20,19,15,.4))"},{"time":"13:00","title":"Terrace lunch · +2°C","text":"Barley soup and alpine cheese in full sun.","tint":"linear-gradient(to bottom, rgba(254,243,199,.2), transparent, rgba(20,19,15,.45))"},{"time":"16:00","title":"Sauna hour · −1°C","text":"Hay sauna, then a plunge through a hole in the lake ice.","tint":"linear-gradient(to bottom, rgba(253,186,116,.4), rgba(253,230,138,.1), rgba(20,19,15,.6))"},{"time":"19:00","title":"Fondue supper · −6°C","text":"Long tables by the fire and a single candle each.","tint":"linear-gradient(to bottom, rgba(245,158,11,.4), rgba(20,19,15,.3), rgba(20,19,15,.8))"},{"time":"22:00","title":"Stargazing · −12°C","text":"Blankets, mulled cider and a telescope on the roof.","tint":"linear-gradient(to bottom, rgba(49,46,129,.5), rgba(20,19,15,.4), rgba(20,19,15,.8))"}]</script>
  </section>
  <!-- block:end demo -->
<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>

From this template

Alpenmoor screenshot Premium

Travel

Alpenmoor

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