@@ -17,7 +24,7 @@
background-color: rgb(245,242,243);
border-radius: 20px;
margin: 20px;
- min-width: 100px;
+ min-width: 100px;
display: flex;
flex:1 1 auto;
flex-direction: column;
diff --git a/src/main/java/com/faf223/expensetrackerfaf/web/src/routes/dashboard/board/DataMenu.svelte b/src/main/java/com/faf223/expensetrackerfaf/web/src/routes/dashboard/board/DataMenu.svelte
index 1271f15..e09ea12 100644
--- a/src/main/java/com/faf223/expensetrackerfaf/web/src/routes/dashboard/board/DataMenu.svelte
+++ b/src/main/java/com/faf223/expensetrackerfaf/web/src/routes/dashboard/board/DataMenu.svelte
@@ -2,8 +2,8 @@
import Graph1 from './graphs/Graph1.svelte';
import Graph2 from './graphs/Graph2.svelte';
import Graph3 from './graphs/Graph3.svelte';
- import Graph4 from './graphs/Graph4.svelte';
- import Graph5 from './graphs/Graph5.svelte';
+ import Expenses from "./Expenses.svelte";
+ import Incomes from "./Incomes.svelte";
-
Profile Info
+
Hello, {username}
+
{
+ deleteCookie('access_token');
+ deleteCookie('refresh_token');
+ window.location.href = '/auth/login';
+ }}
+ on:keydown={e => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ deleteCookie('access_token');
+ deleteCookie('refresh_token');
+ window.location.href = '/auth/login';
+ }
+ }}>
+ Log out
+
+
@@ -81,15 +123,28 @@
}
#iconImg {
- max-width: 100px;
+ max-width: 150px;
}
#profileSpace {
margin-bottom: 20px;
display: flex;
- justify-content: center;
- color:white;
+ flex-direction: column;
+ align-items: center;
+ color: white;
font-weight: 900;
font-size: larger;
}
+
+ #logout {
+ background: none;
+ cursor: pointer;
+ border-radius: 10px;
+ transition: background 0.3s ease;
+ padding: 5px;
+ }
+
+ #logout:hover {
+ background: rgba(128, 128, 128, 0.5);
+ }
\ No newline at end of file