undefined / projects.php
ProvidenceBara3's picture
all the pages should be fully in php to be integrated in wordpress environment. also add a service page detailing the services. and a project page providing details on the projects conducted.
3ed01af verified
Raw History Blame Contribute Delete
10.3 kB
```php
<?php
/**
* The Projects page template
*
* @package SOGEEC
* @since 1.0
*/
get_header();
?>
<main id="primary" class="site-main">
<!-- Projects Hero Section -->
<section class="bg-primary text-white py-24">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6">Nos Réalisations</h1>
<p class="text-xl max-w-3xl mx-auto">Découvrez nos projets phares qui transforment les infrastructures à travers l'Afrique</p>
</div>
</section>
<!-- Projects Filter -->
<section class="py-12 bg-gray-50">
<div class="container mx-auto px-4">
<div class="flex flex-wrap justify-center gap-4">
<button class="px-6 py-2 rounded-full bg-white text-primary font-medium shadow-md hover:bg-primary hover:text-white transition-all">Tous les projets</button>
<button class="px-6 py-2 rounded-full bg-white text-gray-600 font-medium hover:bg-primary hover:text-white transition-all">Hydroélectricité</button>
<button class="px-6 py-2 rounded-full bg-white text-gray-600 font-medium hover:bg-primary hover:text-white transition-all">Routes</button>
<button class="px-6 py-2 rounded-full bg-white text-gray-600 font-medium hover:bg-primary hover:text-white transition-all">Bâtiments</button>
<button class="px-6 py-2 rounded-full bg-white text-gray-600 font-medium hover:bg-primary hover:text-white transition-all">Infrastructure</button>
</div>
</div>
</section>
<!-- Projects Grid -->
<section class="py-16">
<div class="container mx-auto px-4">
<?php
$projects = [
[
'title' => 'Barrage Hydroélectrique de Sange',
'category' => 'Hydroélectricité',
'location' => 'Sud-Kivu, RDC',
'year' => '2023',
'image' => 'http://static.photos/energy/1024x576/7',
'description' => 'Projet de 150kW pour alimenter 6000 résidents avec une solution énergétique durable.'
],
[
'title' => 'Station de Carburant Jet-A de Goma',
'category' => 'Infrastructure',
'location' => 'Nord-Kivu, RDC',
'year' => '2022',
'image' => 'http://static.photos/aviation/1024x576/3',
'description' => 'Station de carburant aviation de 200 000 litres près de l\'aéroport international.'
],
[
'title' => 'Entrepôt Rapide de Kakamega',
'category' => 'Bâtiments',
'location' => 'Kakamega, Kenya',
'year' => '2021',
'image' => 'http://static.photos/warehouse/1024x576/8',
'description' => 'Entrepôt portable de 1 450m² construit en seulement 7 jours avec technologie modulaire.'
],
[
'title' => 'Route RN5 - Section Bukavu-Kavumu',
'category' => 'Routes',
'location' => 'Sud-Kivu, RDC',
'year' => '2023',
'image' => 'http://static.photos/road/1024x576/12',
'description' => '8km de route utilisant la technologie AsphalTech pour une durabilité accrue.'
],
[
'title' => 'Centre de Santé de Bunia',
'category' => 'Bâtiments',
'location' => 'Ituri, RDC',
'year' => '2022',
'image' => 'http://static.photos/medical/1024x576/5',
'description' => 'Structure médicale moderne de 800m² avec équipements de pointe.'
],
[
'title' => 'Pont sur la rivière Luhoho',
'category' => 'Infrastructure',
'location' => 'Nord-Kivu, RDC',
'year' => '2021',
'image' => 'http://static.photos/bridge/1024x576/9',
'description' => 'Pont de 42m permettant de relier deux communes isolées pendant la saison des pluies.'
]
];
foreach (array_chunk($projects, 2) as $project_row) : ?>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-16">
<?php foreach ($project_row as $project) : ?>
<div class="project-card bg-white rounded-xl overflow-hidden shadow-xl transition-all duration-500 hover:-translate-y-2">
<div class="relative">
<img src="<?php echo $project['image']; ?>" alt="<?php echo $project['title']; ?>" class="w-full h-64 object-cover">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-6">
<span class="inline-block px-3 py-1 bg-white text-primary text-sm font-medium rounded-full mb-2"><?php echo $project['category']; ?></span>
<h3 class="text-2xl font-bold text-white"><?php echo $project['title']; ?></h3>
</div>
</div>
<div class="p-8">
<div class="flex justify-between items-center mb-4">
<div class="flex items-center text-gray-500">
<i data-feather="map-pin" class="w-4 h-4 mr-2"></i>
<span><?php echo $project['location']; ?></span>
</div>
<div class="text-gray-500"><?php echo $project['year']; ?></div>
</div>
<p class="text-gray-600 mb-6"><?php echo $project['description']; ?></p>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<span class="px-3 py-1 bg-primary bg-opacity-10 text-primary text-sm rounded-full">150kW</span>
<span class="px-3 py-1 bg-primary bg-opacity-10 text-primary text-sm rounded-full">6 mois</span>
</div>
<a href="#" class="text-secondary font-medium flex items-center hover:text-yellow-600">
Détails <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</section>
<!-- Project Stats -->
<section class="py-16 bg-primary text-white">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-center">
<div>
<div class="text-5xl font-bold mb-4">25+</div>
<h3 class="text-xl font-medium">Projets Réalisés</h3>
</div>
<div>
<div class="text-5xl font-bold mb-4">5+</div>
<h3 class="text-xl font-medium">Pays Desservis</h3>
</div>
<div>
<div class="text-5xl font-bold mb-4">100%</div>
<h3 class="text-xl font-medium">Satisfaction Client</h3>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12 text-primary">Témoignages Clients</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<?php
$testimonials = [
[
'name' => 'Dr. Jacques Mumbere',
'role' => 'Ministère des Infrastructures, RDC',
'content' => 'SOGEEC a livré notre projet de barrage dans les délais et avec une qualité exceptionnelle. Leur expertise en énergie hydroélectrique est remarquable.',
'image' => 'http://static.photos/people/200x200/1'
],
[
'name' => 'Mme. Amina Kiprop',
'role' => 'Directrice, Kakamega Logistics',
'content' => 'L\'entrepôt construit par SOGEEC a révolutionné nos opérations. En seulement 7 jours, nous avions une solution fonctionnelle et durable.',
'image' => 'http://static.photos/people/200x200/2'
]
];
foreach ($testimonials as $testimonial) : ?>
<div class="bg-gray-50 p-8 rounded-xl">
<div class="flex items-center mb-6">
<img src="<?php echo $testimonial['image']; ?>" alt="<?php echo $testimonial['name']; ?>" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="font-bold"><?php echo $testimonial['name']; ?></h4>
<p class="text-gray-600 text-sm"><?php echo $testimonial['role']; ?></p>
</div>
</div>
<p class="text-gray-700 italic">"<?php echo $testimonial['content']; ?>"</p>
<div class="mt-4 flex space-x-1 text-yellow-400">
<?php for ($i = 0; $i < 5; $i++) : ?>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<?php endfor; ?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
</main><!-- #main -->
<?php
get_footer();
?>
```