Free
Newsletter
Ascendia Newsletter
A newsletter block extracted from the Ascendia template, available in Tailwind CSS.
0
6
A newsletter block extracted from the Ascendia template, available in Tailwind CSS.
<!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 Newsletter | Tailwind CSS UI Block</title>
<meta name="description" content="A newsletter 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 newsletter -->
<section id="newsletter" class="bg-salmon">
<div class="mx-auto grid max-w-6xl gap-10 px-5 py-20 md:px-10 lg:grid-cols-[1fr_1.2fr] lg:items-center">
<h2 class="font-display text-5xl font-extrabold uppercase leading-[.9] md:text-7xl">One email. Sundays. Free.</h2>
<form data-newsletter novalidate>
<fieldset>
<legend class="font-display text-sm font-bold uppercase tracking-wider">I want more on</legend>
<div class="mt-3 flex flex-wrap gap-2">
<label class="cursor-pointer"><input type="checkbox" name="topics" value="Money" class="peer sr-only" checked><span class="block border-2 border-teal px-4 py-2 font-display text-sm font-bold uppercase tracking-wider transition hover:bg-salmon-soft peer-checked:bg-teal peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-white">Money</span></label>
<label class="cursor-pointer"><input type="checkbox" name="topics" value="Pricing" class="peer sr-only" checked><span class="block border-2 border-teal px-4 py-2 font-display text-sm font-bold uppercase tracking-wider transition hover:bg-salmon-soft peer-checked:bg-teal peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-white">Pricing</span></label>
<label class="cursor-pointer"><input type="checkbox" name="topics" value="Leadership" class="peer sr-only" ><span class="block border-2 border-teal px-4 py-2 font-display text-sm font-bold uppercase tracking-wider transition hover:bg-salmon-soft peer-checked:bg-teal peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-white">Leadership</span></label>
<label class="cursor-pointer"><input type="checkbox" name="topics" value="Fundraising" class="peer sr-only" ><span class="block border-2 border-teal px-4 py-2 font-display text-sm font-bold uppercase tracking-wider transition hover:bg-salmon-soft peer-checked:bg-teal peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-white">Fundraising</span></label>
<label class="cursor-pointer"><input type="checkbox" name="topics" value="Wellbeing" class="peer sr-only" ><span class="block border-2 border-teal px-4 py-2 font-display text-sm font-bold uppercase tracking-wider transition hover:bg-salmon-soft peer-checked:bg-teal peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-white">Wellbeing</span></label>
</div>
</fieldset>
<div class="mt-6 flex flex-col gap-2 sm:flex-row">
<label for="news-email" class="sr-only">Email address</label>
<input id="news-email" name="email" type="email" required autocomplete="email" placeholder="you@company.com" class="min-w-0 flex-1 border-2 border-teal bg-cream px-5 py-4 placeholder:text-teal/40 focus:outline-none focus:ring-4 focus:ring-white">
<button type="submit" class="bg-teal px-7 py-4 font-display text-sm font-bold uppercase tracking-wider text-white transition hover:bg-white hover:text-teal">Subscribe</button>
</div>
<p class="mt-3 min-h-[1.5rem] font-medium" data-form-status role="status"></p>
</form>
</div>
</section>
<!-- block:end newsletter -->
<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>
Blog
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.
Tailwind CSS · HTML download