HelloAssoConnect.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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">
  18. </script>
  19. <style scoped lang="scss">
  20. .HaAuthorizeButton {
  21. align-items: center;
  22. -webkit-box-pack: center;
  23. -ms-flex-pack: center;
  24. background-color: #FFFFFF;
  25. border: 0.0625rem solid #4B3FCF;
  26. border-radius: 0.125rem;
  27. display: -webkit-box;
  28. display: -ms-flexbox;
  29. display: flex;
  30. padding: 0;
  31. }
  32. .HaAuthorizeButton:disabled {
  33. background-color: #4B3FCF;
  34. border-color: transparent;
  35. cursor: not-allowed;
  36. }
  37. .HaAuthorizeButton:not(:disabled):focus {
  38. box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
  39. -webkit-box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
  40. }
  41. .HaAuthorizeButtonLogo {
  42. padding: 0 0.8rem;
  43. width: 60px;
  44. }
  45. .HaAuthorizeButtonTitle {
  46. background-color: #4B3FCF;
  47. color: #FFFFFF;
  48. font-size: 1rem;
  49. font-weight: 700;
  50. padding: 0.78125rem 1.5rem;
  51. }
  52. .HaAuthorizeButton:disabled .HaAuthorizeButtonTitle {
  53. background-color: #4B3FCF;
  54. color: #9A9DA8;
  55. }
  56. .HaAuthorizeButton:not(:disabled):hover .HaAuthorizeButtonTitle,
  57. .HaAuthorizeButton:not(:disabled):focus .HaAuthorizeButtonTitle {
  58. background-color: #4B3FCF;
  59. }
  60. </style>