From 1e132b97db4aeb2ff229299765695507bd3c5aee Mon Sep 17 00:00:00 2001 From: HAM!DREZA Date: Mon, 27 May 2024 21:38:06 +0330 Subject: [PATCH] add toatification package --- assets/css/tailwind.css | 6 ++- components/Card.vue | 10 +++- components/courses-page/Courses-list.vue | 3 ++ components/login-page/Check-otp.vue | 58 ++++++++++++++---------- components/login-page/Login-form.vue | 25 +++++----- components/login-page/Login-svg.vue | 4 +- layouts/profile.vue | 3 ++ nuxt.config.ts | 2 +- package-lock.json | 10 ++-- package.json | 2 +- pages/account/profile.vue | 10 +++- pages/login/index.vue | 4 +- plugins/toastification.client.js | 11 +++++ 13 files changed, 99 insertions(+), 49 deletions(-) create mode 100644 plugins/toastification.client.js diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index d70f03b..518b5ff 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -27,7 +27,7 @@ body { } @layer components { .loginInput{ - @apply bg-white rounded-[1.563vw] text-[0.833vw] w-full h-[2.917vw] ps-[1.2vw] + @apply bg-white rounded-[2.564vw] md:rounded-[1.563vw] text-[3.59vw] md:text-[0.833vw] w-full h-[13.59vw] md:h-[2.917vw] ps-[3vw] md:ps-[1.2vw] } .flexBox{ @apply flex items-center justify-center @@ -41,6 +41,10 @@ body { .courses{ @apply w-[87.69%] md:w-[81.04%] flex flex-col justify-center mt-[18vw] md:mt-[4.688vw] px-[3.846vw] md:px-[1.563vw] bg-[#F8F8F8] rounded-[3.846vw] md:rounded-[0.781vw] } + .custom-toast{ + margin: 0 !important; + font-family: 'thinSans'; + } } @media (max-width: 768px) { .tabs-component .tabs-component-tab .is-active::before{ diff --git a/components/Card.vue b/components/Card.vue index 82ad42e..9bbb778 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -92,7 +92,7 @@ - + - +
diff --git a/nuxt.config.ts b/nuxt.config.ts index 6a7575f..816c0af 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -9,7 +9,7 @@ export default defineNuxtConfig({ modules: [ '@nuxtjs/tailwindcss', '@nuxt/image', - 'vue3-carousel-nuxt' + 'vue3-carousel-nuxt', ], tailwindcss: { cssPath: '~/assets/css/tailwind.css', diff --git a/package-lock.json b/package-lock.json index 92a840d..a10996b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "nuxt": "^3.11.2", "vue": "^3.4.27", "vue-router": "^4.3.2", - "vue-toastification": "^1.7.14", + "vue-toastification": "^2.0.0-rc.5", "vue3-carousel-nuxt": "^1.1.1", "vue3-tabs-component": "^1.3.7" }, @@ -12265,11 +12265,11 @@ } }, "node_modules/vue-toastification": { - "version": "1.7.14", - "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-1.7.14.tgz", - "integrity": "sha512-khZR8t3NWZ/JJ2MZxXLbesHrRJ8AKa75PY5Zq8yMifF9x8lHq8ljYkC0d2PD9yahooygQB5tcFyRDkbbIPx8hw==", + "version": "2.0.0-rc.5", + "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-2.0.0-rc.5.tgz", + "integrity": "sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA==", "peerDependencies": { - "vue": "^2.0.0" + "vue": "^3.0.2" } }, "node_modules/vue-virtual-scroller": { diff --git a/package.json b/package.json index bb78b3c..d1a0d08 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "nuxt": "^3.11.2", "vue": "^3.4.27", "vue-router": "^4.3.2", - "vue-toastification": "^1.7.14", + "vue-toastification": "^2.0.0-rc.5", "vue3-carousel-nuxt": "^1.1.1", "vue3-tabs-component": "^1.3.7" }, diff --git a/pages/account/profile.vue b/pages/account/profile.vue index f8cd7a7..3881187 100644 --- a/pages/account/profile.vue +++ b/pages/account/profile.vue @@ -76,8 +76,9 @@
@@ -85,6 +86,7 @@ >نام و نام خانوادگی @@ -104,3 +106,9 @@
+ + + \ No newline at end of file diff --git a/pages/login/index.vue b/pages/login/index.vue index 37f2faf..d03fe04 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -1,7 +1,7 @@