From e9b7a9e32a48592cf66d5cd1f24579d166cda37a Mon Sep 17 00:00:00 2001 From: dm1sh Date: Wed, 17 May 2023 10:44:35 +0300 Subject: [PATCH] moved leaflet custom styles, added fallback for user page --- front/src/App.css | 8 +++++++- front/src/App.jsx | 7 +++++-- front/src/pages/leafletStyles.css | 5 ----- 3 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 front/src/pages/leafletStyles.css diff --git a/front/src/App.css b/front/src/App.css index 49f798b..2765713 100644 --- a/front/src/App.css +++ b/front/src/App.css @@ -5,6 +5,12 @@ body { font-family: sans-serif; } -.modal-content, .form-select { +.modal-content, .modal-content .form-select { background-color: rgb(17, 17, 17) !important; } + +/* В связи со сложившейся политической обстановкой */ +.leaflet-attribution-flag { + position: absolute; + right: -100px; +} diff --git a/front/src/App.jsx b/front/src/App.jsx index e2b0061..aaf598f 100644 --- a/front/src/App.jsx +++ b/front/src/App.jsx @@ -1,9 +1,11 @@ -import { BrowserRouter as Router, Route, Routes } from 'react-router-dom' +import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom' import { HomePage, AddPage, LoginPage, UserPage } from './pages' import WithToken from './components/WithToken' +import 'leaflet/dist/leaflet.css' + import './App.css' function App() { @@ -18,7 +20,8 @@ function App() { } /> - + {/* */} +

For Yet Go Home

} /> } /> diff --git a/front/src/pages/leafletStyles.css b/front/src/pages/leafletStyles.css deleted file mode 100644 index aa73550..0000000 --- a/front/src/pages/leafletStyles.css +++ /dev/null @@ -1,5 +0,0 @@ -/* В связи со сложившейся политической обстановкой */ -.leaflet-attribution-flag { - position: absolute; - right: -100px; -}