-

-
-
test
+
+
+
+
+
+
+
+
+
+ Login
+
+
-
diff --git a/client/src/components/WelcomeItem.vue b/client/src/components/WelcomeItem.vue
deleted file mode 100644
index ba0def3..0000000
--- a/client/src/components/WelcomeItem.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
diff --git a/client/src/main.ts b/client/src/main.ts
index c8e37b0..fe7d946 100644
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -1,9 +1,16 @@
import { createApp } from 'vue'
+import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
+import 'bootstrap/dist/css/bootstrap.css';
+
+const pinia = createPinia()
const app = createApp(App)
app.use(router)
+app.use(pinia)
app.mount('#app')
+
+import "bootstrap/dist/js/bootstrap.js";
\ No newline at end of file
diff --git a/client/src/router/index.ts b/client/src/router/index.ts
index a49ae50..464495e 100644
--- a/client/src/router/index.ts
+++ b/client/src/router/index.ts
@@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
-import HomeView from '../views/HomeView.vue'
+import Home from '../views/Home.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -7,15 +7,23 @@ const router = createRouter({
{
path: '/',
name: 'home',
- component: HomeView
+ component: Home
},
{
- path: '/about',
- name: 'about',
+ path: '/login',
+ name: 'login',
// 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('../views/AboutView.vue')
+ component: () => import('../views/Login.vue')
+ },
+ {
+ path: '/register',
+ name: 'register',
+ // 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('../views/Register.vue')
}
]
})
diff --git a/client/src/stores/login.ts b/client/src/stores/login.ts
new file mode 100644
index 0000000..455a3f0
--- /dev/null
+++ b/client/src/stores/login.ts
@@ -0,0 +1,12 @@
+import { defineStore } from 'pinia'
+
+export const useLoginStore = defineStore('login', {
+ state: () => {
+ return { loggedIn: false }
+ },
+ actions: {
+ setLoginState(login: boolean) {
+ this.loggedIn = login;
+ }
+ },
+})
\ No newline at end of file
diff --git a/client/src/views/AboutView.vue b/client/src/views/AboutView.vue
deleted file mode 100644
index 756ad2a..0000000
--- a/client/src/views/AboutView.vue
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
This is an about page
-
-
-
-
diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue
new file mode 100644
index 0000000..27e0f69
--- /dev/null
+++ b/client/src/views/Home.vue
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/client/src/views/HomeView.vue b/client/src/views/HomeView.vue
deleted file mode 100644
index c98b583..0000000
--- a/client/src/views/HomeView.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/client/src/views/Login.vue b/client/src/views/Login.vue
new file mode 100644
index 0000000..6009b27
--- /dev/null
+++ b/client/src/views/Login.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
diff --git a/client/src/views/Register.vue b/client/src/views/Register.vue
new file mode 100644
index 0000000..e04d76b
--- /dev/null
+++ b/client/src/views/Register.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+