You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. <template>
  2. <div class="payment-status tw-mb-[15px] tw-flex tw-flex-col tw-items-center">
  3. <div
  4. :class="[
  5. 'status-icon',
  6. 'tw-w-[48px]',
  7. 'tw-h-[48px]',
  8. 'tw-mb-[20px]',
  9. 'tw-bg-neutrals-0',
  10. 'tw-rounded-[48px]',
  11. status,
  12. ]"
  13. ></div>
  14. <h2 class="info-title t24 tw-text-black tw-mb-[4px]">
  15. <span v-if="status == 'success'">{{ $t("Order completed!") }}</span>
  16. <span v-else>{{ $t("Subscription failed!") }}</span>
  17. </h2>
  18. <div class="info-description">
  19. <div v-if="errorMessage" class="t14 tw-text-error-default">
  20. {{ errorMessage }}
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. props: {
  28. status: {
  29. type: String,
  30. },
  31. errorMessage: {
  32. type: String,
  33. },
  34. },
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. .status-icon {
  39. background-size: 100%;
  40. background-repeat: no-repeat;
  41. background-position: center;
  42. &.success {
  43. // background-color: transparent !important;
  44. background-image: url("~/assets/svg/payment-status-check.svg");
  45. }
  46. &.failed {
  47. // background-color: transparent !important;
  48. background-image: url("~/assets/svg/payment-status-failed.svg");
  49. }
  50. }
  51. </style>