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 99296ea..b84dbc6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2,78 +2,99 @@ import HeaderFooterView from "~/layouts/HeaderFooterView.vue"; import { UserViewType } from "@/types/components/users.view" +const { user } = useUser() + useUser().fetchUser(); // loading user state just in case +function setLevelbar(newValue: number) { + const levelbar = document.getElementById('levelbar') + if (levelbar) { + levelbar.style.width = newValue + "%" + } +} +