diff --git a/layouts/HeaderFooterView.vue b/layouts/HeaderFooterView.vue index 9137d55..233ff0e 100644 --- a/layouts/HeaderFooterView.vue +++ b/layouts/HeaderFooterView.vue @@ -8,7 +8,7 @@
-
+
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 + "%" + } +} + +