diff --git a/frontend/index.html b/frontend/index.html
index 0211e3c..04d2aa4 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -4,7 +4,7 @@
-
- v3.0
+ v3.0 (latest)
-
-
-
+ const logout = () => {
+ Cookies.remove('authToken');
+ location.replace('/');
+ }
+
+ return (
+ <>
+
+
+ settings
+
+
-
-
-
-
- >
- );
+
+
+
+
+
+
+
+
+
+ >
+ );
}
export default SettingsPage;
\ No newline at end of file
diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js
index a16886e..55291bc 100644
--- a/frontend/src/services/api.js
+++ b/frontend/src/services/api.js
@@ -32,6 +32,9 @@ export async function login(username, password) {
try {
const response = await fetch(`${API_BASE_URL}/login`, {
method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
body: JSON.stringify({ username: username, password: password })
});
if (!response.ok) {
@@ -40,8 +43,8 @@ export async function login(username, password) {
const data = await response.json();
return data;
} catch (error) {
- console.error('Failed to fetch items:', error);
- return null;
+ // console.error('Failed to fetch items:', error);
+ throw error;
}
}
diff --git a/frontend/src/styles/content_page.module.css b/frontend/src/styles/content_page.module.css
index 118af4b..3ef7214 100644
--- a/frontend/src/styles/content_page.module.css
+++ b/frontend/src/styles/content_page.module.css
@@ -82,7 +82,7 @@
background: url("https://resources.oblic-parallels.fr/example.jpg");
background-size: cover;
border-top-right-radius: .4rem;
- -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, #00000010 50%, transparent 70%);
+ mask-image: radial-gradient(ellipse at top right, black 0%, #00000010 50%, transparent 70%);
z-index: 0;
}
@@ -164,7 +164,8 @@
margin-bottom: 2em;
margin-left: 1em;
- padding: .2em;
+ padding: .2em .4em;
+ width: fit-content;
color: #8a8a8a;
font-size: 1.3em;
diff --git a/frontend/src/styles/login.module.css b/frontend/src/styles/login.module.css
new file mode 100644
index 0000000..0a19e35
--- /dev/null
+++ b/frontend/src/styles/login.module.css
@@ -0,0 +1,41 @@
+.container {
+ position: absolute;
+ left: 35vw;
+ right: 35vw;
+ top: 11rem;
+ bottom: 4rem;
+
+ min-width: 20em;
+ min-height: 25em;
+ padding: 2em;
+
+ background-color: #1a1a1a;
+ border: #3a3a3a solid .1rem;
+ border-radius: .5rem;
+
+ overflow: scroll;
+}
+
+.loginImage {
+ display: block;
+ margin: 1em auto;
+ width: 10rem;
+ /* padding: 5em; */
+}
+
+.buttonsContainer {
+ padding: 0 15% 5vh 15%;
+}
+
+.fieldsContainer {
+ /* margin-top: 5vh; */
+ padding: 5vh 10%;
+}
+
+
+.loginButton {
+ width: 100%;
+ padding: .5em 0;
+ font-size: 1.2em;
+ margin-bottom: 1em;
+}
\ No newline at end of file
diff --git a/frontend/src/styles/settings.module.css b/frontend/src/styles/settings.module.css
new file mode 100644
index 0000000..1d51359
--- /dev/null
+++ b/frontend/src/styles/settings.module.css
@@ -0,0 +1,46 @@
+.tabsContainer {
+ position: absolute;
+ left: 4rem;
+ top: 11rem;
+ bottom: 4rem;
+ /* right: 97rem; */
+
+ width: 15rem;
+
+ border-radius: .5rem;
+
+ /* background-color: #1a1a1a; */
+
+}
+
+.tab {
+ position: relative;
+ left: 4rem;
+ right: 0;
+ /* transform: translate(-50% , -50%); */
+
+ margin: 1em 0;
+
+ padding: .2em .4em;
+ width: fit-content;
+
+ color: #8a8a8a;
+ font-size: 1.5em;
+ border-radius: .5em;
+
+ transition: 200ms;
+}
+
+.tab:hover {
+ background-color: #3a3a3a;
+}
+
+.logout {
+ color: #c24040;
+ cursor: pointer;
+}
+
+.logout:hover {
+ color: #eaeaea;
+ background-color: #bc3939;
+}
\ No newline at end of file