Glass Feature Card
Glassmorphism feature card with backdrop-blur, white/10 border, icon slot, title, and description. Dark-mode SaaS feature grid tile. Copy into React landing pages for AI tools, analytics, and dev platforms.
Dependencies
react
npm install react react-domexport function GlassFeatureCard() {
return (
<div className="rounded-2xl border border-white/10 bg-white/5 p-6 backdrop-blur-xl">
<div className="flex h-10 w-10 items-center justify-center rounded-xl bg-indigo-500/20 text-indigo-300">⚡</div>
<h3 className="mt-4 font-semibold text-white">Lightning fast</h3>
<p className="mt-2 text-sm text-zinc-400">Optimized bundles under 4kb gzipped per component.</p>
</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 GlassFeatureCard() {
return (
<div className="rounded-2xl border border-white/10 bg-white/5 p-6 backdrop-blur-xl">
<div className="flex h-10 w-10 items-center justify-center rounded-xl bg-indigo-500/20 text-indigo-300">⚡</div>
<h3 className="mt-4 font-semibold text-white">Lightning fast</h3>
<p className="mt-2 text-sm text-zinc-400">Optimized bundles under 4kb gzipped per component.</p>
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.