index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <div>
  3. <svg
  4. id="thumbslogo"
  5. class="mb-4"
  6. width="150"
  7. height="150"
  8. viewBox="0 0 24 24"
  9. overflow="visible"
  10. >
  11. <path
  12. 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"
  13. />
  14. <path
  15. id="plarrow"
  16. d="m8 12.5 5.1-2.9L8 6.7v5.8z"
  17. fill="#fff"
  18. stroke="none"
  19. />
  20. </svg>
  21. <h1 class="title-text">Return YouTube Dislike</h1>
  22. <div class="mb-4" style="color: #999">
  23. <p style="margin-top: 0">
  24. Browser extension and an API that show you dislikes on youtube
  25. </p>
  26. </div>
  27. <v-btn
  28. :to="installLink"
  29. color="primary px-6"
  30. style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em"
  31. >
  32. <v-icon large class="mr-6">mdi-tray-arrow-down</v-icon>
  33. Install
  34. </v-btn>
  35. <br />
  36. <v-btn class="mainAltButton" :href="githubLink" target="_blank">
  37. <v-icon style="margin-right: 0.5em">mdi-github</v-icon>
  38. GitHub
  39. </v-btn>
  40. <v-btn class="mainAltButton" :href="discordLink" target="_blank">
  41. <v-icon style="margin-right: 0.5em">mdi-discord</v-icon>
  42. Discord
  43. </v-btn>
  44. <div id="sponsors">
  45. <h3>Sponsors:</h3>
  46. <p
  47. v-for="sponsor in sponsors"
  48. :key="sponsor.name"
  49. style="margin: 0px 0px"
  50. >
  51. <a :href="sponsor.link">{{ sponsor.name }}</a>
  52. </p>
  53. </div>
  54. </div>
  55. </template>
  56. <script>
  57. export default {
  58. transition(to, from) {
  59. if (!from) return "swoop-in";
  60. let routes = ["index", "install", "faq", "donate", "links"];
  61. if (routes.indexOf(to.name) < 0) return "swoop-out";
  62. if (routes.indexOf(from.name) < 0) return "swoop-in";
  63. return routes.indexOf(to.name) > routes.indexOf(from.name)
  64. ? "swoop-left"
  65. : "swoop-right";
  66. },
  67. data() {
  68. return {
  69. installLink: "/install",
  70. githubLink: "https://github.com/Anarios/return-youtube-dislike",
  71. discordLink: "https://discord.gg/mYnESY4Md5",
  72. sponsors: [
  73. { name: "Piepacker", link: "https://piepacker.com/" },
  74. { name: "nodetube", link: "https://github.com/mayeaux/nodetube" },
  75. { name: "trig404" },
  76. { name: "Peter33" },
  77. ],
  78. };
  79. },
  80. };
  81. </script>
  82. <style scoped>
  83. #sponsors {
  84. margin-top: 200px;
  85. }
  86. #thumbslogo {
  87. opacity: 0;
  88. fill: transparent;
  89. stroke: #f44;
  90. transition-property: opacity, transform;
  91. transform: scale(0) rotate(180deg);
  92. animation: popin 1s 0.3s ease-in-out 1 forwards,
  93. tap 0.3s 1.7s ease-in-out 1 forwards;
  94. }
  95. #plarrow {
  96. opacity: 0;
  97. transform: translateX(-0.25rem);
  98. transition-property: opacity, transform;
  99. animation: slidin 0.5s 1.7s ease 1 forwards;
  100. }
  101. @keyframes slidin {
  102. 0% {
  103. opacity: 0;
  104. transform: translateX(-0.25rem);
  105. }
  106. 100% {
  107. opacity: 1;
  108. transform: translateX(0);
  109. }
  110. }
  111. @keyframes popin {
  112. 0% {
  113. transform: rotate(180deg) scale(0);
  114. opacity: 0;
  115. }
  116. 100% {
  117. transform: rotate(0deg) scale(1);
  118. opacity: 1;
  119. }
  120. }
  121. @keyframes fadein {
  122. 0% {
  123. opacity: 0;
  124. }
  125. 100% {
  126. opacity: 1;
  127. }
  128. }
  129. @keyframes tap {
  130. 0% {
  131. fill: transparent;
  132. stroke: #f44;
  133. transform: scale(1);
  134. }
  135. 25% {
  136. fill: #f44;
  137. stroke: none;
  138. transform: scale(0.85);
  139. }
  140. 100% {
  141. fill: #f44;
  142. stroke: none;
  143. transform: scale(1);
  144. }
  145. }
  146. /* reduced-motion animations */
  147. @media (prefers-reduced-motion) {
  148. #thumbslogo {
  149. opacity: 1;
  150. fill: #f44;
  151. stroke: none;
  152. transform: none;
  153. animation: none;
  154. }
  155. #thumbsripple {
  156. opacity: 0;
  157. transform: none;
  158. animation: none;
  159. }
  160. #plarrow {
  161. opacity: 0;
  162. transform: none;
  163. transition-property: opacity;
  164. animation: fadein 0.5s 0.5s ease 1 forwards;
  165. }
  166. }
  167. </style>