Banner Stripe CTA
Full-width banner stripe CTA for promos and launch announcements. Indigo background, centered copy, and inline claim button. Drop into any React layout above the navbar or below the hero for time-sensitive offers.
Dependencies
react
npm install react react-domexport function BannerStripeCta() {
return (
<div className="flex flex-wrap items-center justify-center gap-3 bg-indigo-600 px-4 py-3 text-center text-sm text-white">
<span>🎉 Launch week — 40% off Pro plans</span>
<a href="#" className="rounded-md bg-white/15 px-3 py-1 font-semibold hover:bg-white/25">Claim offer</a>
</div>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function BannerStripeCta() {
return (
<div className="flex flex-wrap items-center justify-center gap-3 bg-indigo-600 px-4 py-3 text-center text-sm text-white">
<span>🎉 Launch week — 40% off Pro plans</span>
<a href="#" className="rounded-md bg-white/15 px-3 py-1 font-semibold hover:bg-white/25">Claim offer</a>
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.