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

Ascendia Demo

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

0 6
Ascendia Demo 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 Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo 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">
<!-- block:start demo -->
  <section class="bg-teal text-white" data-rate>
    <div class="mx-auto grid max-w-6xl gap-12 px-5 py-20 md:px-10 md:py-28 lg:grid-cols-[1fr_1.1fr]">
      <div>
        <p class="font-display text-sm font-bold uppercase tracking-[.2em] text-salmon">Tool of the issue</p>
        <h2 class="mt-4 font-display text-5xl font-extrabold uppercase leading-[.95] md:text-6xl">What should your day rate be?</h2>
        <p class="mt-6 max-w-md text-white/75">Most of our readers undercharge by a third. Put in what you want to earn and how you really work; we will do the maths.</p>
        <div class="mt-10 grid gap-7">
            <label class="grid gap-2"><span class="flex justify-between font-display text-sm font-bold uppercase tracking-wider">Take-home goal<output class="text-mustard" data-rate-out="income">$72,500</output></span><input type="range" min="20000" max="200000" step="2500" value="72500" data-rate-input="income" data-prefix="$" class="accent-[#f7979a]"></label>
            <label class="grid gap-2"><span class="flex justify-between font-display text-sm font-bold uppercase tracking-wider">Working weeks a year<output class="text-mustard" data-rate-out="weeks">44</output></span><input type="range" min="30" max="50" step="1" value="44" data-rate-input="weeks" data-prefix="" class="accent-[#f7979a]"></label>
            <label class="grid gap-2"><span class="flex justify-between font-display text-sm font-bold uppercase tracking-wider">Billable days a week<output class="text-mustard" data-rate-out="days">3</output></span><input type="range" min="1" max="5" step="0.5" value="3" data-rate-input="days" data-prefix="" class="accent-[#f7979a]"></label>
            <label class="grid gap-2"><span class="flex justify-between font-display text-sm font-bold uppercase tracking-wider">Yearly business costs<output class="text-mustard" data-rate-out="costs">$9,000</output></span><input type="range" min="0" max="40000" step="500" value="9000" data-rate-input="costs" data-prefix="$" class="accent-[#f7979a]"></label>
        </div>
      </div>
      <div class="self-center">
        <div class="relative pb-4 pr-4">
          <div class="absolute bottom-0 right-0 h-full w-full translate-x-0 bg-salmon" aria-hidden="true"></div>
          <div class="relative bg-cream p-8 text-teal md:p-10" aria-live="polite">
            <p class="font-display text-sm font-bold uppercase tracking-[.2em]">Your day rate</p>
            <p class="mt-2 font-display text-7xl font-extrabold md:text-8xl" data-rate-day>$801</p>
            <dl class="mt-8 grid grid-cols-2 gap-6 border-t-2 border-teal pt-6">
              <div><dt class="text-sm text-teal/60">Billable days a year</dt><dd class="font-display text-3xl font-bold" data-rate-days>132</dd></div>
              <div><dt class="text-sm text-teal/60">Revenue needed</dt><dd class="font-display text-3xl font-bold" data-rate-revenue>$105,667</dd></div>
            </dl>
            <p class="mt-6 text-sm text-teal/70">Includes 25% set aside for tax. <a href="pricing-yourself.html" class="font-bold underline underline-offset-4">Read: charge for the outcome</a></p>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- block:end demo -->
<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>

From this template

Ascendia screenshot

Blog

Ascendia

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