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

Alpenmoor Hero

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

0 13
Alpenmoor Hero 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 Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero 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 hero -->
  <section class="relative isolate flex min-h-[100svh] flex-col justify-end overflow-hidden text-ivory">
    <img src="https://images.unsplash.com/photo-1510798831971-661eb04b3739?auto=format&fit=crop&w=2000&q=80" alt="Snow-covered mountain lodge lit at dusk, reflected in a lake" class="absolute inset-0 -z-20 h-full w-full object-cover">
    <div class="absolute inset-0 -z-10 bg-gradient-to-b from-night/60 via-night/30 to-night/80"></div>
    <div class="mx-auto w-full max-w-7xl px-5 pb-10 pt-40 text-center md:px-10">
      <p class="text-xs uppercase tracking-[.5em] text-ivory/80" data-reveal>A boutique lodge above the clouds</p>
      <h1 class="mt-6 font-serif text-[3.6rem] font-light leading-none sm:text-8xl lg:text-[10rem]" data-reveal style="--reveal-delay: 80ms">Alpenmoor</h1>
      <p class="mx-auto mt-6 max-w-xl text-lg text-ivory/80" data-reveal style="--reveal-delay: 160ms">Twenty-two suites of larch and stone, a lake that freezes into a mirror and a kitchen that cooks with what the valley grows.</p>
      <form class="mx-auto mt-14 grid max-w-4xl border border-ivory/30 bg-night/50 text-left backdrop-blur-md sm:grid-cols-2 lg:grid-cols-[1fr_1fr_1fr_auto]" data-availability novalidate>
        <label class="grid gap-1 border-b border-ivory/20 px-5 py-4 sm:border-r lg:border-b-0"><span class="text-[10px] uppercase tracking-[.3em] text-ivory/60">Arrival</span><input type="date" name="arrival" required value="2026-12-18" class="bg-transparent text-ivory [color-scheme:dark] focus:outline-none"></label>
        <label class="grid gap-1 border-b border-ivory/20 px-5 py-4 lg:border-b-0 lg:border-r"><span class="text-[10px] uppercase tracking-[.3em] text-ivory/60">Nights</span><select name="nights" class="bg-transparent text-ivory focus:outline-none [&>option]:text-night"><option value="2" >2 nights</option><option value="3" selected>3 nights</option><option value="4" >4 nights</option><option value="5" >5 nights</option><option value="7" >7 nights</option></select></label>
        <label class="grid gap-1 border-b border-ivory/20 px-5 py-4 sm:border-b-0 sm:border-r"><span class="text-[10px] uppercase tracking-[.3em] text-ivory/60">Guests</span><select name="guests" class="bg-transparent text-ivory focus:outline-none [&>option]:text-night"><option value="1" >1 guest</option><option value="2" selected>2 guests</option><option value="3" >3 guests</option><option value="4" >4 guests</option></select></label>
        <button type="submit" class="bg-brass px-8 py-4 text-xs uppercase tracking-[.3em] text-night transition hover:bg-ivory">Check availability</button>
      </form>
      <p class="mt-4 min-h-[1.5rem] text-sm text-ivory/80" data-availability-status role="status"></p>
    </div>
  </section>
  <!-- block:end hero -->
<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