From 2265809d82f159208f72a837a0080720dc11092e Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Mon, 15 Aug 2022 10:13:49 +0300 Subject: [PATCH] added loading into finish button --- presets.js | 7 +- public/css/app.css | 80 +++++++++++++++++++++ resources/assets/js/views/wizard/Finish.vue | 14 +++- 3 files changed, 98 insertions(+), 3 deletions(-) diff --git a/presets.js b/presets.js index 51577c1055a..cfadf442782 100644 --- a/presets.js +++ b/presets.js @@ -211,6 +211,10 @@ module.exports = { '0%': { boxShadow: '0 28px 0 -28px #ffffff' }, '100%': { boxShadow: '0 28px 0 #ffffff' }, }, + submit_second: { + '0%': { boxShadow: '0 28px 0 -28px #55588b' }, + '100%': { boxShadow: '0 28px 0 #55588b' }, + }, }, animation: { @@ -218,7 +222,8 @@ module.exports = { pulsate_transparent: 'pulsate_transparent 1500ms ease infinite;', pulsate: 'pulsate 1500ms ease infinite;', spin: 'spin 1000ms infinite', - submit: 'submit 0.7s ease alternate infinite' + submit: 'submit 0.7s ease alternate infinite', + submit_second: 'submit_second 0.7s ease alternate infinite' }, transitionProperty: { diff --git a/public/css/app.css b/public/css/app.css index 78ffc6b8730..ee318da5b48 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -9981,6 +9981,34 @@ input[type="date"]::-webkit-inner-spin-button, -webkit-animation: submit 0.7s ease alternate infinite; animation: submit 0.7s ease alternate infinite; } +@-webkit-keyframes submit_second{ + + 0%{ + -webkit-box-shadow: 0 28px 0 -28px #55588b; + box-shadow: 0 28px 0 -28px #55588b; + } + + 100%{ + -webkit-box-shadow: 0 28px 0 #55588b; + box-shadow: 0 28px 0 #55588b; + } +} +@keyframes submit_second{ + + 0%{ + -webkit-box-shadow: 0 28px 0 -28px #55588b; + box-shadow: 0 28px 0 -28px #55588b; + } + + 100%{ + -webkit-box-shadow: 0 28px 0 #55588b; + box-shadow: 0 28px 0 #55588b; + } +} +.animate-submit_second{ + -webkit-animation: submit_second 0.7s ease alternate infinite; + animation: submit_second 0.7s ease alternate infinite; +} .cursor-auto{ cursor: auto; } @@ -47306,6 +47334,27 @@ body{ animation: submit 0.7s ease alternate infinite; } +@keyframes submit_second{ + + 0%{ + content: var(--tw-content); + -webkit-box-shadow: 0 28px 0 -28px #55588b; + box-shadow: 0 28px 0 -28px #55588b; + } + + 100%{ + content: var(--tw-content); + -webkit-box-shadow: 0 28px 0 #55588b; + box-shadow: 0 28px 0 #55588b; + } +} + +.before\:animate-submit_second::before{ + content: var(--tw-content); + -webkit-animation: submit_second 0.7s ease alternate infinite; + animation: submit_second 0.7s ease alternate infinite; +} + .before\:rounded-full::before{ content: var(--tw-content); border-radius: 9999px; @@ -47441,6 +47490,27 @@ body{ animation: submit 0.7s ease alternate infinite; } +@keyframes submit_second{ + + 0%{ + content: var(--tw-content); + -webkit-box-shadow: 0 28px 0 -28px #55588b; + box-shadow: 0 28px 0 -28px #55588b; + } + + 100%{ + content: var(--tw-content); + -webkit-box-shadow: 0 28px 0 #55588b; + box-shadow: 0 28px 0 #55588b; + } +} + +.after\:animate-submit_second::after{ + content: var(--tw-content); + -webkit-animation: submit_second 0.7s ease alternate infinite; + animation: submit_second 0.7s ease alternate infinite; +} + .after\:rounded-full::after{ content: var(--tw-content); border-radius: 9999px; @@ -47693,6 +47763,16 @@ body{ background-color: rgb(197 217 186 / var(--tw-bg-opacity)); } +.disabled\:bg-gray-300:disabled{ + --tw-bg-opacity: 1; + background-color: rgb(209 213 219 / var(--tw-bg-opacity)); +} + +.disabled\:bg-gray-100:disabled{ + --tw-bg-opacity: 1; + background-color: rgb(243 244 246 / var(--tw-bg-opacity)); +} + .disabled\:opacity-50:disabled{ opacity: 0.5; } diff --git a/resources/assets/js/views/wizard/Finish.vue b/resources/assets/js/views/wizard/Finish.vue index a80525116a6..db142ff039c 100644 --- a/resources/assets/js/views/wizard/Finish.vue +++ b/resources/assets/js/views/wizard/Finish.vue @@ -55,8 +55,16 @@ - - {{ translations.finish.create_first_invoice }} + + + + + {{ translations.finish.create_first_invoice }} + @@ -93,6 +101,7 @@ export default { active: 3, route_url: url, image_src: app_url + "/public/img/wizard-modules.png", + anchor_loading: false }; }, @@ -124,6 +133,7 @@ export default { finish() { window.location.href = url + "/sales/invoices/create"; + this.anchor_loading = true; }, }, };