HelloAssoConnect.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!--
  2. Bouton de connexion à HelloAsso
  3. @see https://dev.helloasso.com/docs/le-bouton-se-connecter-avec-helloasso
  4. -->
  5. <template>
  6. <button class="HaAuthorizeButton">
  7. <v-img
  8. src="https://api.helloasso.com/v5/img/logo-ha.svg"
  9. alt=""
  10. class="HaAuthorizeButtonLogo"
  11. />
  12. <span class="HaAuthorizeButtonTitle">
  13. {{ $t('connect_to_helloasso') }}
  14. </span>
  15. </button>
  16. </template>
  17. <script setup lang="ts"></script>
  18. <style scoped lang="scss">
  19. .HaAuthorizeButton {
  20. align-items: center;
  21. -webkit-box-pack: center;
  22. -ms-flex-pack: center;
  23. background-color: #ffffff;
  24. border: 0.0625rem solid #4b3fcf;
  25. border-radius: 0.125rem;
  26. display: -webkit-box;
  27. display: -ms-flexbox;
  28. display: flex;
  29. padding: 0;
  30. }
  31. .HaAuthorizeButton:disabled {
  32. background-color: #4b3fcf;
  33. border-color: transparent;
  34. cursor: not-allowed;
  35. }
  36. .HaAuthorizeButton:not(:disabled):focus {
  37. box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
  38. -webkit-box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
  39. }
  40. .HaAuthorizeButtonLogo {
  41. padding: 0 0.8rem;
  42. width: 60px;
  43. }
  44. .HaAuthorizeButtonTitle {
  45. background-color: #4b3fcf;
  46. color: #ffffff;
  47. font-size: 1rem;
  48. font-weight: 700;
  49. padding: 0.78125rem 1.5rem;
  50. }
  51. .HaAuthorizeButton:disabled .HaAuthorizeButtonTitle {
  52. background-color: #4b3fcf;
  53. color: #9a9da8;
  54. }
  55. .HaAuthorizeButton:not(:disabled):hover .HaAuthorizeButtonTitle,
  56. .HaAuthorizeButton:not(:disabled):focus .HaAuthorizeButtonTitle {
  57. background-color: #4b3fcf;
  58. }
  59. </style>