From d48758fe842e29075ce5c79bd90c6a40c79f11bf Mon Sep 17 00:00:00 2001 From: Jakub-prog Date: Fri, 17 May 2024 23:53:10 +0200 Subject: [PATCH] new styles for the home menu abr --- src/App.js | 66 ++++++++++++++----------- src/App.scss | 124 ++++++++++++++++++++++++++++++++++------------- src/User/User.js | 4 +- src/index.js | 3 -- 4 files changed, 129 insertions(+), 68 deletions(-) diff --git a/src/App.js b/src/App.js index 9d78e0e..7dd81e5 100644 --- a/src/App.js +++ b/src/App.js @@ -1,43 +1,53 @@ import './App.scss' import User from "./User/User"; -import {Link} from "react-router-dom"; +import { Link } from "react-router-dom"; import UserButtons from './User/UserButtons'; function App() { return (
+
+
+

Bot-Wars

+
+ +
+ + +
+ -
-

Bot-Wars

-
- -
-
-
-
- - - -
-
- - - -
-
- - - -
-
- - - +

Hello World

+
+

12334 +

+
- ) + ); } export default App diff --git a/src/App.scss b/src/App.scss index fe08829..70a7fda 100644 --- a/src/App.scss +++ b/src/App.scss @@ -4,52 +4,106 @@ -webkit-box-sizing: border-box; } +body { + margin: 0; + font-family: Arial, sans-serif; + background: #000; + color: #0f0; +} + .app { + text-align: center; - h1:hover { - cursor: default; - } + .header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 20px; + background: rgba(0, 0, 0, 0.8); + border-bottom: 1px solid #0f0; + padding: 25px; - .title { - overflow: auto; - padding: 10px; - } + .logo { + flex-basis: 60%; + display: flex; + justify-content: left; + letter-spacing: 5px; + } - .login-btns { - float: right; - } + .logo h1 { + margin: 0; + font-size: 1.5em; + color: #0f0; + } - .btn { - display: inline-block; - width: 100%; - } + .nav { + flex-grow: 1; - .menu-btn { - margin: 3px; - width: 23% - } - .menu-btns.admin .menu-btn{ - width: 32% - } + .menu-btns { + list-style: none; + margin: 0; + padding: 0; + display: flex; + justify-content: space-between; + align-items: center; + gap: 20px; + .menu-btn { + display: flex; + align-items: center; + margin: 10px 0 10px 5px; + padding: 0; - .menu-btns { - margin-top: 25px; - display: flex; - flex-wrap: wrap; - justify-content: space-between; - } + a { + text-decoration: none; + display: flex; + align-items: center; - @media only screen and (max-width: 650px) { - .menu-btn { - width: 100% - } - .menu-btns.admin .menu-btn{ - width: 100% + .btn, .login-btn { + padding: 10px 20px; + border: none; + // color: #000; + font-weight: bold; + cursor: pointer; + min-width: 130px; + + &:hover { + background: #fff; + color: #000; + } + } + + .signup-btn { + padding: 10px 20px; + // border: 3px solid #3D1680 ; + background-color: #0BE400 ; + color: #000; + border-radius: 20px; + font-weight: bold; + cursor: pointer; + min-width: 130px; + margin-right: 10px; + + &:hover { + background: #fff; + color: #000; + } + } + } + } + } } } - .login-btn { - width: 100%; + .container{ + display: flex; + width: 70%; + opacity: 85%; + height: 100%; + margin: auto; + background-color: #161616; + // border-left: 3px dashed #0BE400; + // border-right: 3px dashed #0BE400; + } } \ No newline at end of file diff --git a/src/User/User.js b/src/User/User.js index 10544ca..526658b 100644 --- a/src/User/User.js +++ b/src/User/User.js @@ -11,10 +11,10 @@ function User({ isAuthenticated, user, login, logout }) { ) : ( <> - + - + )} diff --git a/src/index.js b/src/index.js index 9ce2e5e..7be75d4 100644 --- a/src/index.js +++ b/src/index.js @@ -54,9 +54,6 @@ const router = createBrowserRouter([ { path: "/tournaments/add", element: , - // In Future with more Turnaments - // Assuming getListOfTypesOfGames returns an array of game types - //element: , }, { path: "/tournaments/edit/:id",