Section
Centered Newsletter CTA — Editorial
Editorial newsletter layout: Centered cta.
- Section
- Tailwind
- HTML
- MIT
Preview
Live section
9:41 100%
devsnips.dev/library/tailwind/sections/newsletter/editorial/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Sections/Newsletter/editorial Tailwind/Sections/Newsletter/editorial <!--
Snippet Name: Centered Newsletter CTA — Editorial
Description: Editorial newsletter layout: Centered cta.
Author: DevSnips Contributors
Usage Example: Drop this snippet into any Tailwind CSS page.
-->
<style>
/* DevSnips style-helper classes (self-contained snippet) */
.f-sans{font-family:'Inter',sans-serif}.f-mono{font-family:'Inter',sans-serif}.f-disp{font-family:'Fraunces',serif}
</style>
<section class="relative w-full py-20 sm:py-28 text-[#1c1917]" data-section="editorial">
<div class="mx-auto max-w-7xl px-5 sm:px-6 lg:px-8">
<div class="mb-10 text-center mx-auto"><p class="mb-4"><span class="inline-flex items-center gap-1.5 rounded-sm border border-[#1c1917]/15 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[#78716c]"><svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg> Newsletter</span></p><h2 class="f-disp text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight text-center mx-auto">Stay in the loop</h2><p class="mt-4 max-w-2xl text-center mx-auto text-base sm:text-lg leading-relaxed text-[#78716c]">Monthly product updates and ideas. No spam, unsubscribe anytime.</p></div><div class="bg-[#fffdf8] border border-[#1c1917]/10 rounded-sm transition-colors hover:border-[#1c1917]/25 p-8 sm:p-12 text-center"><div class="mx-auto mb-5 flex h-14 w-14 items-center justify-center bg-[#f7f3ec] border border-[#1c1917]/10 rounded-sm"><svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg></div><h3 class="f-disp text-2xl sm:text-3xl font-bold">Join 24,000+ subscribers</h3><p class="mt-3 text-sm text-[#78716c] max-w-2xl mx-auto">Get one email a month with product updates, ideas, and no spam.</p><div class="mt-6"><form class="flex flex-col sm:flex-row gap-2 max-w-2xl mx-auto w-full"><label for="nl-email" class="sr-only">Email address</label><input id="nl-email" type="email" placeholder="you@email.com" class="w-full rounded-sm border border-[#1c1917]/15 bg-[#fffdf8] px-4 py-3 text-[#1c1917] placeholder:text-[#a8a29e] focus:outline-none focus:ring-1 focus:ring-[#b45309]/40 flex-1" aria-label="Email"><button type="submit" class="bg-[#1c1917] text-[#f7f3ec] rounded-sm font-medium hover:bg-[#2a2522] justify-center"><svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="m22 2-7 20-4-9-9-4Z"/><path d="M22 2 11 13"/></svg> Subscribe</button></form></div><p class="mt-3 text-xs text-[#78716c]">We respect your privacy. Unsubscribe in one click.</p></div>
</div>
</section> # Centered Newsletter CTA — Editorial
> Editorial newsletter layout: Centered cta.

## Features
- centered CTA
- icon header
- subscriber count
- privacy note
- inline form
## Responsive support
- Mobile-first layout
- Breakpoints: `sm` (640px), `md` (768px), `lg` (1024px)
- Stacks gracefully on small screens, expands on large viewports
## Browser support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
## Usage
1. Copy the markup from `code.html` into your Tailwind CSS project.
2. Include the corresponding Google Fonts in your document `<head>` if the style requires them.
3. The snippet is self-contained and copy-paste ready — no build step or JavaScript required.
## Design language
**Editorial** — part of the DevSnips Tailwind Sections library. Every section is
original, accessible, and production-ready.
## Files
- `preview.html` — full standalone preview page (Tailwind CDN + fonts)
- `code.html` — copy-paste snippet only (no `<head>` / CDN)
- `metadata.json` — structured metadata
- `README.md` — this file 18 lines UTF-8 · LF · Spaces: 2
Continue browsing