index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 v-for="sponsor in sponsors" style="margin: 0px 0px ">
  47. <a :href="sponsor.link">{{sponsor.name}}</a>
  48. </p>
  49. </div>
  50. </div>
  51. </template>
  52. <script>
  53. export default {
  54. transition(to, from) {
  55. if (!from) return "swoop-in";
  56. let routes = ["index", "install", "faq", "donate", "links"];
  57. if (routes.indexOf(to.name) < 0) return "swoop-out";
  58. if (routes.indexOf(from.name) < 0) return "swoop-in";
  59. return routes.indexOf(to.name) > routes.indexOf(from.name)
  60. ? "swoop-left"
  61. : "swoop-right";
  62. },
  63. data() {
  64. return {
  65. installLink: "/install",
  66. githubLink: "https://github.com/Anarios/return-youtube-dislike",
  67. discordLink: "https://discord.gg/mYnESY4Md5",
  68. };
  69. },
  70. };
  71. </script>
  72. <style scoped>
  73. #sponsors {
  74. margin-top: 200px;
  75. }
  76. #thumbslogo {
  77. opacity: 0;
  78. fill: transparent;
  79. stroke: #f44;
  80. transition-property: opacity, transform;
  81. transform: scale(0) rotate(180deg);
  82. animation: popin 1s 0.3s ease-in-out 1 forwards,
  83. tap 0.3s 1.7s ease-in-out 1 forwards;
  84. }
  85. #plarrow {
  86. opacity: 0;
  87. transform: translateX(-0.25rem);
  88. transition-property: opacity, transform;
  89. animation: slidin 0.5s 1.7s ease 1 forwards;
  90. }
  91. @keyframes slidin {
  92. 0% {
  93. opacity: 0;
  94. transform: translateX(-0.25rem);
  95. }
  96. 100% {
  97. opacity: 1;
  98. transform: translateX(0);
  99. }
  100. }
  101. @keyframes popin {
  102. 0% {
  103. transform: rotate(180deg) scale(0);
  104. opacity: 0;
  105. }
  106. 100% {
  107. transform: rotate(0deg) scale(1);
  108. opacity: 1;
  109. }
  110. }
  111. @keyframes fadein {
  112. 0% {
  113. opacity: 0;
  114. }
  115. 100% {
  116. opacity: 1;
  117. }
  118. }
  119. @keyframes tap {
  120. 0% {
  121. fill: transparent;
  122. stroke: #f44;
  123. transform: scale(1);
  124. }
  125. 25% {
  126. fill: #f44;
  127. stroke: none;
  128. transform: scale(0.85);
  129. }
  130. 100% {
  131. fill: #f44;
  132. stroke: none;
  133. transform: scale(1);
  134. }
  135. }
  136. /* reduced-motion animations */
  137. @media (prefers-reduced-motion) {
  138. #thumbslogo {
  139. opacity: 1;
  140. fill: #f44;
  141. stroke: none;
  142. transform: none;
  143. animation: none;
  144. }
  145. #thumbsripple {
  146. opacity: 0;
  147. transform: none;
  148. animation: none;
  149. }
  150. #plarrow {
  151. opacity: 0;
  152. transform: none;
  153. transition-property: opacity;
  154. animation: fadein 0.5s 0.5s ease 1 forwards;
  155. }
  156. }
  157. </style>
  158. <<<<<<< HEAD
  159. =======
  160. <script>
  161. export default {
  162. transition(to, from) {
  163. if (!from) return 'swoop-in'
  164. let routes = ['index', 'install', 'faq', 'donate', 'links']
  165. if (routes.indexOf(to.name) < 0) return 'swoop-out'
  166. if (routes.indexOf(from.name) < 0) return 'swoop-in'
  167. return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
  168. },
  169. data() {
  170. return {
  171. installLink: "/install",
  172. githubLink: "https://github.com/Anarios/return-youtube-dislike",
  173. discordLink: "https://discord.gg/mYnESY4Md5",
  174. sponsors: [
  175. {name: "Piepacker", link: "https://piepacker.com/" },
  176. {name: "nodetube", link: "https://github.com/mayeaux/nodetube"},
  177. {name: "trig404"},
  178. {name: "Peter33"}
  179. ]
  180. }
  181. }
  182. }
  183. </script>
  184. >>>>>>> edb19da7474c6dbfb5cc673785f2135c944c150a