added app bar
This commit is contained in:
parent
43e067d5f0
commit
59ce598023
30
src/App.vue
30
src/App.vue
@ -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>
|
||||||
|
0
src/components/Editor.vue
Normal file
0
src/components/Editor.vue
Normal 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({
|
||||||
|
Loading…
Reference in New Issue
Block a user