Unique colors for all 8 cards and add staggered fade-in
cgen-39b6c845242d42f49b3595e7cff5f93f
This commit is contained in:
parent
eef8efee0f
commit
0a0d5e5404
1 changed files with 8 additions and 6 deletions
|
|
@ -94,7 +94,7 @@ export default function Index() {
|
||||||
title: "Dashboard",
|
title: "Dashboard",
|
||||||
description: "Your projects, applications, and rewards — in one place",
|
description: "Your projects, applications, and rewards — in one place",
|
||||||
icon: LayoutDashboard,
|
icon: LayoutDashboard,
|
||||||
color: "from-blue-500 to-purple-600",
|
color: "from-rose-500 to-amber-500",
|
||||||
link: "/dashboard",
|
link: "/dashboard",
|
||||||
tags: ["Overview", "Rewards"],
|
tags: ["Overview", "Rewards"],
|
||||||
},
|
},
|
||||||
|
|
@ -102,7 +102,7 @@ export default function Index() {
|
||||||
title: "Community Feed",
|
title: "Community Feed",
|
||||||
description: "Share progress, discover collaborators, and stay updated",
|
description: "Share progress, discover collaborators, and stay updated",
|
||||||
icon: Users,
|
icon: Users,
|
||||||
color: "from-purple-500 to-pink-600",
|
color: "from-indigo-500 to-cyan-500",
|
||||||
link: "/feed",
|
link: "/feed",
|
||||||
tags: ["Posts", "Collab"],
|
tags: ["Posts", "Collab"],
|
||||||
},
|
},
|
||||||
|
|
@ -110,7 +110,7 @@ export default function Index() {
|
||||||
title: "Developer Passport",
|
title: "Developer Passport",
|
||||||
description: "A public profile with verifiable achievements",
|
description: "A public profile with verifiable achievements",
|
||||||
icon: IdCard,
|
icon: IdCard,
|
||||||
color: "from-green-500 to-blue-600",
|
color: "from-fuchsia-500 to-violet-600",
|
||||||
link: "/passport/me",
|
link: "/passport/me",
|
||||||
tags: ["Profile", "Badges"],
|
tags: ["Profile", "Badges"],
|
||||||
},
|
},
|
||||||
|
|
@ -118,7 +118,7 @@ export default function Index() {
|
||||||
title: "Docs & CLI",
|
title: "Docs & CLI",
|
||||||
description: "Guides, API reference, and tooling to ship faster",
|
description: "Guides, API reference, and tooling to ship faster",
|
||||||
icon: Microscope,
|
icon: Microscope,
|
||||||
color: "from-orange-500 to-red-600",
|
color: "from-lime-500 to-emerald-600",
|
||||||
link: "/docs",
|
link: "/docs",
|
||||||
tags: ["Guides", "API"],
|
tags: ["Guides", "API"],
|
||||||
},
|
},
|
||||||
|
|
@ -316,11 +316,12 @@ export default function Index() {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={`old-${index}`}
|
key={`old-${index}`}
|
||||||
className={`relative overflow-hidden rounded-xl border transition-all duration-500 group ${
|
className={`relative overflow-hidden rounded-xl border transition-all duration-500 group animate-fade-in ${
|
||||||
isActive
|
isActive
|
||||||
? "border-aethex-500/60 glow-blue"
|
? "border-aethex-500/60 glow-blue"
|
||||||
: "border-border/30 hover:border-aethex-400/50"
|
: "border-border/30 hover:border-aethex-400/50"
|
||||||
} bg-card/60 backdrop-blur-sm hover:translate-y-[-2px] hover:shadow-[0_8px_30px_rgba(80,80,120,0.25)]`}
|
} bg-card/60 backdrop-blur-sm hover:translate-y-[-2px] hover:shadow-[0_8px_30px_rgba(80,80,120,0.25)]`}
|
||||||
|
style={{ animationDelay: `${index * 0.08}s` }}
|
||||||
>
|
>
|
||||||
<div className="pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br from-white/6 via-transparent to-white/0" />
|
<div className="pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br from-white/6 via-transparent to-white/0" />
|
||||||
<CardContent className="p-5 sm:p-6 flex flex-col items-center text-center gap-3">
|
<CardContent className="p-5 sm:p-6 flex flex-col items-center text-center gap-3">
|
||||||
|
|
@ -362,11 +363,12 @@ export default function Index() {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={`platform-${index}`}
|
key={`platform-${index}`}
|
||||||
className={`relative overflow-hidden rounded-xl border transition-all duration-500 group ${
|
className={`relative overflow-hidden rounded-xl border transition-all duration-500 group animate-fade-in ${
|
||||||
isActive
|
isActive
|
||||||
? "border-aethex-500/60 glow-blue"
|
? "border-aethex-500/60 glow-blue"
|
||||||
: "border-border/30 hover:border-aethex-400/50"
|
: "border-border/30 hover:border-aethex-400/50"
|
||||||
} bg-card/60 backdrop-blur-sm hover:translate-y-[-2px] hover:shadow-[0_8px_30px_rgba(80,80,120,0.25)]`}
|
} bg-card/60 backdrop-blur-sm hover:translate-y-[-2px] hover:shadow-[0_8px_30px_rgba(80,80,120,0.25)]`}
|
||||||
|
style={{ animationDelay: `${(index + 4) * 0.08}s` }}
|
||||||
>
|
>
|
||||||
<div className="pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br from-white/6 via-transparent to-white/0" />
|
<div className="pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br from-white/6 via-transparent to-white/0" />
|
||||||
<CardContent className="p-5 sm:p-6 flex flex-col items-center text-center gap-3">
|
<CardContent className="p-5 sm:p-6 flex flex-col items-center text-center gap-3">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue