Skip to content

Commit 4d5c572

Browse files
committed
feat: enable nav bar, add github + license icon
1 parent 0b60b13 commit 4d5c572

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

layouts/default.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-app>
3-
<!-- <v-navigation-drawer
3+
<v-navigation-drawer
44
v-model="drawer"
55
:mini-variant="miniVariant"
66
:clipped="clipped"
@@ -12,6 +12,7 @@
1212
v-for="(item, i) in items"
1313
:key="i"
1414
:to="item.to"
15+
:href="item.href"
1516
router
1617
exact
1718
>
@@ -23,7 +24,7 @@
2324
</v-list-item-content>
2425
</v-list-item>
2526
</v-list>
26-
</v-navigation-drawer> -->
27+
</v-navigation-drawer>
2728
<v-app-bar :clipped-left="clipped" fixed app>
2829
<v-app-bar-nav-icon @click.stop="drawer = !drawer" />
2930
<v-toolbar-title v-text="title" />
@@ -84,7 +85,7 @@ export default {
8485
},
8586
data() {
8687
return {
87-
clipped: false,
88+
clipped: true,
8889
drawer: false,
8990
fixed: false,
9091
selectedLanguage: 1,
@@ -98,6 +99,16 @@ export default {
9899
title: 'Welcome',
99100
to: '/',
100101
},
102+
{
103+
icon: 'mdi-github',
104+
title: 'Source Code',
105+
href: 'https://github.com/courseoffering/courseoffering.github.io',
106+
},
107+
{
108+
icon: 'mdi-scale-balance',
109+
title: 'License',
110+
href: 'https://github.com/courseoffering/courseoffering.github.io/blob/main/LICENSE',
111+
},
101112
],
102113
miniVariant: false,
103114
title: 'KFU Course Offering',

0 commit comments

Comments
 (0)