Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add not found page #31

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent cette fonction

</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;
rebeccadumazert marked this conversation as resolved.
Show resolved Hide resolved
justify-content: center;
}

Expand Down
Loading
Loading