Skip to content

Commit 009289d

Browse files
Simplify extension cards to match tools page styling
Co-authored-by: devinschumacher <[email protected]>
1 parent 8f2ec81 commit 009289d

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

apps/extensions/components/ExtensionCard.tsx

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useState, useRef } from "react";
44
import { Card, CardDescription, CardHeader, CardTitle } from "@serp-tools/ui/components/card";
5-
import { LucideIcon, Star, Users } from "lucide-react";
5+
import { LucideIcon } from "lucide-react";
66

77
interface ExtensionCardProps {
88
extension: {
@@ -68,43 +68,13 @@ export function ExtensionCard({ extension }: ExtensionCardProps) {
6868
className="h-6 w-6 mt-0.5 transition-colors duration-300"
6969
style={{ color: borderColor || undefined }}
7070
/>
71-
<div className="flex-1 min-w-0">
72-
<CardTitle className="text-lg group-hover:text-primary transition-colors">
73-
{extension.name}
74-
</CardTitle>
75-
<div className="flex items-center gap-3 mt-1">
76-
{extension.rating && (
77-
<div className="flex items-center gap-1">
78-
<Star className="h-3 w-3 text-yellow-500 fill-current" />
79-
<span className="text-sm text-gray-600">{extension.rating}</span>
80-
</div>
81-
)}
82-
{extension.users && (
83-
<div className="flex items-center gap-1">
84-
<Users className="h-3 w-3 text-gray-400" />
85-
<span className="text-sm text-gray-600">{extension.users}</span>
86-
</div>
87-
)}
88-
</div>
89-
</div>
71+
<CardTitle className="text-lg group-hover:text-primary transition-colors">
72+
{extension.name}
73+
</CardTitle>
9074
</div>
9175
<CardDescription className="line-clamp-2">
9276
{extension.description}
9377
</CardDescription>
94-
{(extension.isPopular || extension.isNew) && (
95-
<div className="flex gap-2 mt-2">
96-
{extension.isPopular && (
97-
<span className="inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs font-semibold rounded">
98-
Popular
99-
</span>
100-
)}
101-
{extension.isNew && (
102-
<span className="inline-block px-2 py-1 bg-green-100 text-green-800 text-xs font-semibold rounded">
103-
New
104-
</span>
105-
)}
106-
</div>
107-
)}
10878
</CardHeader>
10979
</Card>
11080
</a>

0 commit comments

Comments
 (0)