"use client"; import type { LucideIcon } from "lucide-react"; import type { ReactNode } from "react"; type Props = { Icon?: LucideIcon; title: ReactNode; body?: ReactNode; href?: string; external?: boolean; className?: string; /** Append custom inner content below the body */ children?: ReactNode; }; export function GlassCard({ Icon, title, body, href, external, className, children, }: Props) { const inner = ( <> {/* hover amber radial glow */}
{Icon ? ({body}
) : null} {children} {/* gold underline sweep */} > ); const base = `group relative isolate h-full overflow-hidden rounded-2xl border border-bone/10 bg-graphite/40 p-6 backdrop-blur-sm transition-all duration-500 hover:-translate-y-1 hover:border-gold/30 hover:bg-graphite/60 md:p-7 ${className ?? ""}`; if (href) { return ( {inner} ); } return