index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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>
  45. </template>
  46. <script>
  47. export default {
  48. transition(to, from) {
  49. if (!from) return "swoop-in";
  50. let routes = ["index", "install", "faq", "donate", "links"];
  51. if (routes.indexOf(to.name) < 0) return "swoop-out";
  52. if (routes.indexOf(from.name) < 0) return "swoop-in";
  53. return routes.indexOf(to.name) > routes.indexOf(from.name)
  54. ? "swoop-left"
  55. : "swoop-right";
  56. },
  57. data() {
  58. return {
  59. installLink: "/install",
  60. githubLink: "https://github.com/Anarios/return-youtube-dislike",
  61. discordLink: "https://discord.gg/mYnESY4Md5",
  62. };
  63. },
  64. };
  65. </script>
  66. <style scoped>
  67. #thumbslogo {
  68. opacity: 0;
  69. fill: transparent;
  70. stroke: #f44;
  71. transition-property: opacity, transform;
  72. transform: scale(0) rotate(180deg);
  73. animation: popin 1s 0.3s ease-in-out 1 forwards,
  74. tap 0.3s 1.7s ease-in-out 1 forwards;
  75. }
  76. #plarrow {
  77. opacity: 0;
  78. transform: translateX(-0.25rem);
  79. transition-property: opacity, transform;
  80. animation: slidin 0.5s 1.7s ease 1 forwards;
  81. }
  82. @keyframes slidin {
  83. 0% {
  84. opacity: 0;
  85. transform: translateX(-0.25rem);
  86. }
  87. 100% {
  88. opacity: 1;
  89. transform: translateX(0);
  90. }
  91. }
  92. @keyframes popin {
  93. 0% {
  94. transform: rotate(180deg) scale(0);
  95. opacity: 0;
  96. }
  97. 100% {
  98. transform: rotate(0deg) scale(1);
  99. opacity: 1;
  100. }
  101. }
  102. @keyframes fadein {
  103. 0% {
  104. opacity: 0;
  105. }
  106. 100% {
  107. opacity: 1;
  108. }
  109. }
  110. @keyframes tap {
  111. 0% {
  112. fill: transparent;
  113. stroke: #f44;
  114. transform: scale(1);
  115. }
  116. 25% {
  117. fill: #f44;
  118. stroke: none;
  119. transform: scale(0.85);
  120. }
  121. 100% {
  122. fill: #f44;
  123. stroke: none;
  124. transform: scale(1);
  125. }
  126. }
  127. /* reduced-motion animations */
  128. @media (prefers-reduced-motion) {
  129. #thumbslogo {
  130. opacity: 1;
  131. fill: #f44;
  132. stroke: none;
  133. transform: none;
  134. animation: none;
  135. }
  136. #thumbsripple {
  137. opacity: 0;
  138. transform: none;
  139. animation: none;
  140. }
  141. #plarrow {
  142. opacity: 0;
  143. transform: none;
  144. transition-property: opacity;
  145. animation: fadein 0.5s 0.5s ease 1 forwards;
  146. }
  147. }
  148. </style>