diff --git a/webapp/src/components/Login/Login.css b/webapp/src/components/Login/Login.css
index 99bf775f..f399c823 100644
--- a/webapp/src/components/Login/Login.css
+++ b/webapp/src/components/Login/Login.css
@@ -3,6 +3,7 @@
grid-template-columns: 1fr;
gap: 1rem;
justify-content: center;
+ margin: auto 0;
}
.login-container h1{
diff --git a/webapp/src/components/Login/Login.js b/webapp/src/components/Login/Login.js
index b85456bd..a5c655fa 100644
--- a/webapp/src/components/Login/Login.js
+++ b/webapp/src/components/Login/Login.js
@@ -35,35 +35,37 @@ const Login = () => {
};
return (
-
- {loginSuccess ? (
- navigate("/home")
- ) : (
- <>
-
Identifícate
-
setUsername(e.target.value)}
- />
-
setPassword(e.target.value)}
- />
-
- {openSnackbar && (
-
Login successful
- )}
- {error &&
Error: {error}
}
- >
- )}
+
+
+ {loginSuccess ? (
+ navigate("/home")
+ ) : (
+ <>
+
Identifícate
+
setUsername(e.target.value)}
+ />
+
setPassword(e.target.value)}
+ />
+
+ {openSnackbar && (
+
Login successful
+ )}
+ {error &&
Error: {error}
}
+ >
+ )}
+
);
};
diff --git a/webapp/src/components/Nav/Nav.css b/webapp/src/components/Nav/Nav.css
index e738f7e4..2d0bd449 100644
--- a/webapp/src/components/Nav/Nav.css
+++ b/webapp/src/components/Nav/Nav.css
@@ -5,7 +5,6 @@
font-weight: 700;
margin: 0;
text-shadow: 4px 4px 0 var(--shadow);
- margin-right: 3rem;
}
nav {
diff --git a/webapp/src/pages/Authenticate/Authenticate.css b/webapp/src/pages/Authenticate/Authenticate.css
index 4840d467..e1c7f780 100644
--- a/webapp/src/pages/Authenticate/Authenticate.css
+++ b/webapp/src/pages/Authenticate/Authenticate.css
@@ -6,3 +6,12 @@
padding: 0.2rem;
margin-top: 1rem;
}
+
+.main{
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ justify-content: space-between;
+ width: 100%;
+ height: 100%;
+}
diff --git a/webapp/src/pages/Authenticate/Authenticate.js b/webapp/src/pages/Authenticate/Authenticate.js
index 3e28d3c4..e6408b8d 100644
--- a/webapp/src/pages/Authenticate/Authenticate.js
+++ b/webapp/src/pages/Authenticate/Authenticate.js
@@ -1,9 +1,8 @@
-import React, { useState } from 'react';
-import AddUser from '../../components/Register/Register';
-import Login from '../../components/Login/Login';
-import CssBaseline from '@mui/material/CssBaseline';
-import Footer from '../../components/Footer/Footer.js';
-import './Authenticate.css';
+import React, { useState } from "react";
+import AddUser from "../../components/Register/Register";
+import Login from "../../components/Login/Login";
+import Footer from "../../components/Footer/Footer.js";
+import "./Authenticate.css";
function Authenticate() {
const [showLogin, setShowLogin] = useState(true);
@@ -13,22 +12,21 @@ function Authenticate() {
};
return (
-
-
-
- WIQ
-
- {showLogin ?
:
}
+
+
WIQ
- {showLogin ? (
-
- ) : (
-
- )}
+ {showLogin ?
:
}
+
+ {showLogin ? (
+
+ ) : (
+
+ )}
+