added app bar

This commit is contained in:
Thomas 2022-04-09 11:33:41 -05:00
parent 43e067d5f0
commit 59ce598023
3 changed files with 30 additions and 6 deletions

View File

@ -10,11 +10,24 @@ import { MathPage } from './support/page'
</script> </script>
<template> <template>
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/scratch">Scratch Testing</router-link>
</div> <v-app>
<router-view/> <v-app-bar height="30" color="grey-darken-3" elevation="0">
<div id="nav">
<router-link class="links" to="/">Home</router-link> |
<router-link class="links" to="/scratch">Scratch Testing</router-link> |
<router-link class="links" to="/editor">Editor</router-link>
</div>
</v-app-bar>
<v-main>
<v-card elevation="0" height="400px">
<router-view/>
</v-card>
</v-main>
</v-app>
</template> </template>
<style> <style>
@ -26,5 +39,10 @@ import { MathPage } from './support/page'
color: #2c3e50; color: #2c3e50;
margin-top: 60px; margin-top: 60px;
} }
.links {
color: #fff;
}
.links:visited{
color: #fff;
}
</style> </style>

View File

View File

@ -12,6 +12,12 @@ const routes = [
name: 'Scratch', name: 'Scratch',
component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'), component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'),
}, },
{
path: '/editor',
name: 'Editor',
component: () => import(/* webpackChunkName: "scratch" */ './components/Editor.vue'),
},
] ]
const router = createRouter({ const router = createRouter({