index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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 show 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. { name: "Peter33" },
  92. ],
  93. };
  94. },
  95. };
  96. </script>
  97. <style scoped>
  98. .sponsor {
  99. margin: 1rem;
  100. height: max-content;
  101. }
  102. @media (max-width: 767px) {
  103. .sponsor {
  104. margin: 0.5rem;
  105. height: max-content;
  106. }
  107. }
  108. #thumbslogo {
  109. opacity: 0;
  110. fill: transparent;
  111. stroke: #f44;
  112. transition-property: opacity, transform;
  113. transform: scale(0) rotate(180deg);
  114. animation: popin 1s 0.3s ease-in-out 1 forwards,
  115. tap 0.3s 1.7s ease-in-out 1 forwards;
  116. }
  117. #plarrow {
  118. opacity: 0;
  119. transform: translateX(-0.25rem);
  120. transition-property: opacity, transform;
  121. animation: slidin 0.5s 1.7s ease 1 forwards;
  122. }
  123. @keyframes slidin {
  124. 0% {
  125. opacity: 0;
  126. transform: translateX(-0.25rem);
  127. }
  128. 100% {
  129. opacity: 1;
  130. transform: translateX(0);
  131. }
  132. }
  133. @keyframes popin {
  134. 0% {
  135. transform: rotate(180deg) scale(0);
  136. opacity: 0;
  137. }
  138. 100% {
  139. transform: rotate(0deg) scale(1);
  140. opacity: 1;
  141. }
  142. }
  143. @keyframes fadein {
  144. 0% {
  145. opacity: 0;
  146. }
  147. 100% {
  148. opacity: 1;
  149. }
  150. }
  151. @keyframes tap {
  152. 0% {
  153. fill: transparent;
  154. stroke: #f44;
  155. transform: scale(1);
  156. }
  157. 25% {
  158. fill: #f44;
  159. stroke: none;
  160. transform: scale(0.85);
  161. }
  162. 100% {
  163. fill: #f44;
  164. stroke: none;
  165. transform: scale(1);
  166. }
  167. }
  168. /* reduced-motion animations */
  169. @media (prefers-reduced-motion) {
  170. #thumbslogo {
  171. opacity: 1;
  172. fill: #f44;
  173. stroke: none;
  174. transform: none;
  175. animation: none;
  176. }
  177. #thumbsripple {
  178. opacity: 0;
  179. transform: none;
  180. animation: none;
  181. }
  182. #plarrow {
  183. opacity: 0;
  184. transform: none;
  185. transition-property: opacity;
  186. animation: fadein 0.5s 0.5s ease 1 forwards;
  187. }
  188. }
  189. </style>