51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<?php
|
|
$pageTitle = 'Mes Projets';
|
|
$pageDescription = 'Découvrez mes réalisations web : sites vitrines, e-commerce, applications et plus encore.';
|
|
$currentPage = 'projects';
|
|
|
|
$featuredProjects = getProjectsByCategory('vedette');
|
|
$secondaryProjects = getProjectsByCategory('secondaire');
|
|
|
|
include_template('header', compact('pageTitle', 'pageDescription'));
|
|
include_template('navbar', compact('currentPage'));
|
|
?>
|
|
|
|
<main>
|
|
<section class="section">
|
|
<div class="container-content">
|
|
<div class="section-header">
|
|
<h1 class="section-title">Mes Projets</h1>
|
|
<p class="section-subtitle">
|
|
Découvrez les réalisations qui illustrent mon travail et mes compétences.
|
|
</p>
|
|
</div>
|
|
|
|
<?php if (!empty($featuredProjects)): ?>
|
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8">
|
|
<?php foreach ($featuredProjects as $project): ?>
|
|
<?php include_template('project-card', ['project' => $project]); ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<p class="text-center text-text-muted py-12">
|
|
Projets à venir...
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($secondaryProjects)): ?>
|
|
<hr class="border-border my-16">
|
|
|
|
<section>
|
|
<h2 class="text-heading mb-8">Autres projets</h2>
|
|
<div class="space-y-4">
|
|
<?php foreach ($secondaryProjects as $project): ?>
|
|
<?php include_template('project-card-compact', ['project' => $project]); ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<?php include_template('footer'); ?>
|