Story 3.2 - Router PHP et URLs propres:
- Router PHP léger (43 lignes) avec support {slug}
- Front controller index.php
- .htaccess pour Apache
- Pages: home, projects, project-single, skills, about, contact, 404
Story 3.3 - Page liste projets vedettes:
- Grille responsive (1→2→3 colonnes)
- Template project-card.php réutilisable
- Badges technologies (max 4 + compteur)
- Lazy loading images avec fallback SVG
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
661 B
PHP
28 lines
661 B
PHP
<?php
|
|
/**
|
|
* Page 404 - Page non trouvée
|
|
*/
|
|
|
|
http_response_code(404);
|
|
|
|
$pageTitle = 'Page non trouvée';
|
|
$currentPage = '';
|
|
|
|
include_template('header', compact('pageTitle'));
|
|
include_template('navbar', compact('currentPage'));
|
|
?>
|
|
|
|
<main class="min-h-screen flex items-center justify-center">
|
|
<div class="container-content text-center py-20">
|
|
<h1 class="text-display text-primary mb-4">404</h1>
|
|
<p class="text-xl text-text-secondary mb-8">
|
|
Oups ! Cette page n'existe pas.
|
|
</p>
|
|
<a href="/" class="btn-primary">
|
|
Retour à l'accueil
|
|
</a>
|
|
</div>
|
|
</main>
|
|
|
|
<?php include_template('footer'); ?>
|