From 754243e3b2b1dbf9d16a369c5979b25e846c6f53 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Mon, 24 Jan 2022 13:32:25 +0100 Subject: [PATCH] added router and updated base-layout --- package.json | 1 + public/index.html | 6 +++--- src/App.js | 23 ++++++++++++++++++-- src/components/Footer.js | 13 +++++++++++ src/components/Nav.js | 9 ++++++++ src/components/Routing.js | 14 ++++++++++++ src/components/ScrollTopButton.js | 31 ++++++++++++++++++++++++++ src/pages/Home.js | 9 ++++++++ src/pages/NotFound.js | 9 ++++++++ yarn.lock | 36 ++++++++++++++++++++++++++++++- 10 files changed, 145 insertions(+), 6 deletions(-) create mode 100644 src/components/Footer.js create mode 100644 src/components/Nav.js create mode 100644 src/components/Routing.js create mode 100644 src/components/ScrollTopButton.js create mode 100644 src/pages/Home.js create mode 100644 src/pages/NotFound.js diff --git a/package.json b/package.json index 621cfb3..33471d5 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "bootstrap-icons": "^1.7.2", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-router-dom": "^6.2.1", "react-scripts": "5.0.0", "sass": "^1.49.0", "sass-loader": "^12.4.0", diff --git a/public/index.html b/public/index.html index c099290..394c4a8 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,5 @@ - + @@ -26,9 +26,9 @@ --> React Base /w Bootstrap - + -
+