Feat(front): move all to front
This commit is contained in:
21
front/src/components/content.vue
Normal file
21
front/src/components/content.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="content">
|
||||
Content
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Content',
|
||||
props: {
|
||||
msg: String
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
.content {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
21
front/src/components/nav.vue
Normal file
21
front/src/components/nav.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<nav>
|
||||
<router-link to="/"> Home </router-link>
|
||||
<router-link to="/config"> Config </router-link>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Nav',
|
||||
props: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
nav {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user