From 9b4b1a993cf3fa54151f6b4ac1c63dcca7d1b65e Mon Sep 17 00:00:00 2001 From: SRP-mango Date: Fri, 1 Sep 2023 03:10:33 +0700 Subject: [PATCH] add login mockup (for backend to testing) reading desc please + minor css fix --- src/components/BottomNavigation.vue | 12 ++++-- src/components/TopBar.vue | 34 ++++++++++++++++ src/plugins/router.js | 1 + src/views/DestinationInfo.vue | 7 +--- src/views/Login.vue | 58 ++++++++++++++++++++++++++++ src/views/Setting.vue | 60 ++++++++--------------------- 6 files changed, 119 insertions(+), 53 deletions(-) create mode 100644 src/components/TopBar.vue create mode 100644 src/views/Login.vue diff --git a/src/components/BottomNavigation.vue b/src/components/BottomNavigation.vue index 55436fb..a520b1d 100644 --- a/src/components/BottomNavigation.vue +++ b/src/components/BottomNavigation.vue @@ -4,7 +4,9 @@ + max-width="120px" + class = "white-border" + > mdi-map แผนที่ @@ -13,7 +15,8 @@ + max-width="120px" + class = "white-border"> mdi-heart สถานที่โปรด @@ -21,7 +24,8 @@ + max-width="120px" + class = "white-border"> mdi-cog การตั้งค่า @@ -39,7 +43,7 @@ import {RouterLink} from 'vue-router'; diff --git a/src/plugins/router.js b/src/plugins/router.js index c27a324..dd7c224 100644 --- a/src/plugins/router.js +++ b/src/plugins/router.js @@ -6,6 +6,7 @@ const routes = [ {path: '/favorite', name: 'favorite', component: () => import('@/views/Favorite.vue')}, {path: '/setting', name: 'setting', component: () => import('@/views/Setting.vue')}, {path: '/destination-info', name: 'destination-info', component: () => import('@/views/DestinationInfo.vue')}, + {path: '/login', name: 'login', component: () => import('@/views/Login.vue')}, ] const router = createRouter({ routes, diff --git a/src/views/DestinationInfo.vue b/src/views/DestinationInfo.vue index f9bd6e3..e58f219 100644 --- a/src/views/DestinationInfo.vue +++ b/src/views/DestinationInfo.vue @@ -4,9 +4,4 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/Login.vue b/src/views/Login.vue new file mode 100644 index 0000000..ba34a99 --- /dev/null +++ b/src/views/Login.vue @@ -0,0 +1,58 @@ + + + diff --git a/src/views/Setting.vue b/src/views/Setting.vue index 4a4bf14..2e08d7d 100644 --- a/src/views/Setting.vue +++ b/src/views/Setting.vue @@ -1,49 +1,20 @@ @@ -99,7 +71,8 @@ import {RouterLink} from 'vue-router'; const account_items = [ - { text: 'ตั้งค่าบัญชี',icon: 'mdi-chevron-right'}, + { text: 'ตั้งค่าบัญชี', + icon: 'mdi-chevron-right'}, ] @@ -113,7 +86,8 @@ const display_items = [ ] const about_items = [ - { text: 'เกี่ยวกับ',icon: 'mdi-chevron-right',} + { text: 'เกี่ยวกับ', + icon: 'mdi-chevron-right',} ]