From 3ffb0678593eed4f71b382f31a970c6d574e4b8e Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Thu, 27 Feb 2025 17:12:57 +0100 Subject: [PATCH 01/10] feat(frontend): basis van de menubar aangemaakt bij menubar-component --- frontend/src/components/MenuBar.vue | 71 ++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 73336fa3..1d956ef0 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -1,11 +1,80 @@ From 94f36e36c948ae759205b83d1e0f3adf1df0418d Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Fri, 28 Feb 2025 10:55:15 +0100 Subject: [PATCH 02/10] feat(frontend): menubar code opgekuist en stijl aangepast --- frontend/src/components/MenuBar.vue | 151 ++++++++++++++++------------ 1 file changed, 87 insertions(+), 64 deletions(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 1d956ef0..f5da8863 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -1,80 +1,103 @@ From 5088b02f75ba9da44ff93c635c5c3eaf17bcb411 Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Fri, 28 Feb 2025 11:11:20 +0100 Subject: [PATCH 03/10] feat(frontend): add Material Design Icons library for UI icons --- frontend/src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index bc0c3d42..bfeb3abe 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -5,6 +5,7 @@ import "vuetify/styles"; import { createVuetify } from "vuetify"; import * as components from "vuetify/components"; import * as directives from "vuetify/directives"; +import { aliases, mdi } from 'vuetify/iconsets/mdi' // Components import App from "./App.vue"; @@ -14,6 +15,11 @@ const app = createApp(App); app.use(router); +const link = document.createElement("link"); +link.rel = "stylesheet"; +link.href = "https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css"; +document.head.appendChild(link); + const vuetify = createVuetify({ components, directives, From 4009bb2111e3d2894b34307b3a09ee8d793a50e7 Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Fri, 28 Feb 2025 12:26:07 +0100 Subject: [PATCH 04/10] feat(frontend): menubalk is volledig af qua stijl en items --- frontend/src/components/MenuBar.vue | 109 ++++++++++++++++++---------- 1 file changed, 72 insertions(+), 37 deletions(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index f5da8863..6f13ddff 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -7,7 +7,11 @@ const isTeacher = route.path.includes("teacher"); const role = isTeacher ? "teacher" : "student"; - const name = "Bob Debouwer"; // TODO: naam opvragen + const name = "Kurt Cobain"; //TODO: naam opvragen + const initials = name + .split(" ") + .map((n) => n[0]) + .join(""); const userId = computed(() => route.params.id as string); @@ -15,46 +19,66 @@ @@ -62,6 +86,17 @@