This commit is contained in:
sebvtl728
2025-01-18 17:42:28 +01:00
parent 2d4341311d
commit dc3c6a566b
3 changed files with 54 additions and 1 deletions
@@ -0,0 +1,35 @@
.notfound-container {
text-align: center;
padding: 50px;
}
.notfound-container h1 {
font-size: 100px;
color: red;
margin-bottom: 10px;
}
.notfound-container h2 {
font-size: 30px;
margin-bottom: 10px;
}
.notfound-container p {
font-size: 18px;
margin-bottom: 20px;
}
.back-home {
display: inline-block;
padding: 10px 20px;
background-color: #007BFF;
color: white;
text-decoration: none;
border-radius: 5px;
font-size: 18px;
transition: background 0.3s ease;
}
.back-home:hover {
background-color: #0056b3;
}
@@ -0,0 +1,16 @@
import React from "react";
import { Link } from "react-router-dom";
import "./NotFound.css"; // Style dédié
const NotFound = () => {
return (
<div className="notfound-container">
<h1>404</h1>
<h2>Oups ! Page introuvable</h2>
<p>Il semble que la page que vous recherchez n'existe pas.</p>
<Link to="/" className="back-home">Retour à l'accueil</Link>
</div>
);
};
export default NotFound;