Skip to content

Commit d9302f9

Browse files
feat: Add Soon badge to PackageCard
Add a "Soon" badge to the PackageCard component, specifically next to the package name. This will visually indicate that a package is under development or upcoming.
1 parent 7e79899 commit d9302f9

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/components/PackageCard.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Button } from "@/components/ui/button";
22
import { Card } from "@/components/ui/card";
3+
import { Badge } from "@/components/ui/badge";
34
import { ArrowRight, ExternalLink } from "lucide-react";
45

56
interface PackageCardProps {
@@ -8,7 +9,10 @@ interface PackageCardProps {
89
features: string[];
910
gradient: string;
1011
icon: React.ReactNode;
12+
docsLink: string;
13+
githubLink: string;
1114
isMain?: boolean;
15+
showSoonBadge?: boolean;
1216
}
1317

1418
const PackageCard = ({
@@ -17,7 +21,10 @@ const PackageCard = ({
1721
features,
1822
gradient,
1923
icon,
24+
docsLink,
25+
githubLink,
2026
isMain = false,
27+
showSoonBadge = false,
2128
}: PackageCardProps) => {
2229
return (
2330
<Card
@@ -38,7 +45,14 @@ const PackageCard = ({
3845
{icon}
3946
</div>
4047

41-
<h3 className="text-2xl font-bold mb-4 text-foreground">{name}</h3>
48+
<div className="flex items-center gap-3 mb-4">
49+
<h3 className="text-2xl font-bold text-foreground">{name}</h3>
50+
{showSoonBadge && (
51+
<Badge variant="secondary" className="text-xs">
52+
Soon
53+
</Badge>
54+
)}
55+
</div>
4256
<p className="text-muted-foreground mb-6 text-lg">{description}</p>
4357

4458
<div className="space-y-3 mb-8">

src/components/Packages.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const Packages = () => {
5353
icon={<Layers className="w-7 h-7 text-effulgence-foreground" />}
5454
docsLink="/docs/effulgence"
5555
githubLink="https://github.com/devitools/effulgence"
56+
showSoonBadge={true}
5657
features={[
5758
"Simplificação de consumo de rotas e requisições HTTP",
5859
"Facades próprios e recursos para maximizar a produtividade",

0 commit comments

Comments
 (0)