From ca8a4c92719eca64ca198b4eeba4b5a040393ba1 Mon Sep 17 00:00:00 2001 From: Guilherme Freire Date: Sun, 16 Jul 2023 13:04:29 -0300 Subject: [PATCH] =?UTF-8?q?:construction:=20Feat:=20implementando=20p?= =?UTF-8?q?=C3=A1gina=20para=20conte=C3=BAdo=20n=C3=A3o=20encontrado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 30 ++++++++++++++++++++---------- src/components/view/NoContent.jsx | 15 +++++++++++++++ 2 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 src/components/view/NoContent.jsx diff --git a/src/App.js b/src/App.js index 8b31564..42e8d3d 100644 --- a/src/App.js +++ b/src/App.js @@ -1,22 +1,32 @@ import './assets/css/App.css'; import './index.css'; -import { BrowserRouter, Route, Routes } from 'react-router-dom'; +import { BrowserRouter, Route, Router, RouterProvider, Routes, createBrowserRouter } from 'react-router-dom'; import Home from './components/view/Home'; import Navegar from './components/view/Navegar'; import Game from './components/view/Game'; +import NoContent from './components/view/NoContent'; function App() { + + const router = createBrowserRouter([ + { + path: "/", + element: , + errorElement: + }, + { + path: "/navegar", + element: + }, + { + path: "/game/:id", + element: + } + ]); + return (
- - - - }> - }> - } > - - - +
); } diff --git a/src/components/view/NoContent.jsx b/src/components/view/NoContent.jsx new file mode 100644 index 0000000..550fb8c --- /dev/null +++ b/src/components/view/NoContent.jsx @@ -0,0 +1,15 @@ + +function NoContent() { + return ( +
+
+

{ "Opss!" }

+

{ "Não encontramos a página que você procurava :(" }

+
+

{ "404 Not Found" }

+ { "Voltar a página inicial" } +
+ ); +} + +export default NoContent; \ No newline at end of file