Section

Compact Newsletter CTA — Bento Grid

Bento Grid newsletter layout: Compact newsletter cta.

  • Section
  • Tailwind
  • HTML
  • MIT

Preview

Live section

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/sections/newsletter/bento-grid/
fluid · no fixed width 100%
Dependencies: Tailwind CSS (CDN) · Google Fonts Responsive · Light/dark

Install

Add to your project

terminal
npx devsnips add Tailwind/Sections/Newsletter/bento-grid
registry path: Tailwind/Sections/Newsletter/bento-grid

Source

Implementation

code.html
<!--
Snippet Name: Compact Newsletter CTA — Bento Grid
Description: Bento Grid newsletter layout: Compact newsletter 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:'JetBrains Mono',monospace}.f-disp{font-family:'Inter',sans-serif}
      .bento{background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(236,72,153,.08))}

</style>

<section class="relative w-full py-20 sm:py-28 text-white" data-section="bento-grid">
<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-full border border-white/10 bg-white/5 px-3 py-1 f-mono text-[11px] font-medium text-white/70"><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-white/55">Monthly product updates and ideas. No spam, unsubscribe anytime.</p></div><div class="bg-white/[0.04] border border-white/10 rounded-3xl transition-transform duration-300 hover:-translate-y-1 p-6 flex flex-col sm:flex-row items-center gap-4"><div class="text-center sm:text-left sm:flex-1"><h3 class="font-semibold">Subscribe</h3><p class="text-xs text-white/55">Monthly. Free.</p></div><form class="flex gap-2 w-full sm:w-auto"><label for="nl-email" class="sr-only">Email address</label><input id="nl-email" type="email" placeholder="Email" class="w-full rounded-2xl border border-white/10 bg-white/5 px-4 py-3 text-white placeholder:text-white/40 focus:outline-none focus:ring-2 focus:ring-indigo-400/40 flex-1 sm:w-48" aria-label="Email"><button type="submit" class="bg-gradient-to-br from-indigo-500 to-pink-500 text-white rounded-2xl font-semibold hover:opacity-90"><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></button></form></div>
</div>
</section>
19 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This section is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://sections/newsletter/bento-grid

Continue browsing

View all