From 2d1ce62c2347941e614003077ca9a56ec4db42bb Mon Sep 17 00:00:00 2001 From: Omitg24 Date: Mon, 13 Mar 2023 10:06:51 +0100 Subject: [PATCH] =?UTF-8?q?13/03/2023=20-=20General=20-=20Revisi=C3=B3n=20?= =?UTF-8?q?del=20prototipo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/navigation/LogInButton.tsx | 15 --------------- webapp/src/components/navigation/NavBar.tsx | 10 ++++++---- webapp/src/css/navigation.css | 15 +++++++++++---- 3 files changed, 17 insertions(+), 23 deletions(-) delete mode 100644 webapp/src/components/navigation/LogInButton.tsx diff --git a/webapp/src/components/navigation/LogInButton.tsx b/webapp/src/components/navigation/LogInButton.tsx deleted file mode 100644 index 3db36c7..0000000 --- a/webapp/src/components/navigation/LogInButton.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import "../../css/login.css" -import {useNavigate} from "react-router-dom"; -import Button from "@mui/material/Button"; - -function LogInButton() { - - const navigate = useNavigate(); - - - return ( - - ) -} - -export default LogInButton \ No newline at end of file diff --git a/webapp/src/components/navigation/NavBar.tsx b/webapp/src/components/navigation/NavBar.tsx index f3f2d64..ee09912 100644 --- a/webapp/src/components/navigation/NavBar.tsx +++ b/webapp/src/components/navigation/NavBar.tsx @@ -45,18 +45,20 @@ function NavBar() {
- {(!isLoggedIn) ? null : + {(!isLoggedIn) ? "" : {dropdownTitle}} {(!isLoggedIn) ? - : - } - Haven't signed yed? Register now! + {(isLoggedIn) ? "" : + Haven't signed yed? Register now! + }
); diff --git a/webapp/src/css/navigation.css b/webapp/src/css/navigation.css index c277f9f..c01bf03 100644 --- a/webapp/src/css/navigation.css +++ b/webapp/src/css/navigation.css @@ -46,10 +46,9 @@ nav a:active, #login-manage a:active { margin-right: 0; } -div[role="button"] button { +#login, #logout { font-weight: bold; color: white; - background-color: #0063fd; padding: 10px; border-radius: 20px; border-color: white; @@ -58,11 +57,19 @@ div[role="button"] button { cursor: pointer; } -div[role="button"] button:hover { +#login { + background-color: #0063fd; +} + +#logout { + background-color: #8f8d8d; +} + +#login:hover, #logout:hover { background-color: #00a6fb; } -div[role="button"] button:active { +#login:active, #logout:active { background-color: #007ffd; }