Skip to content

Commit 8546d6e

Browse files
Fix loading and polish pages
Co-authored-by: Alien69Flow <111972684+Alien69Flow@users.noreply.github.com>
1 parent 1afdf9e commit 8546d6e

2 files changed

Lines changed: 38 additions & 21 deletions

File tree

src/pages/Clubs.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,23 +613,29 @@ const Clubs: React.FC = () => {
613613
</div>
614614

615615
{/* Search & Filter Bar */}
616-
<div className="mb-12 space-y-4">
616+
<motion.div
617+
initial={{ opacity: 0, y: 20 }}
618+
animate={{ opacity: 1, y: 0 }}
619+
transition={{ duration: 0.5 }}
620+
className="mb-12 space-y-4"
621+
>
617622
<div className="relative max-w-md mx-auto">
623+
<Search className="absolute left-4 top-1/2 -translate-y-1/2 h-4 w-4 text-alien-gold/50" />
618624
<input
619625
type="text"
620626
placeholder="Search clubs..."
621627
value={searchQuery}
622628
onChange={(e) => setSearchQuery(e.target.value)}
623-
className="w-full px-5 py-3 bg-alien-space-dark/80 backdrop-blur-md border border-alien-gold/30 rounded-full text-alien-gold placeholder:text-alien-gold/40 font-exo focus:outline-none focus:border-alien-green/60 focus:ring-1 focus:ring-alien-green/30 transition-all"
629+
className="w-full pl-11 pr-5 py-3 bg-black/50 backdrop-blur-md border border-alien-gold/30 rounded-full text-alien-gold placeholder:text-alien-gold/40 font-exo focus:outline-none focus:border-alien-green/60 focus:ring-1 focus:ring-alien-green/30 focus:shadow-[0_0_15px_rgba(57,255,20,0.15)] transition-all"
624630
/>
625631
</div>
626632
<div className="flex flex-wrap justify-center gap-2">
627633
<button
628634
onClick={() => setActiveCategory(null)}
629635
className={`px-3 py-1.5 rounded-full text-xs font-nasalization transition-all border ${
630636
!activeCategory
631-
? 'bg-alien-green/20 border-alien-green/60 text-alien-green'
632-
: 'border-alien-gold/20 text-alien-gold/60 hover:border-alien-gold/40'
637+
? 'bg-alien-green/20 border-alien-green/60 text-alien-green shadow-[0_0_10px_rgba(57,255,20,0.2)]'
638+
: 'border-alien-gold/20 text-alien-gold/60 hover:border-alien-gold/40 hover:bg-alien-gold/5'
633639
}`}
634640
>
635641
All
@@ -640,15 +646,15 @@ const Clubs: React.FC = () => {
640646
onClick={() => setActiveCategory(activeCategory === cat ? null : cat)}
641647
className={`px-3 py-1.5 rounded-full text-xs font-nasalization transition-all border ${
642648
activeCategory === cat
643-
? 'bg-alien-green/20 border-alien-green/60 text-alien-green'
644-
: 'border-alien-gold/20 text-alien-gold/60 hover:border-alien-gold/40'
649+
? 'bg-alien-green/20 border-alien-green/60 text-alien-green shadow-[0_0_10px_rgba(57,255,20,0.2)]'
650+
: 'border-alien-gold/20 text-alien-gold/60 hover:border-alien-gold/40 hover:bg-alien-gold/5'
645651
}`}
646652
>
647653
{cat}
648654
</button>
649655
))}
650656
</div>
651-
</div>
657+
</motion.div>
652658

653659
{filteredFeatured.length > 0 && (
654660
<section id="featured" className="mb-16">

src/pages/CoNetWorKing.tsx

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,33 @@ type PartnerSectionProps = {
2828
};
2929

3030
const ServiceCard = ({
31-
service
31+
service,
32+
index
3233
}: {
3334
service: ServiceProps;
34-
}) => <Card className="bg-alien-space-dark/70 backdrop-blur-md border border-alien-gold/30 hover:border-alien-gold/60 transition-all duration-300 hover:scale-105">
35-
<CardHeader className="text-center">
36-
<div className={`mx-auto mb-4 p-3 rounded-full ${service.color}`}>
37-
{service.icon}
38-
</div>
39-
<CardTitle className="text-alien-gold font-nasalization text-xl">{service.title}</CardTitle>
40-
</CardHeader>
41-
<CardContent>
42-
<CardDescription className="text-gray-300 font-[Exo] text-center leading-relaxed">
43-
{service.description}
44-
</CardDescription>
45-
</CardContent>
46-
</Card>;
35+
index: number;
36+
}) => (
37+
<motion.div
38+
initial={{ opacity: 0, y: 30 }}
39+
whileInView={{ opacity: 1, y: 0 }}
40+
viewport={{ once: true }}
41+
transition={{ duration: 0.4, delay: index * 0.05 }}
42+
>
43+
<Card className="bg-black/50 backdrop-blur-md border border-alien-gold/30 hover:border-alien-gold/50 transition-all duration-300 hover:scale-[1.02]">
44+
<CardHeader className="text-center">
45+
<div className={`mx-auto mb-4 p-3 rounded-full ${service.color}`}>
46+
{service.icon}
47+
</div>
48+
<CardTitle className="text-alien-gold font-nasalization text-xl">{service.title}</CardTitle>
49+
</CardHeader>
50+
<CardContent>
51+
<CardDescription className="text-gray-300 font-[Exo] text-center leading-relaxed">
52+
{service.description}
53+
</CardDescription>
54+
</CardContent>
55+
</Card>
56+
</motion.div>
57+
);
4758

4859
const PartnerSection: React.FC<PartnerSectionProps> = ({ title, partners, color, icon, delay = 0 }) => {
4960
const getColorClasses = () => {

0 commit comments

Comments
 (0)