diff --git a/pages/index.vue b/pages/index.vue
index cfb30ea..1400a24 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -3,29 +3,41 @@ import HeaderFooterView from "~/layouts/HeaderFooterView.vue";
import {UserViewType} from "@/types/components/users.view"
import {useGame} from "@/composables/useGames";
-useUser().fetchUser(); // loading user state just in case
+const { user } = useUser()
+useUser().fetchUser(); // loading user state just in case
const {games, loading, error, fetchGames} = useGame();
onMounted(() => {
fetchGames();
});
+function setLevelbar(newValue: number) {
+ const levelbar = document.getElementById('levelbar')
+ if (levelbar) {
+ levelbar.style.width = newValue + "%"
+ }
+}
+
+
-
- 1A
+
+
+
Streak: {{ user?.daily_streak }}
-
- 2B
-
-
- 3C
+
+
+
@@ -36,13 +48,13 @@ onMounted(() => {
-
+
-
+
-
+