diff --git a/src/assets/general/not_found.webp b/src/assets/general/not_found.webp new file mode 100644 index 0000000..21cead8 Binary files /dev/null and b/src/assets/general/not_found.webp differ diff --git a/src/pages/Error/Error.css b/src/pages/Error/Error.css index e69de29..e6ee3bd 100644 --- a/src/pages/Error/Error.css +++ b/src/pages/Error/Error.css @@ -0,0 +1,28 @@ +#error-page { + height: 100vh; + + padding: 0 40px; + + overflow: hidden; + + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + +.not-found-image { + width: 100%; + max-width: 400px; +} + +.message { + position: absolute; + + margin-top: 30px; + padding: 5px; + + font-weight: bold; + color: #fff; + background-color: #d32f2f; +} \ No newline at end of file diff --git a/src/pages/Error/Error.jsx b/src/pages/Error/Error.jsx index 6ad51da..da9e336 100644 --- a/src/pages/Error/Error.jsx +++ b/src/pages/Error/Error.jsx @@ -1,4 +1,6 @@ import { useRouteError } from "react-router-dom"; +import errorImage from "../../assets/general/not_found.webp"; +import "./Error.css"; export default function ErrorPage() { const error = useRouteError(); @@ -6,11 +8,8 @@ export default function ErrorPage() { return (
-

Opa!

-

Uma erro ocorreu ao carregar a página:

-

- {error.statusText || error.message} -

+ +

Página não encontrada

); }