HomeSponsors.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <script setup lang="ts">
  2. import { VPHomeSponsors } from 'vitepress/theme'
  3. /* const { data } = useSponsor() */
  4. </script>
  5. <template>
  6. <VPHomeSponsors
  7. message="TresJS is free and open source, made possible by wonderful sponsors."
  8. :data="[]"
  9. />
  10. <div class="action">
  11. <a
  12. class="sponsor"
  13. href="https://github.com/sponsors/tresjs"
  14. target="_blank"
  15. rel="noreferrer"
  16. >
  17. Become a sponsor
  18. </a>
  19. </div>
  20. <div class="action">
  21. <p class="message">Consider supporting our friends</p>
  22. </div>
  23. <ul class="action flex flex-wrap w-full sm:w-2/3 md:1/3 mx-auto">
  24. <li>
  25. <a
  26. class="sponsor"
  27. href="https://github.com/sponsors/vitejs"
  28. target="_blank"
  29. rel="noreferrer"
  30. >
  31. Vite <i class="i-logos-vitejs ml-2"></i>
  32. </a>
  33. </li>
  34. <li>
  35. <a
  36. class="sponsor"
  37. href="https://github.com/sponsors/patak-dev"
  38. target="_blank"
  39. rel="noreferrer"
  40. >
  41. Patak <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/583075?v=4" alt="" />
  42. </a>
  43. </li>
  44. <li>
  45. <a
  46. class="sponsor"
  47. href="https://github.com/sponsors/antfu"
  48. target="_blank"
  49. rel="noreferrer"
  50. >
  51. Anthony Fu <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/11247099?v=4" alt="" />
  52. </a>
  53. </li>
  54. <li>
  55. <a
  56. class="sponsor"
  57. href="https://github.com/sponsors/posva"
  58. target="_blank"
  59. rel="noreferrer"
  60. >
  61. posva <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/664177?v=4" alt="" />
  62. </a>
  63. </li>
  64. <li>
  65. <a
  66. class="sponsor"
  67. href="https://github.com/sponsors/johnsoncodehk"
  68. target="_blank"
  69. rel="noreferrer"
  70. >
  71. Johnson Chu <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/16279759?v=4" alt="" />
  72. </a>
  73. </li>
  74. <li>
  75. <a
  76. class="sponsor"
  77. href="https://github.com/sponsors/CodyJasonBennett"
  78. target="_blank"
  79. rel="noreferrer"
  80. >
  81. Cody Bennet <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/23324155?v=4" alt="" />
  82. </a>
  83. </li>
  84. <li>
  85. <a
  86. class="sponsor"
  87. href="https://github.com/sponsors/nuxt"
  88. target="_blank"
  89. rel="noreferrer"
  90. >
  91. Daniel Roe <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/23360933?s=160&v=4" alt="" />
  92. </a>
  93. </li>
  94. <li>
  95. <a
  96. class="sponsor"
  97. href="https://github.com/sponsors/danielroe"
  98. target="_blank"
  99. rel="noreferrer"
  100. >
  101. Nuxt <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/28706372?v=4" alt="" />
  102. </a>
  103. </li>
  104. </ul>
  105. </template>
  106. <style scoped>
  107. .action {
  108. display: flex;
  109. justify-content: center;
  110. gap: 1rem;
  111. padding-top: 4rem;
  112. }
  113. .sponsor {
  114. /* .VPButton */
  115. display: flex;
  116. align-items: center;
  117. justify-content: space-between;
  118. border: 1px solid transparent;
  119. text-align: center;
  120. font-weight: 600;
  121. white-space: nowrap;
  122. transition:
  123. color 0.25s,
  124. border-color 0.25s,
  125. background-color 0.25s;
  126. /* .VPButton.medium */
  127. border-radius: 20px;
  128. padding: 0 20px;
  129. line-height: 38px;
  130. font-size: 14px;
  131. /* .VPButton.sponsor */
  132. border-color: var(--vp-button-sponsor-border);
  133. color: var(--vp-button-sponsor-text);
  134. background-color: var(--vp-button-sponsor-bg);
  135. }
  136. .sponsor:hover {
  137. /* .VPButton.sponsor:hover */
  138. border-color: var(--vp-button-sponsor-hover-border);
  139. color: var(--vp-button-sponsor-hover-text);
  140. background-color: var(--vp-button-sponsor-hover-bg);
  141. }
  142. </style>