1+
12import React from 'react' ;
23import { motion } from 'framer-motion' ;
34import { GraduationCap , Clover , Network } from 'lucide-react' ;
45import { Link } from 'react-router-dom' ;
56import { Button } from './ui/button' ;
7+
68const spaces = [ {
79 id : 'academy' ,
810 title : 'Academy' ,
@@ -22,37 +24,34 @@ const spaces = [{
2224 icon : < Network className = "h-10 w-10 text-alien-green" /> ,
2325 link : '/conetworking'
2426} ] ;
27+
2528const ExploreSpacesSection = ( ) => {
26- return < section className = "py-24 bg-alien-space-light/20 relative overflow-hidden" >
29+ return (
30+ < section className = "py-24 relative overflow-hidden" >
2731 < div className = "container mx-auto px-4" >
28- < motion . div initial = { {
29- opacity : 0
30- } } whileInView = { {
31- opacity : 1
32- } } transition = { {
33- duration : 0.8
34- } } viewport = { {
35- once : true
36- } } className = "text-center mb-16" >
32+ < motion . div
33+ initial = { { opacity : 0 } }
34+ whileInView = { { opacity : 1 } }
35+ transition = { { duration : 0.8 } }
36+ viewport = { { once : true } }
37+ className = "text-center mb-16"
38+ >
3739 < h2 className = "text-4xl font-bold mb-4 text-alien-gold text-glow font-[Atomic Age]" > Explore Spaces</ h2 >
3840 < p className = "text-xl text-gray-300 max-w-3xl mx-auto" >
3941 Discover specialized environments designed to enhance your journey through the cosmos
4042 </ p >
4143 </ motion . div >
4244
4345 < div className = "grid grid-cols-1 md:grid-cols-3 gap-8" >
44- { spaces . map ( ( space , index ) => < motion . div key = { space . id } initial = { {
45- opacity : 0 ,
46- y : 20
47- } } whileInView = { {
48- opacity : 1 ,
49- y : 0
50- } } transition = { {
51- duration : 0.5 ,
52- delay : index * 0.2
53- } } viewport = { {
54- once : true
55- } } className = "card-border p-8 flex flex-col items-center text-center h-full" >
46+ { spaces . map ( ( space , index ) => (
47+ < motion . div
48+ key = { space . id }
49+ initial = { { opacity : 0 , y : 20 } }
50+ whileInView = { { opacity : 1 , y : 0 } }
51+ transition = { { duration : 0.5 , delay : index * 0.2 } }
52+ viewport = { { once : true } }
53+ className = "card-border p-8 flex flex-col items-center text-center h-full"
54+ >
5655 < div className = "mb-6 p-4 bg-alien-space-dark rounded-full" >
5756 { space . icon }
5857 </ div >
@@ -63,13 +62,16 @@ const ExploreSpacesSection = () => {
6362 Enter { space . title }
6463 </ Button >
6564 </ Link >
66- </ motion . div > ) }
65+ </ motion . div >
66+ ) ) }
6767 </ div >
6868 </ div >
6969
7070 { /* Background decorations */ }
7171 < div className = "absolute -bottom-20 -right-20 w-80 h-80 bg-alien-green opacity-5 rounded-full blur-3xl" > </ div >
7272 < div className = "absolute -top-20 -left-20 w-60 h-60 bg-alien-gold opacity-5 rounded-full blur-2xl" > </ div >
73- </ section > ;
73+ </ section >
74+ ) ;
7475} ;
75- export default ExploreSpacesSection ;
76+
77+ export default ExploreSpacesSection ;
0 commit comments