feat(frontend): menubalk is volledig af qua stijl en items
This commit is contained in:
		
							parent
							
								
									5088b02f75
								
							
						
					
					
						commit
						4009bb2111
					
				
					 1 changed files with 72 additions and 37 deletions
				
			
		|  | @ -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); | ||||
| </script> | ||||
|  | @ -15,6 +19,7 @@ | |||
| <template> | ||||
|     <main> | ||||
|         <nav class="menu"> | ||||
|             <div class="left"> | ||||
|                 <ul> | ||||
|                     <li> | ||||
|                         <router-link | ||||
|  | @ -52,9 +57,28 @@ | |||
|                             >discussions</router-link | ||||
|                         > | ||||
|                     </li> | ||||
|                 <li>log out</li> | ||||
|                 <li class="initials">initials</li> | ||||
|                 </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> | ||||
|     </main> | ||||
| </template> | ||||
|  | @ -62,6 +86,17 @@ | |||
| <style scoped> | ||||
|     .menu { | ||||
|         background-color: #f6faf2; | ||||
|         display: flex; | ||||
|         justify-content: space-between; | ||||
|     } | ||||
| 
 | ||||
|     .right { | ||||
|         align-items: center; | ||||
|         padding: 10px; | ||||
|     } | ||||
| 
 | ||||
|     .right li { | ||||
|         margin-left: 15px; | ||||
|     } | ||||
| 
 | ||||
|     nav ul { | ||||
|  | @ -69,13 +104,12 @@ | |||
|         list-style-type: none; | ||||
|         margin: 0; | ||||
|         padding: 0; | ||||
|         gap: 10px; | ||||
|         gap: 15px; | ||||
|         align-items: center; | ||||
|     } | ||||
| 
 | ||||
|     li { | ||||
|         display: inline; | ||||
|         float: left; | ||||
|     } | ||||
| 
 | ||||
|     .dwengo_home { | ||||
|  | @ -95,6 +129,7 @@ | |||
|     .menu_item { | ||||
|         color: #0e6942; | ||||
|         text-decoration: none; | ||||
|         font-size: large; | ||||
|     } | ||||
| 
 | ||||
|     nav a.router-link-active { | ||||
|  |  | |||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski