file: initialize files

This commit is contained in:
Leon Xu committed 2022-02-18 18:03:43 -08:00
1 parent 4ef4413395
commit 15af463123
54 files changed
+21716

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<template>
<nav>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</nav>
<router-view/>
</template>
<style lang="scss">
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
nav {
padding: 30px;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
</style>
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+5
View File
@@ -0,0 +1,5 @@
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
createApp(App).use(router).mount('#app')
+17
View File
@@ -0,0 +1,17 @@
import { createRouter, createWebHistory } from "vue-router";
import WeatherView from "../views/WeatherView.vue";
const routes = [
{
path: "/",
name: "weather",
component: WeatherView,
},
];
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
});
export default router;
+12
View File
@@ -0,0 +1,12 @@
<template>
<div class="home"></div>
</template>
<script>
// @ is an alias to /src
export default {
name: "HomeView",
components: {},
};
</script>