From ad2d4944818e40dc90482d2d8fee9a942cfcfd8d Mon Sep 17 00:00:00 2001 From: wbuezas Date: Sat, 27 Jul 2024 22:55:40 -0300 Subject: [PATCH] Create CardList component --- src/components/ui/CardList.vue | 44 +++++++++++++++++++ src/css/app.scss | 10 ++++- src/css/quasar.variables.scss | 2 +- src/pages/Account/AddressList.vue | 66 +++++++++++----------------- src/pages/Ecomerce/PendingOrders.vue | 7 +++ src/router/routes.js | 5 +++ 6 files changed, 91 insertions(+), 43 deletions(-) create mode 100644 src/components/ui/CardList.vue create mode 100644 src/pages/Ecomerce/PendingOrders.vue diff --git a/src/components/ui/CardList.vue b/src/components/ui/CardList.vue new file mode 100644 index 00000000..6846aa3a --- /dev/null +++ b/src/components/ui/CardList.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/css/app.scss b/src/css/app.scss index 90a9aa79..d802cb22 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -1,8 +1,8 @@ // app global css in SCSS form @font-face { - font-family: Poppins; - src: url(./poppins.ttf) format('truetype'); + font-family: Poppins; + src: url(./poppins.ttf) format('truetype'); } @font-face { font-family: 'Open Sans'; @@ -36,3 +36,9 @@ a.link { .q-page-sticky.fixed-bottom-right { margin: 18px; } +.no-border-radius { + border-radius: 0 !important; +} +.no-padding { + padding: 0 !important; +} diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 3707107b..b0df8536 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -15,7 +15,7 @@ $primary: #1a1a1a; $secondary: #26a69a; $accent: #8cc63f; - +$gray-light: #ddd; $dark: #1d1d1d; $dark-page: #121212; diff --git a/src/pages/Account/AddressList.vue b/src/pages/Account/AddressList.vue index 3c56b2aa..6aa920a5 100644 --- a/src/pages/Account/AddressList.vue +++ b/src/pages/Account/AddressList.vue @@ -3,6 +3,8 @@ import { useI18n } from 'vue-i18n'; import { ref, onMounted, inject } from 'vue'; import { useRouter } from 'vue-router'; +import CardList from 'src/components/ui/CardList.vue'; + import useNotify from 'src/composables/useNotify.js'; import { useVnConfirm } from 'src/composables/useVnConfirm.js'; @@ -99,36 +101,33 @@ onMounted(async () => { style="max-width: 544px" separator > - - -
- -
- - {{ address.nickname }} - - {{ address.street }} - - {{ address.postalCode }}, - {{ address.city }} - -
+ + + + - - en-US: addAddress: Add address diff --git a/src/pages/Ecomerce/PendingOrders.vue b/src/pages/Ecomerce/PendingOrders.vue new file mode 100644 index 00000000..32da5694 --- /dev/null +++ b/src/pages/Ecomerce/PendingOrders.vue @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/router/routes.js b/src/router/routes.js index 4be3a3ea..db961d11 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -49,6 +49,11 @@ const routes = [ path: '/ecomerce/invoices', component: () => import('pages/Ecomerce/Invoices.vue') }, + { + name: 'PendingOrders', + path: '/ecomerce/pending', + component: () => import('pages/Ecomerce/PendingOrders.vue') + }, { name: 'catalog', path: '/ecomerce/catalog/:category?/:type?',