From bacffd90b355e294de9e6322bcfbd8621766e242 Mon Sep 17 00:00:00 2001 From: Alexandertp Date: Wed, 6 Dec 2023 13:41:56 +0100 Subject: [PATCH] Add login and register, change styling --- frontend/src/App.vue | 12 ++-- frontend/src/assets/main.css | 30 +++++++++ frontend/src/components/HelloWorld.vue | 44 ------------- frontend/src/components/TheWelcome.vue | 88 ------------------------- frontend/src/components/WelcomeItem.vue | 86 ------------------------ frontend/src/router/index.js | 10 +++ frontend/src/views/AboutView.vue | 11 +--- frontend/src/views/HomeView.vue | 7 +- frontend/src/views/LoginView.vue | 17 +++++ frontend/src/views/RegisterView.vue | 17 +++++ 10 files changed, 87 insertions(+), 235 deletions(-) delete mode 100644 frontend/src/components/HelloWorld.vue delete mode 100644 frontend/src/components/TheWelcome.vue delete mode 100644 frontend/src/components/WelcomeItem.vue create mode 100644 frontend/src/views/LoginView.vue create mode 100644 frontend/src/views/RegisterView.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 1e59640..af6f58f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,5 +1,5 @@ - - - - diff --git a/frontend/src/components/TheWelcome.vue b/frontend/src/components/TheWelcome.vue deleted file mode 100644 index dab9536..0000000 --- a/frontend/src/components/TheWelcome.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/frontend/src/components/WelcomeItem.vue b/frontend/src/components/WelcomeItem.vue deleted file mode 100644 index ac366d0..0000000 --- a/frontend/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index a49ae50..00a687f 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -16,6 +16,16 @@ const router = createRouter({ // 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') + }, + { + path: '/login', + name: 'login', + component: () => import('../views/LoginView.vue') + }, + { + path: '/register', + name: 'register', + component: () => import("../views/RegisterView.vue") } ] }) diff --git a/frontend/src/views/AboutView.vue b/frontend/src/views/AboutView.vue index 756ad2a..5b1ef87 100644 --- a/frontend/src/views/AboutView.vue +++ b/frontend/src/views/AboutView.vue @@ -1,15 +1,8 @@ diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index 6bb706f..abffa5e 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -1,9 +1,12 @@ diff --git a/frontend/src/views/LoginView.vue b/frontend/src/views/LoginView.vue new file mode 100644 index 0000000..7c5ecda --- /dev/null +++ b/frontend/src/views/LoginView.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/RegisterView.vue b/frontend/src/views/RegisterView.vue new file mode 100644 index 0000000..067535a --- /dev/null +++ b/frontend/src/views/RegisterView.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file