This commit is contained in:
sebvtl728
2025-01-18 17:48:14 +01:00
parent ee7188c92c
commit 56dc1f2256
5 changed files with 54 additions and 25 deletions
-24
View File
@@ -19,27 +19,3 @@
box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}
.critical-alert-box h2 {
margin: 0;
color: red;
}
.critical-alert-box p {
font-size: 18px;
font-weight: bold;
}
/* Bandeau temporaire de test */
.test-banner {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: red;
color: white;
text-align: center;
padding: 10px;
font-size: 16px;
font-weight: bold;
z-index: 99999;
}
+1 -1
View File
@@ -17,7 +17,7 @@ const CriticalAlert = () => {
// Disparition automatique de l'alerte après 2 secondes
setTimeout(() => {
setShowAlert(false);
}, 2000);
}, 1000);
// Calcul du temps écoulé
const startTimestamp = parseInt(startTime, 10);
@@ -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;
+2
View File
@@ -8,6 +8,7 @@ import SimpleReactLightbox from "simple-react-lightbox";
import CriticalAlert from "./components/CriticalAlert";
import AdminDashboard from "./components/Pages/AdminDashboard";
import Backtime from "./components/Pages/Backtime";
import NotFound from "./components/Pages/NotFound";
// Lazy loading des pages
const Home = lazy(() => import('./components/Pages/Home.jsx'));
@@ -43,6 +44,7 @@ function YourApp() {
<Route path="/services/formation-video" element={<ServiceTrois />} />
<Route path="/backtime" element={<Backtime />} />
<Route path="/admin" element={<AdminDashboard />} />
<Route path="*" element={<NotFound />} />
</Routes>
<Footer />
</Router>