@@ -68,18 +68,18 @@ export default function CampusLifePage() {
6868
6969 const galleryImages = [
7070 { src : galleryImg1 , caption : "Campus at Night" } ,
71- { src : galleryImg2 , caption : "Autumn on Campus " } ,
72- { src : galleryImg3 , caption : "Snow on Campus " } ,
73- { src : galleryImg4 , caption : "LX Dorm Entrance" } ,
71+ { src : galleryImg2 , caption : "Campus in Autumn " } ,
72+ { src : galleryImg3 , caption : "Campus in Snow " } ,
73+ { src : galleryImg4 , caption : "International Students Dorm Entrance" } ,
7474 { src : galleryImg5 , caption : "Calculus Class" } ,
7575 { src : galleryImg6 , caption : "Campus Gala" } ,
76- { src : galleryImg7 , caption : "White bridge " } ,
76+ { src : galleryImg7 , caption : "Park Bridge " } ,
7777 { src : galleryImg8 , caption : "North Canteen" } ,
78- { src : galleryImg9 , caption : "Canteen Food" } ,
78+ { src : galleryImg9 , caption : "Halal Canteen Food" } ,
7979 { src : galleryImg10 , caption : "Canteen Food" } ,
80- { src : galleryImg11 , caption : "Gym 4th floor " } ,
80+ { src : galleryImg11 , caption : "Gym 4th Floor " } ,
8181 { src : galleryImg12 , caption : "Mini Zoo" } ,
82- { src : galleryImg13 , caption : "24/7 library " } ,
82+ { src : galleryImg13 , caption : "24/7 Library " } ,
8383 { src : galleryImg14 , caption : "Autumn Scenery" } ,
8484 ] ;
8585
@@ -115,7 +115,7 @@ export default function CampusLifePage() {
115115 < h2 className = "text-3xl font-display font-bold mb-4" > Where You'll Live</ h2 >
116116 < p className = "text-muted-foreground" > Affordable, comfortable, and safe.</ p >
117117 </ div >
118-
118+
119119 { /* Location Section */ }
120120 < motion . div
121121 initial = { { opacity : 0 , y : 30 } }
@@ -159,10 +159,10 @@ export default function CampusLifePage() {
159159 className = "bg-white rounded-3xl overflow-hidden shadow-sm border border-border group"
160160 >
161161 < div className = "h-64 overflow-hidden relative" >
162- < BlurImage src = { dorm . image } alt = { dorm . title } placeholder = "blur" className = "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" />
163- < div className = "absolute bottom-4 right-4 bg-black/70 backdrop-blur-md text-white px-3 py-1 rounded-full text-sm font-medium z-10" >
164- { dorm . price }
165- </ div >
162+ < BlurImage src = { dorm . image } alt = { dorm . title } placeholder = "blur" className = "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" />
163+ < div className = "absolute bottom-4 right-4 bg-black/70 backdrop-blur-md text-white px-3 py-1 rounded-full text-sm font-medium z-10" >
164+ { dorm . price }
165+ </ div >
166166 </ div >
167167 < div className = "p-6" >
168168 < h3 className = "text-xl font-bold mb-4" > { dorm . title } </ h3 >
@@ -194,10 +194,10 @@ export default function CampusLifePage() {
194194 className = "bg-white rounded-3xl overflow-hidden shadow-sm border border-border group"
195195 >
196196 < div className = "h-64 overflow-hidden relative" >
197- < BlurImage src = { dorm . image } alt = { dorm . title } placeholder = "blur" className = "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" />
198- < div className = "absolute bottom-4 right-4 bg-black/70 backdrop-blur-md text-white px-3 py-1 rounded-full text-sm font-medium z-10" >
199- { dorm . price }
200- </ div >
197+ < BlurImage src = { dorm . image } alt = { dorm . title } placeholder = "blur" className = "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" />
198+ < div className = "absolute bottom-4 right-4 bg-black/70 backdrop-blur-md text-white px-3 py-1 rounded-full text-sm font-medium z-10" >
199+ { dorm . price }
200+ </ div >
201201 </ div >
202202 < div className = "p-6" >
203203 < h3 className = "text-xl font-bold mb-4" > { dorm . title } </ h3 >
@@ -245,27 +245,27 @@ export default function CampusLifePage() {
245245 < div >
246246 < h2 className = "text-3xl font-display font-bold mb-12 text-center" > Campus Moments</ h2 >
247247 < div className = "mb-24 columns-2 md:columns-3 gap-4 md:gap-6" >
248- { galleryImages . map ( ( img , idx ) => (
249- < motion . div
250- key = { idx }
251- initial = { { opacity : 0 , scale : 0.9 } }
252- whileInView = { { opacity : 1 , scale : 1 } }
253- viewport = { { once : true , margin : "-50px" } }
254- transition = { { delay : idx * 0.1 } }
255- className = "relative rounded-2xl overflow-hidden group break-inside-avoid mb-6"
256- >
257- < div className = "absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-10" />
258- < BlurImage
259- src = { img . src }
260- alt = { img . caption }
261- className = "w-full h-auto object-cover transform group-hover:scale-105 transition-transform duration-700"
262- sizes = "(max-width: 768px) 100vw, 33vw"
263- />
264- < div className = "absolute bottom-0 left-0 right-0 p-6 translate-y-full group-hover:translate-y-0 transition-transform duration-300 z-20" >
265- < p className = "text-white font-medium text-sm" > { img . caption } </ p >
266- </ div >
267- </ motion . div >
268- ) ) }
248+ { galleryImages . map ( ( img , idx ) => (
249+ < motion . div
250+ key = { idx }
251+ initial = { { opacity : 0 , scale : 0.9 } }
252+ whileInView = { { opacity : 1 , scale : 1 } }
253+ viewport = { { once : true , margin : "-50px" } }
254+ transition = { { delay : idx * 0.1 } }
255+ className = "relative rounded-2xl overflow-hidden group break-inside-avoid mb-6"
256+ >
257+ < div className = "absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-10" />
258+ < BlurImage
259+ src = { img . src }
260+ alt = { img . caption }
261+ className = "w-full h-auto object-cover transform group-hover:scale-105 transition-transform duration-700"
262+ sizes = "(max-width: 768px) 100vw, 33vw"
263+ />
264+ < div className = "absolute bottom-0 left-0 right-0 p-6 translate-y-full group-hover:translate-y-0 transition-transform duration-300 z-20" >
265+ < p className = "text-white font-medium text-sm" > { img . caption } </ p >
266+ </ div >
267+ </ motion . div >
268+ ) ) }
269269 </ div >
270270 </ div >
271271
0 commit comments