index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <div
  3. class="d-flex flex-column justify-between"
  4. style="height: calc(100vh - 10rem)"
  5. >
  6. <div class="col"></div>
  7. <div class="col">
  8. <svg
  9. id="thumbslogo"
  10. class="mb-4"
  11. width="150"
  12. height="150"
  13. viewBox="0 0 24 24"
  14. overflow="visible"
  15. >
  16. <path
  17. d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z"
  18. />
  19. <path
  20. id="plarrow"
  21. d="m8 12.5 5.1-2.9L8 6.7v5.8z"
  22. fill="#fff"
  23. stroke="none"
  24. />
  25. </svg>
  26. <h1 class="title-text">Return YouTube Dislike</h1>
  27. <div class="mb-4" style="color: #999">
  28. <p style="margin-top: 0">
  29. Browser extension and an API that shows you dislikes on Youtube
  30. </p>
  31. </div>
  32. <v-btn
  33. :to="installLink"
  34. color="primary px-6"
  35. style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em"
  36. >
  37. <v-icon large class="mr-6">mdi-tray-arrow-down</v-icon>
  38. Install
  39. </v-btn>
  40. <br />
  41. <v-btn class="mainAltButton" :href="githubLink" target="_blank">
  42. <v-icon style="margin-right: 0.5em">mdi-github</v-icon>
  43. GitHub
  44. </v-btn>
  45. <v-btn class="mainAltButton" :href="discordLink" target="_blank">
  46. <v-icon style="margin-right: 0.5em">mdi-discord</v-icon>
  47. Discord
  48. </v-btn>
  49. </div>
  50. <v-spacer />
  51. <div id="sponsors" class="d-flex flex-column items-center py-8">
  52. <h3 class="mb-4">
  53. <v-icon class="mb-2">mdi-heart</v-icon>
  54. Sponsors
  55. </h3>
  56. <v-row class="justify-center mx-auto">
  57. <p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor">
  58. <a
  59. :style="
  60. sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }
  61. "
  62. :href="sponsor.link"
  63. >
  64. {{ sponsor.name }}
  65. </a>
  66. </p>
  67. </v-row>
  68. </div>
  69. </div>
  70. </template>
  71. <script>
  72. export default {
  73. transition(to, from) {
  74. if (!from) return "swoop-in";
  75. let routes = ["index", "install", "faq", "donate", "links"];
  76. if (routes.indexOf(to.name) < 0) return "swoop-out";
  77. if (routes.indexOf(from.name) < 0) return "swoop-in";
  78. return routes.indexOf(to.name) > routes.indexOf(from.name)
  79. ? "swoop-left"
  80. : "swoop-right";
  81. },
  82. data() {
  83. return {
  84. installLink: "/install",
  85. githubLink: "https://github.com/Anarios/return-youtube-dislike",
  86. discordLink: "https://discord.gg/mYnESY4Md5",
  87. sponsors: [
  88. { name: "Piepacker", link: "https://piepacker.com/" },
  89. { name: "nodetube", link: "https://github.com/mayeaux/nodetube" },
  90. { name: "trig404" },
  91. {
  92. name: "Peter33",
  93. link: "https://www.youtube.com/watch?v=G5kzUpWAusI",
  94. },
  95. {
  96. name: "Seed4.Me VPN",
  97. link: "https://www.seed4.me/users/register?gift=ReturnYoutubeDislike",
  98. },
  99. ],
  100. };
  101. },
  102. };
  103. </script>
  104. <style scoped>
  105. .sponsor {
  106. margin: 1rem;
  107. height: max-content;
  108. }
  109. @media (max-width: 767px) {
  110. .sponsor {
  111. margin: 0.5rem;
  112. height: max-content;
  113. }
  114. }
  115. #thumbslogo {
  116. opacity: 0;
  117. fill: transparent;
  118. stroke: #f44;
  119. transition-property: opacity, transform;
  120. transform: scale(0) rotate(180deg);
  121. animation: popin 1s 0.3s ease-in-out 1 forwards,
  122. tap 0.3s 1.7s ease-in-out 1 forwards;
  123. }
  124. #plarrow {
  125. opacity: 0;
  126. transform: translateX(-0.25rem);
  127. transition-property: opacity, transform;
  128. animation: slidin 0.5s 1.7s ease 1 forwards;
  129. }
  130. @keyframes slidin {
  131. 0% {
  132. opacity: 0;
  133. transform: translateX(-0.25rem);
  134. }
  135. 100% {
  136. opacity: 1;
  137. transform: translateX(0);
  138. }
  139. }
  140. @keyframes popin {
  141. 0% {
  142. transform: rotate(180deg) scale(0);
  143. opacity: 0;
  144. }
  145. 100% {
  146. transform: rotate(0deg) scale(1);
  147. opacity: 1;
  148. }
  149. }
  150. @keyframes fadein {
  151. 0% {
  152. opacity: 0;
  153. }
  154. 100% {
  155. opacity: 1;
  156. }
  157. }
  158. @keyframes tap {
  159. 0% {
  160. fill: transparent;
  161. stroke: #f44;
  162. transform: scale(1);
  163. }
  164. 25% {
  165. fill: #f44;
  166. stroke: none;
  167. transform: scale(0.85);
  168. }
  169. 100% {
  170. fill: #f44;
  171. stroke: none;
  172. transform: scale(1);
  173. }
  174. }
  175. /* reduced-motion animations */
  176. @media (prefers-reduced-motion) {
  177. #thumbslogo {
  178. opacity: 1;
  179. fill: #f44;
  180. stroke: none;
  181. transform: none;
  182. animation: none;
  183. }
  184. #thumbsripple {
  185. opacity: 0;
  186. transform: none;
  187. animation: none;
  188. }
  189. #plarrow {
  190. opacity: 0;
  191. transform: none;
  192. transition-property: opacity;
  193. animation: fadein 0.5s 0.5s ease 1 forwards;
  194. }
  195. }
  196. </style>