Skip to content

Commit f34ca69

Browse files
authored
Update ParticipationSection.tsx
Signed-off-by: Aitor Alien <[email protected]>
1 parent 9f0b683 commit f34ca69

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

src/components/ParticipationSection.tsx

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from 'react';
22
import { motion } from 'framer-motion';
33
import { Button } from '@/components/ui/button';
4-
import { CircleDollarSign, Calendar, MessagesSquare, Network, Users, ShieldCheck, Database, Coins } from 'lucide-react';
4+
import { CircleDollarSign, Calendar, MessagesSquare, Users, ShieldCheck, Database, Coins } from 'lucide-react';
55

6-
// Stats that were previously in StatsSection
76
const stats = [
87
{
98
icon: <Users className="h-8 w-8" />,
@@ -106,32 +105,34 @@ const ParticipationSection = () => {
106105
Connect & Participate
107106
</Button>
108107

109-
{/* Stats Grid - Ahora centrado */}
110-
<div className="grid grid-cols-2 gap-6 mt-12 justify-center items-center text-center mx-auto">
111-
{stats.map((stat, index) => (
112-
<motion.div
113-
key={index}
114-
initial={{ opacity: 0, y: 20 }}
115-
whileInView={{ opacity: 1, y: 0 }}
116-
transition={{ duration: 0.5, delay: index * 0.1 }}
117-
viewport={{ once: true }}
118-
className="text-center"
119-
>
120-
<div className={`mx-auto mb-4 p-3 rounded-full bg-alien-space-dark w-fit ${stat.color}`}>
121-
{stat.icon}
122-
</div>
108+
{/* Stats Grid - Ahora centrado en todos los dispositivos */}
109+
<div className="w-full flex justify-center">
110+
<div className="grid grid-cols-2 gap-6 mt-12 w-full max-w-xl text-center">
111+
{stats.map((stat, index) => (
123112
<motion.div
124-
initial={{ scale: 0.8 }}
125-
whileInView={{ scale: 1 }}
126-
transition={{ type: "spring", stiffness: 100, delay: index * 0.1 + 0.2 }}
113+
key={index}
114+
initial={{ opacity: 0, y: 20 }}
115+
whileInView={{ opacity: 1, y: 0 }}
116+
transition={{ duration: 0.5, delay: index * 0.1 }}
127117
viewport={{ once: true }}
128-
className={`text-3xl font-bold mb-2 ${stat.color}`}
118+
className="text-center"
129119
>
130-
{stat.value}
120+
<div className={`mx-auto mb-4 p-3 rounded-full bg-alien-space-dark w-fit ${stat.color}`}>
121+
{stat.icon}
122+
</div>
123+
<motion.div
124+
initial={{ scale: 0.8 }}
125+
whileInView={{ scale: 1 }}
126+
transition={{ type: "spring", stiffness: 100, delay: index * 0.1 + 0.2 }}
127+
viewport={{ once: true }}
128+
className={`text-3xl font-bold mb-2 ${stat.color}`}
129+
>
130+
{stat.value}
131+
</motion.div>
132+
<div className="text-gray-300 text-sm">{stat.label}</div>
131133
</motion.div>
132-
<div className="text-gray-300 text-sm">{stat.label}</div>
133-
</motion.div>
134-
))}
134+
))}
135+
</div>
135136
</div>
136137
</motion.div>
137138
</div>

0 commit comments

Comments
 (0)