diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index a518691..1dbb26c 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -5,6 +5,8 @@ import Profile from "../views/profile.vue"; import missing from "../views/missing.vue"; import Info from "../views/Info.vue"; import TimeRecords from "../views/TimeRecords.vue"; +import About from "../views/About.vue"; +import Login from "../views/Login.vue"; Vue.use(VueRouter); const routes = [ @@ -18,6 +20,11 @@ const routes = [ name: "TimeRecords", component: TimeRecords }, + { + path: "/login", + name: "Login", + component: Login + }, { path: "/profile/:id", name: "Profile", @@ -38,11 +45,7 @@ const routes = [ { path: "/about", name: "About", - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => - import(/* webpackChunkName: "about" */ "../views/About.vue") + component: About }, { path: '*', diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue new file mode 100644 index 0000000..05f3465 --- /dev/null +++ b/frontend/src/views/Login.vue @@ -0,0 +1,81 @@ + + + + +