✨ Story 3.2: router php urls
This commit is contained in:
23
pages/404.php
Normal file
23
pages/404.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
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'); ?>
|
||||
Reference in New Issue
Block a user