Jack Maclennan Portfolio
    Preparing search index...

    Variable StatCardConst

    StatCard: React.FC<StatCardProps> = ...

    A small card used to display a statistic. It shows a large value and a descriptive label below it.

              <StatCard value="2+" label="Years of Experience" />
    

    The value to display.

    The label for the value.

    Optional Tailwind classes for custom styling.

    The rendered StatCard component.

    const StatCard: React.FC<StatCardProps> = ({ value, label, className = '' }) => (
    <div
    className={`flex flex-col items-center justify-center rounded-xl bg-slate-100 p-6 dark:bg-slate-700 ${className}`}
    >
    <div className="text-3xl font-bold text-emerald-600 dark:text-emerald-400">{value}</div>
    <p className="mt-2 text-sm text-slate-700 dark:text-slate-300">{label}</p>
    </div>
    );