11<template lang="pug">
2- v-card.elevation-24
3- v-app-bar( app clipped-right flat floating style ="opacity:1.0" )
4-
5- v-app-bar-nav-icon.hidden-md-and-up ( @click.stop ="drawer = !drawer" )
6- v-avatar( size ="48px" )
7- v-img( src ="../assets/logo.jpeg" )
8- v-toolbar-title.hidden-sm-and-down.white--text
9- span.title.ml-3.mr-5 ( text style ="color:black" ) Devlup Labs
10- v-spacer
11- div.hidden-sm-and-down
12- v-btn.pa-2.ma-1 ( text v-for ="link in links" : key= "link.text" : to= "{name:link.text}" label exact ) {{link.text}}
13- v-navigation-drawer( v-model ="drawer" app left temporary style ="z-index:5" )
14- v-list( dense )
15- v-list-item( v-for ="link in links" : key= "link.text" @click ="" : to= "{name:link.text}" exact )
16- v-list-item-action
17- v-icon {{link.icon}}
18- v-list-item-content
19- v-list-item-title.grey--text {{link.text}}
2+ v-card.elevation-24
3+ v-app-bar( app clipped-right flat floating style ="opacity: 1.0" )
4+ v-app-bar-nav-icon.hidden-md-and-up ( @click.stop ="drawer = !drawer" )
5+ router-link( to ='/' )
6+ v-avatar( size ="48px" )
7+ v-img( src ="../assets/logo.jpeg" )
8+ router-link( to ='/' , style ="text-decoration: none" )
9+ v-toolbar-title.hidden-sm-and-down.white--text ()
10+ span.title.ml-3.mr-5 ( text style ="color: black" , ) Devlup Labs
11+ v-spacer
12+ div.hidden-sm-and-down
13+ v-btn( pa-2.ma-1 v-for ="link in links" : key= "link.text" : to= "{ name: link.text }" v-if ="link.text !== 'Team' && link.text !== 'CurrentTeam' && link.text !== 'AlumniTeam'" label exact sty style ="box-shadow : none" ) {{ link.text }}
14+ v-btn#menu-activator ( pa-2.ma-1 :key ="team" style ="box-shadow : none" ) Team
15+ v-menu( activator ='#menu-activator' )
16+ v-list
17+ v-list-item( pa-2.ma-1 v-for ='(item, index) in teams' , :key ='index' , :value ='index' : to= "{name: item.link}" )
18+ v-list-item-title {{ item.text }}
19+
20+ v-navigation-drawer( v-model ="drawer" app left temporary style ="z-index: 5" )
21+ v-list( dense )
22+ v-list-item( v-for ="link in links" : key= "link.text" : to= "{ name: link.text }" v-if ="link.text !== 'Team' && link.text !== 'CurrentTeam' && link.text !== 'AlumniTeam'" exact sty style ="box-shadow : none" )
23+ v-list-item-action
24+ v-icon {{ link.icon }}
25+ v-list-item-content
26+ v-list-item-title.grey--text {{ link.text }}
27+
28+ v-list-item
29+ v-list-item-action
30+ v-icon mdi-account-group
31+ v-menu
32+ template.ml-16 ( v-slot:activator ="{ on }" )
33+ v-list-item-content( v-on ="on" )
34+ v-list-item-title.grey--text Team
35+ v-list
36+ v-list-item( v-for ='(item, index) in teams' , :key ='index' , :value ='index' : to= "{name: item.link}" )
37+ v-list-item-title {{ item.text }}
38+
39+
40+
2041</template >
2142
2243<script >
2344export default {
2445 name: " Header" ,
25-
2646 data () {
2747 return {
48+ show: false ,
2849 drawer: null ,
2950 links: [
3051 { text: " Home" , icon: " mdi-home" },
@@ -33,10 +54,30 @@ export default {
3354 { text: " Timeline" , icon: " mdi-timeline-text" },
3455 { text: " Blog" , icon: " mdi-forum" },
3556 { text: " Videos" , icon: " mdi-television" },
36- { text: " Team" , icon: " mdi-human-male-male" },
57+ { text: " Team" , icon: " mdi-human-male-male" }, // Empty routeName for the dropdown menu
3758 { text: " WoC" , icon: " mdi-briefcase-edit-outline" }
59+ ],
60+ teams: [
61+ {
62+ text: " Current Team" ,
63+ link: " current_team" ,
64+ icon: " mdi-human-male-male"
65+ },
66+ {
67+ text: " Alumni Team" ,
68+ link: " alumni_team" ,
69+ icon: " mdi-human-male-male"
70+ }
3871 ]
3972 };
73+ },
74+ computed: {
75+ teamLinks () {
76+ return [
77+ { text: " Current Team" , icon: " mdi-human-male-male" },
78+ { text: " Alumni Team" , icon: " mdi-human-male-male" }
79+ ];
80+ }
4081 }
4182};
4283 </script >
0 commit comments