|
1 | 1 | import React from 'react'; |
2 | 2 | import { motion } from 'framer-motion'; |
3 | 3 | 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'; |
5 | 5 |
|
6 | | -// Stats that were previously in StatsSection |
7 | 6 | const stats = [ |
8 | 7 | { |
9 | 8 | icon: <Users className="h-8 w-8" />, |
@@ -106,32 +105,34 @@ const ParticipationSection = () => { |
106 | 105 | Connect & Participate |
107 | 106 | </Button> |
108 | 107 |
|
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) => ( |
123 | 112 | <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 }} |
127 | 117 | viewport={{ once: true }} |
128 | | - className={`text-3xl font-bold mb-2 ${stat.color}`} |
| 118 | + className="text-center" |
129 | 119 | > |
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> |
131 | 133 | </motion.div> |
132 | | - <div className="text-gray-300 text-sm">{stat.label}</div> |
133 | | - </motion.div> |
134 | | - ))} |
| 134 | + ))} |
| 135 | + </div> |
135 | 136 | </div> |
136 | 137 | </motion.div> |
137 | 138 | </div> |
|
0 commit comments