mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
- Add IconBadge component with sm/md/lg variants - Refactor FeatureCard to use IconBadge - Update ArchHighlight and RepoInfo for consistency - Add DASHBOARD_GITHUB_TOKEN to CI for rate limit
30 lines
805 B
TypeScript
30 lines
805 B
TypeScript
"use client";
|
|
|
|
import type { IconName } from "./Icon";
|
|
import IconBadge from "./IconBadge";
|
|
|
|
interface FeatureCardProps {
|
|
icon: IconName;
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
/** A feature highlight card with icon, title, and description. */
|
|
export default function FeatureCard({
|
|
icon,
|
|
title,
|
|
description,
|
|
}: FeatureCardProps) {
|
|
return (
|
|
<div
|
|
className="group rounded-xl border border-border bg-frosted-glass p-6 backdrop-blur-xl transition-all duration-300 hover:border-accent/30"
|
|
>
|
|
<div className="mb-3 flex items-center gap-3">
|
|
<IconBadge name={icon} size={28} variant="lg" />
|
|
<h3 className="text-2xl font-semibold text-foreground">{title}</h3>
|
|
</div>
|
|
<p className="text-xl leading-relaxed text-muted">{description}</p>
|
|
</div>
|
|
);
|
|
}
|