Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Menú de navegación

Ascendia Navbar

A navbar block extracted from the Ascendia template, available in Tailwind CSS.

0 10
Ascendia Navbar preview
ascendia.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>Ascendia Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Ascendia template, available in Tailwind CSS.">
  <meta name="keywords" content="Ascendia, Tailwind CSS template, HTML website template, blog template, online magazine, women founders, entrepreneurship blog, editorial, events, newsletter">
  <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="Ascendia | Tailwind CSS Blog Template">
  <meta property="og:description" content="A bold editorial Tailwind CSS magazine template with a side navigation, filterable stories, a day-rate calculator and article pages.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Ascendia template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Ascendia | Tailwind CSS Blog Template">
  <meta name="twitter:description" content="A bold editorial Tailwind CSS magazine template with a side navigation, filterable stories, a day-rate calculator and article pages.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Ascendia 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=League+Spartan:wght@500;700;800&family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { salmon: { DEFAULT: '#f7979a', soft: '#fde3df' }, teal: { DEFAULT: '#06292c', soft: '#123c40' }, cream: '#fff6ef', mustard: '#f2b84b' },
          fontFamily: { display: ['"League Spartan"', 'sans-serif'], sans: ['"DM 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; } }
    @keyframes ticker { to { transform: translateX(-50%); } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .ticker { animation: ticker 40s linear infinite; }
    .ticker:hover { animation-play-state: paused; }
    .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; }
      .ticker { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-cream font-sans text-teal antialiased lg:pl-56">
<!-- preview canvas: shows overlay navbars on the original hero surface -->
<div class="block-preview-canvas bg-salmon" style="position:relative;min-height:12rem">
<!-- block:start navbar -->
  <header class="sticky top-0 z-40 bg-salmon lg:fixed lg:inset-y-0 lg:left-0 lg:w-56">
    <nav class="flex h-full items-center justify-between gap-4 px-5 py-4 lg:flex-col lg:items-start lg:justify-start lg:px-8 lg:py-10" aria-label="Main">
      <a href="index.html" class="font-display text-3xl font-extrabold uppercase leading-none tracking-tight text-white">Ascend<span class="text-teal">/</span>ia</a>
      <ul class="hidden flex-col gap-3 font-display text-lg uppercase tracking-wide lg:mt-auto lg:flex">
          <li><a href="index.html" aria-current="page" class="transition font-extrabold text-teal">Home</a></li>
          <li><a href="stories.html"  class="transition font-medium text-white hover:text-teal">Stories</a></li>
          <li><a href="events.html"  class="transition font-medium text-white hover:text-teal">Events</a></li>
          <li><a href="about.html"  class="transition font-medium text-white hover:text-teal">About</a></li>
          <li><a href="contact.html"  class="transition font-medium text-white hover:text-teal">Contact</a></li>
      </ul>
      <a href="index.html#newsletter" class="hidden w-full bg-teal px-4 py-3 text-center font-display text-sm font-bold uppercase tracking-wider text-white transition hover:bg-white hover:text-teal lg:mt-10 lg:block">Subscribe</a>
      <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="grid h-11 w-11 place-items-center border-2 border-teal text-teal lg:hidden" aria-label="Open menu"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
    </nav>
    <div id="mobile-menu" class="hidden border-t-2 border-teal/20 bg-salmon px-5 pb-6 lg:hidden">
      <ul class="grid gap-1 pt-3 font-display text-3xl uppercase">
          <li><a href="index.html" aria-current="page" class="block py-2 font-extrabold text-teal">Home</a></li>
          <li><a href="stories.html"  class="block py-2 font-medium text-white">Stories</a></li>
          <li><a href="events.html"  class="block py-2 font-medium text-white">Events</a></li>
          <li><a href="about.html"  class="block py-2 font-medium text-white">About</a></li>
          <li><a href="contact.html"  class="block py-2 font-medium text-white">Contact</a></li>
      </ul>
    </div>
  </header>
  <!-- block:end navbar -->
</div>
<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-latest]').forEach((root) => {
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const items = [...root.querySelectorAll('[data-post-topic]')];
      const select = (tab, focus) => {
        tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; });
        let shown = 0;
        items.forEach((item) => { item.hidden = tab.dataset.topic !== 'all' && item.dataset.postTopic !== tab.dataset.topic; if (!item.hidden) shown += 1; });
        root.querySelector('[data-post-count]').textContent = shown;
        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-rate]').forEach((root) => {
      const inputs = Object.fromEntries([...root.querySelectorAll('[data-rate-input]')].map((input) => [input.dataset.rateInput, input]));
      const money = (value) => `$${Math.round(value).toLocaleString('en-US')}`;
      const update = () => {
        Object.values(inputs).forEach((input) => {
          const value = Number(input.value);
          root.querySelector(`[data-rate-out="${input.dataset.rateInput}"]`).textContent = input.dataset.prefix ? money(value) : value;
        });
        const days = Number(inputs.weeks.value) * Number(inputs.days.value);
        const revenue = Number(inputs.income.value) / 0.75 + Number(inputs.costs.value);
        root.querySelector('[data-rate-days]').textContent = days;
        root.querySelector('[data-rate-revenue]').textContent = money(revenue);
        root.querySelector('[data-rate-day]').textContent = money(revenue / days);
      };
      Object.values(inputs).forEach((input) => input.addEventListener('input', update));
      update();
    });

    document.querySelectorAll('[data-writers]').forEach((root) => {
      const track = root.querySelector('[data-writers-track]');
      const chips = [...root.querySelectorAll('[data-beat]')];
      const step = () => (track.firstElementChild?.getBoundingClientRect().width || 256) + 20;
      const behavior = () => (reducedMotion ? 'auto' : 'smooth');
      root.querySelector('[data-writers-prev]').addEventListener('click', () => track.scrollBy({ left: -step(), behavior: behavior() }));
      root.querySelector('[data-writers-next]').addEventListener('click', () => track.scrollBy({ left: step(), behavior: behavior() }));
      chips.forEach((chip) => chip.addEventListener('click', () => {
        chips.forEach((other) => other.setAttribute('aria-pressed', String(other === chip)));
        root.querySelectorAll('[data-writer-beat]').forEach((item) => { item.hidden = chip.dataset.beat !== 'all' && item.dataset.writerBeat !== chip.dataset.beat; });
        track.scrollTo({ left: 0 });
      }));
    });

    document.querySelectorAll('[data-rsvp]').forEach((root) => {
      root.querySelectorAll('[data-rsvp-button]').forEach((button) => button.addEventListener('click', () => {
        const going = button.getAttribute('aria-pressed') !== 'true';
        button.setAttribute('aria-pressed', String(going));
        button.textContent = going ? 'Going ✓' : 'RSVP';
        button.closest('li').querySelector('[data-seats]').textContent = `${Number(button.dataset.left) - (going ? 1 : 0)} seats left`;
      }));
    });

    document.querySelectorAll('[data-newsletter]').forEach((form) => {
      const status = form.querySelector('[data-form-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const email = form.querySelector('[name="email"]');
        if (!email.value.trim() || !email.checkValidity()) { status.textContent = 'Please enter a valid email address.'; email.focus(); return; }
        const topics = new FormData(form).getAll('topics');
        status.textContent = `You're in. First issue this Sunday${topics.length ? `, with extra ${topics.join(' and ').toLowerCase()}` : ''}.`;
        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>
<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

Ascendia screenshot

Blog

Ascendia

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