BLACKSITE
:
216.73.216.140
:
199.188.200.160 / jeddahhousingltd.com
:
Linux server383.web-hosting.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
:
/
home
/
jeddveug
/
public_html
/
Upload File:
files >> //home/jeddveug/public_html/events.php
<?php $page_title = 'Events'; $meta_description = 'Discover the latest events at Jeddah Housing.'; require_once 'includes/header.php'; // Fetch gallery images for Events $events_images = $pdo->query("SELECT * FROM gallery WHERE project_name = 'Events' ORDER BY created_at DESC")->fetchAll(); ?> <!-- Hero Section --> <div class="hero-gradient pt-24 pb-16 relative overflow-hidden"> <div class="absolute inset-0 opacity-10"> <div class="absolute top-10 right-20 w-72 h-72 bg-gold-400 rounded-full filter blur-3xl animate-pulse"></div> <div class="absolute bottom-10 left-20 w-96 h-96 bg-primary-300 rounded-full filter blur-3xl animate-pulse" style="animation-delay: 1s;"></div> </div> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10"> <p class="text-gold-400 font-semibold text-sm tracking-widest uppercase mb-3 animate-on-scroll">Gallery</p> <h1 class="text-3xl md:text-5xl font-bold text-white mb-4 animate-on-scroll" data-delay="0.1s">Our Events</h1> <p class="text-primary-200 max-w-2xl mx-auto text-lg animate-on-scroll" data-delay="0.2s">Explore moments from our successful events, gatherings, and ceremonies.</p> </div> </div> <section class="py-20 bg-gray-50"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <?php if (!empty($events_images)): ?> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> <?php foreach ($events_images as $index => $img): ?> <div class="group relative rounded-2xl overflow-hidden shadow-lg bg-white card-hover animate-on-scroll" data-delay="<?= ($index % 3) * 0.1 ?>s"> <div class="overflow-hidden aspect-video bg-gray-100/50"> <img src="<?= baseUrl('uploads/gallery/' . htmlspecialchars($img['image'])) ?>" alt="<?= htmlspecialchars($img['caption'] ?: 'Event Image') ?>" class="w-full h-full object-contain"> </div> <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> <div class="absolute bottom-0 left-0 right-0 p-6 translate-y-6 group-hover:translate-y-0 opacity-0 group-hover:opacity-100 transition-all duration-300"> <h3 class="text-xl font-bold text-white mb-2"><?= htmlspecialchars($img['caption'] ?: 'Event Moment') ?></h3> <div class="w-12 h-1 bg-gold-400 rounded"></div> </div> </div> <?php endforeach; ?> </div> <?php else: ?> <div class="text-center py-20 bg-white rounded-2xl shadow-sm animate-on-scroll"> <div class="w-24 h-24 bg-primary-50 rounded-full flex items-center justify-center mx-auto mb-6"> <i class="fas fa-calendar-times text-primary-300 text-4xl"></i> </div> <h2 class="text-2xl font-bold text-gray-800 mb-2">No Events Found</h2> <p class="text-gray-500">Check back later for exciting updates and event galleries.</p> </div> <?php endif; ?> </div> </section> <?php require_once 'includes/footer.php'; ?>