Refactor: Standardize card component styles

This commit is contained in:
gpt-engineer-app[bot]
2025-10-28 01:06:27 +00:00
parent 10daaf73f2
commit be497e70da
7 changed files with 95 additions and 54 deletions

View File

@@ -36,7 +36,7 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
return (
<Card
className="group overflow-hidden border-border/50 bg-gradient-to-br from-card via-card to-card/80 hover:shadow-xl hover:shadow-primary/10 transition-all duration-300 cursor-pointer active:scale-[0.98] md:hover:scale-[1.02]"
className="group overflow-hidden border-border/50 bg-gradient-to-br from-card via-card to-card/80 hover:shadow-2xl hover:shadow-primary/20 hover:border-primary/30 transition-all duration-300 cursor-pointer hover:scale-[1.02] relative before:absolute before:inset-0 before:rounded-lg before:p-[1px] before:bg-gradient-to-br before:from-primary/20 before:via-transparent before:to-accent/20 before:-z-10 before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300"
onClick={handleClick}
>
{/* Logo/Image Section */}
@@ -76,8 +76,13 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
/>
</div>
) : (
<div className="w-12 h-12 text-muted-foreground/30">
{getCompanyIcon(company.company_type)}
<div className="relative">
<div className="absolute inset-0 rounded-full bg-primary/20 blur-xl animate-pulse" />
<div className="relative w-16 h-16 rounded-full bg-gradient-to-br from-primary/30 to-secondary/30 flex items-center justify-center border border-primary/20">
<div className="w-8 h-8 text-primary/70">
{getCompanyIcon(company.company_type)}
</div>
</div>
</div>
)}
</div>
@@ -88,7 +93,7 @@ export function ManufacturerCard({ company }: ManufacturerCardProps) {
<CardContent className="p-2.5 space-y-1.5 border-t border-border/30">
{/* Company Name */}
<div className="space-y-0.5 min-w-0">
<h3 className="text-base font-semibold group-hover:text-primary transition-colors line-clamp-2 break-words">
<h3 className="text-base font-bold group-hover:text-primary transition-all duration-300 line-clamp-2 break-words group-hover:drop-shadow-[0_0_8px_rgba(139,92,246,0.5)]">
{company.name}
</h3>
</div>