mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 03:27:05 -05:00
Refactor: Standardize card component styles
This commit is contained in:
@@ -22,13 +22,13 @@ export function DesignerCard({ company }: DesignerCardProps) {
|
||||
|
||||
return (
|
||||
<Card
|
||||
className="group cursor-pointer transition-all duration-200 hover:shadow-lg hover:scale-[1.02] bg-card border border-border overflow-hidden"
|
||||
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}
|
||||
>
|
||||
{/* Header Image/Logo Section */}
|
||||
<div className="relative aspect-[3/2] bg-gradient-to-br from-background to-muted/50 flex items-center justify-center border-b border-border">
|
||||
<div className="relative aspect-[3/2] bg-gradient-to-br from-primary/20 via-secondary/20 to-accent/20 flex items-center justify-center overflow-hidden">
|
||||
{/* Background Gradient Overlay */}
|
||||
<div className="absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-accent/5" />
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent opacity-80 group-hover:opacity-60 transition-opacity duration-300" />
|
||||
|
||||
{/* Company Type Badge */}
|
||||
<div className="absolute top-3 right-3">
|
||||
@@ -49,8 +49,11 @@ export function DesignerCard({ company }: DesignerCardProps) {
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div className="w-12 h-12 text-muted-foreground/30">
|
||||
<Ruler className="w-5 h-5" />
|
||||
<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">
|
||||
<Ruler className="w-8 h-8 text-primary/70" />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -59,7 +62,7 @@ export function DesignerCard({ company }: DesignerCardProps) {
|
||||
<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="font-semibold text-base group-hover:text-primary transition-colors line-clamp-2 break-words">
|
||||
<h3 className="font-bold text-base 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>
|
||||
|
||||
Reference in New Issue
Block a user