@@ -11,7 +11,7 @@ import { CommunityEvent, getCommunityEvent } from '@/lib/firebaseEvents';
1111import React from 'react' ;
1212import { db } from '@/lib/firebaseClient' ;
1313import { doc , getDoc , updateDoc , arrayUnion , arrayRemove } from 'firebase/firestore' ;
14- import { Calendar , MapPin , User , Users } from 'lucide-react' ;
14+ import { Calendar , MapPin , User , Users , ArrowLeft } from 'lucide-react' ;
1515import { useAuth } from '@/lib/firebaseAuth' ;
1616import { SpotlightBackground } from '@/components/spotlight-background' ;
1717import { toast } from 'sonner' ;
@@ -200,11 +200,28 @@ export default function EventPage({
200200 < SpotlightBackground >
201201 < main className = "min-h-screen pt-20 md:pt-28 pb-8 px-4 md:px-6" >
202202 < div className = "max-w-4xl mx-auto w-full" >
203+ { /* Back Button */ }
204+ < motion . div
205+ initial = { { opacity : 0 , x : - 20 } }
206+ animate = { { opacity : 1 , x : 0 } }
207+ transition = { { duration : 0.3 } }
208+ className = "mb-4"
209+ >
210+ < Button
211+ variant = "ghost"
212+ onClick = { ( ) => router . back ( ) }
213+ className = "gap-2 cursor-pointer"
214+ >
215+ < ArrowLeft className = "w-4 h-4" />
216+ Back
217+ </ Button >
218+ </ motion . div >
219+
203220 { /* Single Floating Island Container */ }
204221 < motion . div
205222 initial = { { opacity : 0 , y : 20 } }
206223 animate = { { opacity : 1 , y : 0 } }
207- transition = { { duration : 0.5 } }
224+ transition = { { duration : 0.5 , delay : 0.1 } }
208225 className = "bg-background/70 backdrop-blur-xl rounded-xl md:rounded-2xl border border-border shadow-lg p-4 md:p-6 relative z-20 w-full"
209226 >
210227 { /* Header with Image and Title */ }
0 commit comments