Promo Action Bar
Mint-green promo action bar with gray 3D Claim button, learn-more link, and close icon. Domain deals, trial offers, and partnership promos. Responsive flex layout with ring border and green shadow.
Dependencies
react
lucide-react
npm install lucide-reactimport { X } from "lucide-react";
export function PromoActionBar() {
return (
<div className="flex max-w-2xl flex-wrap items-center justify-between gap-3 rounded-xl bg-gradient-to-r from-emerald-100 via-emerald-50 to-zinc-100 px-4 py-3 shadow-[0_1px_0_#fff_inset,0_8px_30px_rgba(16,185,129,0.2)] ring-1 ring-emerald-200/60">
<p className="text-sm text-zinc-700">
Claim a free <strong className="text-emerald-700">.link</strong> domain — free for 1 year.{" "}
<a href="#" className="font-semibold text-emerald-600 underline-offset-2 hover:underline">Learn more</a>
</p>
<div className="flex items-center gap-2">
<button type="button" className="rounded-lg bg-gradient-to-b from-zinc-700 to-zinc-900 px-4 py-1.5 text-xs font-bold text-white shadow-[0_2px_0_rgba(255,255,255,0.15)_inset,0_4px_12px_rgba(0,0,0,0.25)]">
Claim domain
</button>
<button type="button" className="rounded-md p-1 text-zinc-500 hover:bg-zinc-200/60" aria-label="Close">
<X className="h-4 w-4" />
</button>
</div>
</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 lucide-react
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
import { X } from "lucide-react";
export function PromoActionBar() {
return (
<div className="flex max-w-2xl flex-wrap items-center justify-between gap-3 rounded-xl bg-gradient-to-r from-emerald-100 via-emerald-50 to-zinc-100 px-4 py-3 shadow-[0_1px_0_#fff_inset,0_8px_30px_rgba(16,185,129,0.2)] ring-1 ring-emerald-200/60">
<p className="text-sm text-zinc-700">
Claim a free <strong className="text-emerald-700">.link</strong> domain — free for 1 year.{" "}
<a href="#" className="font-semibold text-emerald-600 underline-offset-2 hover:underline">Learn more</a>
</p>
<div className="flex items-center gap-2">
<button type="button" className="rounded-lg bg-gradient-to-b from-zinc-700 to-zinc-900 px-4 py-1.5 text-xs font-bold text-white shadow-[0_2px_0_rgba(255,255,255,0.15)_inset,0_4px_12px_rgba(0,0,0,0.25)]">
Claim domain
</button>
<button type="button" className="rounded-md p-1 text-zinc-500 hover:bg-zinc-200/60" aria-label="Close">
<X className="h-4 w-4" />
</button>
</div>
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.