index.vue 4.2 KB

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