feat(frontend): menubalk is volledig af qua stijl en items

This commit is contained in:
Laure Jablonski 2025-02-28 12:26:07 +01:00
parent 5088b02f75
commit 4009bb2111

View file

@ -7,7 +7,11 @@
const isTeacher = route.path.includes("teacher"); const isTeacher = route.path.includes("teacher");
const role = isTeacher ? "teacher" : "student"; 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); const userId = computed(() => route.params.id as string);
</script> </script>
@ -15,6 +19,7 @@
<template> <template>
<main> <main>
<nav class="menu"> <nav class="menu">
<div class="left">
<ul> <ul>
<li> <li>
<router-link <router-link
@ -52,9 +57,28 @@
>discussions</router-link >discussions</router-link
> >
</li> </li>
<li>log out</li>
<li class="initials">initials</li>
</ul> </ul>
</div>
<div class="right">
<li>
<!-- TODO: log out when clicked -->
<router-link :to="`/login`">
<v-icon
icon="mdi-logout"
size="x-large"
color="#0e6942"
></v-icon>
</router-link>
</li>
<li>
<v-avatar
size="large"
color="#0e6942"
style="font-size: large; font-weight: bold"
>{{ initials }}</v-avatar
>
</li>
</div>
</nav> </nav>
</main> </main>
</template> </template>
@ -62,6 +86,17 @@
<style scoped> <style scoped>
.menu { .menu {
background-color: #f6faf2; background-color: #f6faf2;
display: flex;
justify-content: space-between;
}
.right {
align-items: center;
padding: 10px;
}
.right li {
margin-left: 15px;
} }
nav ul { nav ul {
@ -69,13 +104,12 @@
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
gap: 10px; gap: 15px;
align-items: center; align-items: center;
} }
li { li {
display: inline; display: inline;
float: left;
} }
.dwengo_home { .dwengo_home {
@ -95,6 +129,7 @@
.menu_item { .menu_item {
color: #0e6942; color: #0e6942;
text-decoration: none; text-decoration: none;
font-size: large;
} }
nav a.router-link-active { nav a.router-link-active {