ameliabooking
/
v3
/
src
/
views
/
admin
/
customize
/
steps
/
Cabinet
/
common
/
Authentication
/
SendAccessLinkSuccess.vue
ameliabooking
/
v3
/
src
/
views
/
admin
/
customize
/
steps
/
Cabinet
/
common
/
Authentication
Last commit date
SendAccessLink.vue
1 month ago
SendAccessLinkSuccess.vue
2 days ago
SetPass.vue
1 month ago
SignIn.vue
1 month ago
Skeleton.vue
1 month ago
SendAccessLinkSuccess.vue
189 lines
| 1 | <template> |
| 2 | <div class="am-asi" :style="cssVars"> |
| 3 | <div class="am-asi__top"> |
| 4 | <div class="am-asi__header"> |
| 5 | {{ labelsDisplay('access_link_send_check') }} |
| 6 | </div> |
| 7 | <div class="am-asi__text"> |
| 8 | {{ labelsDisplay('access_link_send_click') }} |
| 9 | </div> |
| 10 | <div class="am-asi__email">{{ supportEmail }}</div> |
| 11 | </div> |
| 12 | |
| 13 | <div class="am-asi__footer"> |
| 14 | <span class="am-asi__footer-text"> |
| 15 | {{ labelsDisplay('access_link_send_inbox') }} |
| 16 | </span> |
| 17 | <span class="am-asi__footer-link"> |
| 18 | {{ labelsDisplay('access_link_send_retry') }} |
| 19 | </span> |
| 20 | </div> |
| 21 | </div> |
| 22 | </template> |
| 23 | |
| 24 | <script setup> |
| 25 | // * import from Vue |
| 26 | import { computed, inject } from 'vue' |
| 27 | |
| 28 | // * Composables |
| 29 | import { useColorTransparency } from '../../../../../../../assets/js/common/colorManipulation.js' |
| 30 | import { useReactiveCustomize } from '../../../../../../../assets/js/admin/useReactiveCustomize.js' |
| 31 | import { getSupportEmail } from '../../../../../../../assets/js/common/whiteLabel.js' |
| 32 | |
| 33 | /************* |
| 34 | * Customize * |
| 35 | *************/ |
| 36 | // * Customize |
| 37 | const { amCustomize } = useReactiveCustomize() |
| 38 | |
| 39 | // * Settings |
| 40 | const amSettings = inject('settings') |
| 41 | const supportEmail = computed(() => getSupportEmail(amSettings)) |
| 42 | |
| 43 | // * Labels |
| 44 | let langKey = inject('langKey') |
| 45 | let amLabels = inject('labels') |
| 46 | |
| 47 | let pageRenderKey = inject('pageRenderKey') |
| 48 | let stepName = inject('stepName') |
| 49 | |
| 50 | // * Label computed function |
| 51 | function labelsDisplay(label) { |
| 52 | let computedLabel = computed(() => { |
| 53 | return amCustomize.value[pageRenderKey.value][stepName.value].translations && |
| 54 | amCustomize.value[pageRenderKey.value][stepName.value].translations[label] && |
| 55 | amCustomize.value[pageRenderKey.value][stepName.value].translations[label][langKey.value] |
| 56 | ? amCustomize.value[pageRenderKey.value][stepName.value].translations[label][langKey.value] |
| 57 | : amLabels[label] |
| 58 | }) |
| 59 | |
| 60 | return computedLabel.value |
| 61 | } |
| 62 | |
| 63 | // * Fonts |
| 64 | let amFonts = inject('amFonts') |
| 65 | |
| 66 | // * Colors block |
| 67 | let amColors = inject('amColors') |
| 68 | |
| 69 | let cssVars = computed(() => { |
| 70 | return { |
| 71 | '--am-c-primary': amColors.value.colorPrimary, |
| 72 | '--am-c-success': amColors.value.colorSuccess, |
| 73 | '--am-c-error': amColors.value.colorError, |
| 74 | '--am-c-warning': amColors.value.colorWarning, |
| 75 | '--am-c-main-bgr': amColors.value.colorMainBgr, |
| 76 | '--am-c-main-heading-text': amColors.value.colorMainHeadingText, |
| 77 | '--am-c-main-text': amColors.value.colorMainText, |
| 78 | '--am-c-main-text-op70': useColorTransparency(amColors.value.colorMainText, 0.7), |
| 79 | '--am-c-main-text-op60': useColorTransparency(amColors.value.colorMainText, 0.6), |
| 80 | '--am-c-main-text-op40': useColorTransparency(amColors.value.colorMainText, 0.4), |
| 81 | '--am-c-main-text-op25': useColorTransparency(amColors.value.colorMainText, 0.25), |
| 82 | '--am-c-inp-bgr': amColors.value.colorInpBgr, |
| 83 | '--am-c-inp-border': amColors.value.colorInpBorder, |
| 84 | '--am-c-inp-text': amColors.value.colorInpText, |
| 85 | '--am-c-inp-placeholder': amColors.value.colorInpPlaceHolder, |
| 86 | '--am-c-btn-prim': amColors.value.colorBtnPrim, |
| 87 | '--am-c-btn-prim-text': amColors.value.colorBtnPrimText, |
| 88 | '--am-c-skeleton-op20': useColorTransparency(amColors.value.colorMainText, 0.2), |
| 89 | '--am-c-skeleton-op60': useColorTransparency(amColors.value.colorMainText, 0.6), |
| 90 | '--am-font-family': amFonts.value.fontFamily, |
| 91 | |
| 92 | '--am-c-scroll-op30': useColorTransparency(amColors.value.colorPrimary, 0.3), |
| 93 | '--am-c-scroll-op10': useColorTransparency(amColors.value.colorPrimary, 0.1), |
| 94 | } |
| 95 | }) |
| 96 | </script> |
| 97 | |
| 98 | <script> |
| 99 | export default { |
| 100 | name: 'AuthResetProcess', |
| 101 | key: 'accessLinkSuccess', |
| 102 | } |
| 103 | </script> |
| 104 | |
| 105 | <style lang="scss"> |
| 106 | // am - amelia |
| 107 | // asi - authentication sign in |
| 108 | @mixin auth { |
| 109 | .am-asi { |
| 110 | max-width: 400px; |
| 111 | width: 100%; |
| 112 | background-color: var(--am-c-main-bgr); |
| 113 | box-shadow: |
| 114 | 0 0 9px -4px var(--am-c-main-text-op40), |
| 115 | 0px 17px 35px -12px var(--am-c-main-text-op25); |
| 116 | border-radius: 12px; |
| 117 | padding: 32px 24px 24px; |
| 118 | margin: 0 auto; |
| 119 | font-family: var(--am-font-family); |
| 120 | |
| 121 | * { |
| 122 | font-family: var(--am-font-family); |
| 123 | box-sizing: border-box; |
| 124 | } |
| 125 | |
| 126 | &__top { |
| 127 | display: flex; |
| 128 | flex-direction: column; |
| 129 | align-items: center; |
| 130 | margin: 0 0 32px; |
| 131 | } |
| 132 | |
| 133 | &__header { |
| 134 | font-size: 24px; |
| 135 | font-weight: 500; |
| 136 | line-height: 1.33333; |
| 137 | color: var(--am-c-main-heading-text); |
| 138 | margin: 0 0 4px; |
| 139 | } |
| 140 | |
| 141 | &__text { |
| 142 | font-size: 15px; |
| 143 | font-weight: 400; |
| 144 | line-height: 1.6; |
| 145 | text-align: center; |
| 146 | color: var(--am-c-main-text-op70); |
| 147 | } |
| 148 | |
| 149 | &__email { |
| 150 | font-size: 15px; |
| 151 | font-weight: 500; |
| 152 | line-height: 1.6; |
| 153 | text-align: center; |
| 154 | color: var(--am-c-main-text); |
| 155 | } |
| 156 | |
| 157 | &__footer { |
| 158 | display: flex; |
| 159 | align-items: center; |
| 160 | justify-content: center; |
| 161 | flex-wrap: wrap; |
| 162 | |
| 163 | &-text { |
| 164 | display: inline-flex; |
| 165 | font-size: 15px; |
| 166 | font-weight: 400; |
| 167 | line-height: 1.6; |
| 168 | margin: 0 4px 0 0; |
| 169 | color: var(--am-c-main-text-op60); |
| 170 | } |
| 171 | |
| 172 | &-link { |
| 173 | display: inline-flex; |
| 174 | font-size: 15px; |
| 175 | font-weight: 400; |
| 176 | line-height: 1.6; |
| 177 | color: var(--am-c-primary); |
| 178 | cursor: pointer; |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // Admin |
| 185 | #amelia-app-backend-new { |
| 186 | @include auth; |
| 187 | } |
| 188 | </style> |
| 189 |