index.vue 3.6 KB

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