Skip to content

Commit

Permalink
add design lost page
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Sep 25, 2024
1 parent caa7062 commit a359eb0
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/Pages/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
import Button from "@codegouvfr/react-dsfr/Button";
import ConnectionLost from "../assets/connectionLost.svg";

import { useNavigate } from "react-router-dom";

function NotFound() {
return <div>ERROR</div>;
let navigate = useNavigate();
return (
<div className="fr-container">
<div className="fr-grid-row fr-grid-row--gutters fr-grid-row--middle fr-py-5w">
<div className="fr-col-6">
<h1 className="fr-h3 fr-mb-5w">Page non trouvée</h1>
<p className="fr-mb-5w">
Nous n'arrivons pas à trouver la page que vous souhaitez afficher.
</p>

<Button onClick={() => navigate(-1)}>Retour</Button>
</div>
<div className="fr-col-6 centered-content">
<img src={ConnectionLost} alt="" />
</div>
</div>
</div>
);
}

export default NotFound;
1 change: 1 addition & 0 deletions src/Pages/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ body {
}

.centered-content {
display: flex;
justify-content: center;
}

Expand Down
Loading

0 comments on commit a359eb0

Please sign in to comment.