Skip to content

Commit

Permalink
add not found page (#31)
Browse files Browse the repository at this point in the history
* add not found page

* add design lost page
  • Loading branch information
BenoitSerrano authored Sep 25, 2024
1 parent 5259376 commit 3971761
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 75 deletions.
27 changes: 27 additions & 0 deletions src/Pages/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import Button from "@codegouvfr/react-dsfr/Button";
import ConnectionLost from "../assets/connectionLost.svg";

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

function NotFound() {
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 3971761

Please sign in to comment.