Merge pull request #175 from PickleNik/main

Website fixes & improvements (!merge before deployment)
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2021-12-05 00:07:59 +03:00
commit 4ab6a8726e
9 files changed
+206 -53

No files matched your search

+106 -21
View File
@@ -1,8 +1,6 @@
<template>
<v-app dark>
<v-app-bar app flat class="topBar fly-in-from-top"
:class="$vuetify.breakpoint.mobile ? 'ma-4' : 'my-4 mx-auto'"
>
<v-app-bar app flat class="topBar fly-in-from-top my-4 mx-auto" >
<v-tabs centered center-active color="primary" router show-arrows>
<v-tab v-for="link in links" :key="link.path" :to="link.path">
{{ link.name }}
@@ -16,11 +14,9 @@
<section class="hidden-chrome-scrollbar" style="height: calc(100vh - 1rem); padding-top: 5rem; padding-bottom: 5rem; overflow-y: auto;">
<center
class="hidden-chrome-scrollbar mx-auto d-flex flex-column justify-center items-center"
style="width: 90vw; min-height: 100%; overflow-y: auto;">
<nuxt />
class="mx-auto d-flex flex-column justify-center items-center"
style="width: 90vw; min-height: 100%;">
<nuxt />
</center>
</section>
@@ -33,6 +29,29 @@ html, body {
overflow: hidden;
}
.title-text {
font-size: 3rem;
}
.topBar {
padding: 0 3rem;
width: fit-content !important;
background-color: #222 !important;
border-radius: 1rem !important;
border-radius: .75rem;
overflow: hidden;
}
@media (max-width: 768px) { /* mobile */
.title-text {
font-size: 2rem;
}
.topBar {
width: calc(100vw - 2rem) !important; /* (2rem = mx-4) */
padding: 0;
}
}
.mainAltButton {
margin: 0.25em;
}
@@ -41,15 +60,44 @@ html, body {
display: none;
}
.topBar {
background-color: #222 !important;
border-radius: 12px;
width: fit-content !important;
padding: 0 50px;
border-radius: 1rem !important;
/* animations and all that */
.swoop-in-enter-active,
.swoop-in-leave-active,
.swoop-out-enter-active,
.swoop-out-leave-active,
.swoop-left-enter-active,
.swoop-left-leave-active,
.swoop-right-enter-active,
.swoop-right-leave-active {
transition-duration: 0.1s;
transition-property: opacity, transform;
overflow: hidden;
}
.swoop-left-enter,
.swoop-right-leave-active {
opacity: 0;
transform: translate(1rem, 0);
}
.swoop-left-leave-active,
.swoop-right-enter {
opacity: 0;
transform: translate(-1rem, 0);
}
.swoop-in-enter,
.swoop-out-leave-active {
opacity: 0;
transform: scale(0.9);
}
.swoop-in-leave-active,
.swoop-out-enter {
opacity: 0;
transform: scale(1.1);
}
.fly-in-from-top {
opacity: 0;
transform: scale(0.8) translateY(-200%);
@@ -66,14 +114,51 @@ html, body {
transform: scale(1) translateY(0);
}
}
/*
@media (min-width: 1234px) {
.topBar {
width: 95%;
}
}
*/
/* reduced-motion animations */
@media (prefers-reduced-motion) {
.fly-in-from-top {
opacity: 1;
transform: none;
animation: none;
}
.swoop-in-enter-active,
.swoop-in-leave-active,
.swoop-out-enter-active,
.swoop-out-leave-active,
.swoop-left-enter-active,
.swoop-left-leave-active,
.swoop-right-enter-active,
.swoop-right-leave-active {
transition-duration: 0.05s;
transition-property: opacity;
}
.swoop-left-enter,
.swoop-right-leave-active {
opacity: 0;
transform: none;
}
.swoop-left-leave-active,
.swoop-right-enter {
opacity: 0;
transform: none;
}
.swoop-in-enter,
.swoop-out-leave-active {
opacity: 0;
transform: none;
}
.swoop-in-leave-active,
.swoop-out-enter {
opacity: 0;
transform: none;
}
}
</style>
<script>
+10 -4
View File
@@ -1,8 +1,8 @@
<template>
<div>
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Donate</h1>
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">You can support our efforts to keep the internet free with a donation!</p>
<h1 class="title-text" >Donate</h1>
<p style="color: #999; margin-top: .5rem; margin-bottom: 1.5rem;">You can support our efforts to keep the internet free with a donation!</p>
<v-btn class="mainAltButton" :href="patreonLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-patreon</v-icon>
Patreon
@@ -17,10 +17,16 @@
<script>
export default {
transition(to, from) {
if (!from) return 'swoop-in'
let routes = ['index', 'install', 'faq', 'donate', 'links']
if (routes.indexOf(to.name) < 0) return 'swoop-out'
if (routes.indexOf(from.name) < 0) return 'swoop-in'
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
},
data: () => ({
patreonLink: "https://www.patreon.com/returnyoutubedislike",
yoomoneyLink: "/pay/yoomoney"
}),
})
}
</script>
+19 -8
View File
@@ -1,23 +1,34 @@
<template>
<div>
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Frequently Asked Questions</h1>
<p style="color: #999; margin-top: .5rem; margin-bottom: 2rem;">Still have questions? Feel free to join our Discord!</p>
<h1 class="title-text" >Frequently Asked Questions</h1>
<p style="color: #999; margin-top: .5rem; margin-bottom: 1.5rem;">Still have questions? Feel free to join our Discord!</p>
<v-expansion-panels focusable>
<v-expansion-panel v-for="(item, i) in items" :key="i" style="width: 50vw; min-width: 300px;">
<v-expansion-panel-header v-text="item.question">Loading</v-expansion-panel-header>
<v-expansion-panel-content v-html="item.answer" style="text-align: left; padding: 24px;">Loading</v-expansion-panel-content>
<v-expansion-panels class="col-xs-12 col-sm-11 col-md-9 col-lg-7">
<v-expansion-panel v-for="(item, i) in items" :key="i" >
<v-expansion-panel-header>
{{ item.question }}
</v-expansion-panel-header>
<v-expansion-panel-content class="text-left">
<hr style="border-color: #444;">
<br>
{{ item.answer }}
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
</div>
</template>
<script>
export default {
transition(to, from) {
if (!from) return 'swoop-in'
let routes = ['index', 'install', 'faq', 'donate', 'links']
if (routes.indexOf(to.name) < 0) return 'swoop-out'
if (routes.indexOf(from.name) < 0) return 'swoop-in'
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
},
data: () => ({
items: [
{
+39 -10
View File
@@ -1,14 +1,14 @@
<template>
<div>
<svg id="thumbslogo" width="150" height="150" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M139.113,65.266l-57.339,-0c-5.288,-0 -9.812,3.185 -11.723,7.772l-19.241,44.916c-0.573,1.466 -0.892,2.995 -0.892,4.651l0,12.742c0,7.009 5.734,12.743 12.742,12.743l40.202,-0l-6.053,29.115l-0.191,2.039c0,2.612 1.083,5.033 2.803,6.754l6.754,6.689l41.985,-41.985c2.294,-2.294 3.695,-5.479 3.695,-8.984l0,-63.71c0,-7.009 -5.734,-12.742 -12.742,-12.742Zm25.485,-0l-0,76.452l25.484,0l-0,-76.452l-25.484,-0Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/><g id="Thumb-Down--m.io-" serif:id="Thumb Down (m.io)"></g><defs><linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(152.906,153.295,-153.295,152.906,43.6442,45.958)"><stop offset="0" style="stop-color:#ff4444;stop-opacity:1"/><stop offset="0.56" style="stop-color:#440000;stop-opacity:1"/><stop offset="1" style="stop-color:#000;stop-opacity:1"/></linearGradient></defs></svg>
<svg id="thumbslogo" class="mb-4" width="150" height="150" viewBox="0 0 24 24"><path d="m15 3h-9c-0.83 0-1.54 0.5-1.84 1.22l-3.02 7.05c-0.09 0.23-0.14 0.47-0.14 0.73v2a2 2 0 0 0 2 2h6.31l-0.95 4.57a1.49 1.49 0 0 0 0.41 1.37l1.06 1.06 6.58-6.59c0.37-0.36 0.59-0.86 0.59-1.41v-10a2 2 0 0 0-2-2zm4 12h4v-12h-4z" /><path d="m7.47 12.2 4.76-2.7-4.76-2.71z" fill="#fff" stroke="none"/></svg>
<h1 style="font-size: 3rem;" >Return YouTube Dislike</h1>
<h1 class="title-text" >Return YouTube Dislike</h1>
<div class="mb-4" style="color: #999">
<p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
</div>
<v-btn :to="installLink" color="primary lighten-1 px-6" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em;">
<v-btn :to="installLink" color="primary px-6" style="font-size: 1.5em; padding: 1em; margin-bottom: 0.5em;">
<v-icon large class="mr-6">mdi-tray-arrow-down</v-icon>
Install
</v-btn>
@@ -31,31 +31,60 @@
<style scoped>
#thumbslogo {
opacity: 0;
fill: transparent;
stroke: #f44;
transition-property: opacity, transform;
transform: scale(0) rotate(180deg);
animation: popin 1s 1s ease-in-out 1 forwards, thumbsflip 2s 3s ease-in-out infinite alternate;
animation: popin 1s 1s ease-in-out 1 forwards, tap .3s 2.5s ease-in-out 1 forwards;
}
@keyframes popin {
0% {
transform: rotate(180deg) scale(0.5);
transform: rotate(180deg) scale(0);
opacity: 0;
} 100% {
transform: rotate(0deg) scale(1);
opacity: 1;
}
}
@keyframes thumbsflip {
@keyframes tap {
0% {
transform: rotate(0deg) scale(1);
} 50% {
transform: rotate(0) scale(1);
fill: transparent;
stroke: #f44;
transform: scale(1);
} 25% {
fill: #f44;
stroke: none;
transform: scale(.8);
} 100% {
transform: rotate(180deg) scale(.9);
fill: #f44;
stroke: none;
transform: scale(1);
}
}
/* reduced-motion animations */
@media (prefers-reduced-motion) {
#thumbslogo {
opacity: 1;
fill: #f44;
stroke: none;
transform: none;
animation: none;
}
}
</style>
<script>
export default {
transition(to, from) {
if (!from) return 'swoop-in'
let routes = ['index', 'install', 'faq', 'donate', 'links']
if (routes.indexOf(to.name) < 0) return 'swoop-out'
if (routes.indexOf(from.name) < 0) return 'swoop-in'
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
},
data() {
return {
installLink: "/install",
+13 -6
View File
@@ -1,34 +1,34 @@
<template>
<div>
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Select Your Platform</h1>
<h1 class="title-text" >Select Your Platform</h1>
<div style="color: #999;">
<p style=" margin-top: .5rem; margin-bottom: 0;"> This is an <b>ALPHA version!</b> It may be slow. It may be buggy.</p>
<p style="margin-bottom: 1rem;">Available for Firefox and all Chromium browsers (Chrome/Edge/Opera/Brave).</p>
</div>
<v-btn class="mainAltButton" :href="firefoxLink" target="_blank">
<v-btn class="mainAltButton mb-2" :href="firefoxLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-firefox</v-icon>
Firefox
</v-btn>
<v-btn class="mainAltButton" :href="chromeLink" target="_blank">
<v-btn class="mainAltButton mb-2" :href="chromeLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-google-chrome</v-icon>
Chrome
</v-btn>
<v-btn class="mainAltButton" :href="chromeLink" target="_blank">
<v-btn class="mainAltButton mb-2" :href="chromeLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-microsoft-edge</v-icon>
Edge
</v-btn>
<v-btn class="mainAltButton" :href="chromeLink" target="_blank">
<v-btn class="mainAltButton mb-2" :href="chromeLink" target="_blank">
<v-icon style="margin-right: 0.5em;">mdi-opera</v-icon>
Opera
</v-btn>
<v-btn class="mainAltButton" :href="chromeLink" target="_blank">
<v-btn class="mainAltButton mb-2" :href="chromeLink" target="_blank">
<v-img style="margin-right: 1rem;" src="ui/brave-mono.svg" height="20" width="20" />
Brave
</v-btn>
@@ -58,6 +58,13 @@
<script>
export default {
transition(to, from) {
if (!from) return 'swoop-in'
let routes = ['index', 'install', 'faq', 'donate', 'links']
if (routes.indexOf(to.name) < 0) return 'swoop-out'
if (routes.indexOf(from.name) < 0) return 'swoop-in'
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
},
data() {
return {
chromeLink: "https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/",
+9 -2
View File
@@ -1,10 +1,10 @@
<template>
<div style="height: 100%">
<h1 :style="$vuetify.breakpoint.xs ? 'font-size: 2rem;' : 'font-size: 3rem;'" >Project Links</h1>
<h1 class="title-text" >Project Links</h1>
<div style="color: #999">
<p style="margin-top: .5rem; margin-bottom: .5em;">Links to the project and it's developers</p>
<p style="margin-top: .5rem; margin-bottom: 1rem;">Links to the project and it's developers</p>
</div>
<v-btn class="mainAltButton" :href="githubLink" target="_blank">
@@ -38,6 +38,13 @@
<script>
export default {
transition(to, from) {
if (!from) return 'swoop-in'
let routes = ['index', 'install', 'faq', 'donate', 'links']
if (routes.indexOf(to.name) < 0) return 'swoop-out'
if (routes.indexOf(from.name) < 0) return 'swoop-in'
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
},
data() {
return {
githubLink: "https://github.com/Anarios/return-youtube-dislike",
+9 -1
View File
@@ -2,4 +2,12 @@
<div>
<iframe src="https://yoomoney.ru/quickpay/shop-widget?writer=seller&amp;targets=For%20returnyoutubedislike.com&amp;targets-hint=&amp;default-sum=&amp;button-text=13&amp;hint=&amp;successURL=&amp;quickpay=shop&amp;account=410015901550027&amp;" allowtransparency="true" scrolling="no" width="423" height="222" frameborder="0" />
</div>
</template>
</template>
<script>
export default {
transition(to, from) {
return to.name == 'yoomoney' ? 'swoop-in' : 'swoop-out'
},
}
</script>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

+1 -1
View File
@@ -1 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#fff"><title>Brave</title><path d="M15.68 0l2.096 2.38s1.84-.512 2.709.358c.868.87 1.584 1.638 1.584 1.638l-.562 1.381.715 2.047s-2.104 7.98-2.35 8.955c-.486 1.919-.818 2.66-2.198 3.633-1.38.972-3.884 2.66-4.293 2.916-.409.256-.92.692-1.38.692-.46 0-.97-.436-1.38-.692a185.796 185.796 0 01-4.293-2.916c-1.38-.973-1.712-1.714-2.197-3.633-.247-.975-2.351-8.955-2.351-8.955l.715-2.047-.562-1.381s.716-.768 1.585-1.638c.868-.87 2.708-.358 2.708-.358L8.321 0h7.36zm-3.679 14.936c-.14 0-1.038.317-1.758.69-.72.373-1.242.637-1.409.742-.167.104-.065.301.087.409.152.107 2.194 1.69 2.393 1.866.198.175.489.464.687.464.198 0 .49-.29.688-.464.198-.175 2.24-1.759 2.392-1.866.152-.108.254-.305.087-.41-.167-.104-.689-.368-1.41-.741-.72-.373-1.617-.69-1.757-.69zm0-11.278s-.409.001-1.022.206-1.278.46-1.584.46c-.307 0-2.581-.434-2.581-.434S4.119 7.152 4.119 7.849c0 .697.339.881.68 1.243l2.02 2.149c.192.203.59.511.356 1.066-.235.555-.58 1.26-.196 1.977.384.716 1.042 1.194 1.464 1.115.421-.08 1.412-.598 1.776-.834.364-.237 1.518-1.19 1.518-1.554 0-.365-1.193-1.02-1.413-1.168-.22-.15-1.226-.725-1.247-.95-.02-.227-.012-.293.284-.851.297-.559.831-1.304.742-1.8-.089-.495-.95-.753-1.565-.986-.615-.232-1.799-.671-1.947-.74-.148-.068-.11-.133.339-.175.448-.043 1.719-.212 2.292-.052.573.16 1.552.403 1.632.532.079.13.149.134.067.579-.081.445-.5 2.581-.541 2.96-.04.38-.12.63.288.724.409.094 1.097.256 1.333.256s.924-.162 1.333-.256c.408-.093.329-.344.288-.723-.04-.38-.46-2.516-.541-2.961-.082-.445-.012-.45.067-.579.08-.129 1.059-.372 1.632-.532.573-.16 1.845.009 2.292.052.449.042.487.107.339.175-.148.069-1.332.508-1.947.74-.615.233-1.476.49-1.565.986-.09.496.445 1.241.742 1.8.297.558.304.624.284.85-.02.226-1.026.802-1.247.95-.22.15-1.413.804-1.413 1.169 0 .364 1.154 1.317 1.518 1.554.364.236 1.355.755 1.776.834.422.079 1.08-.4 1.464-1.115.384-.716.039-1.422-.195-1.977-.235-.555.163-.863.355-1.066l2.02-2.149c.341-.362.68-.546.68-1.243 0-.697-2.695-3.96-2.695-3.96s-2.274.436-2.58.436c-.307 0-.972-.256-1.585-.461-.613-.205-1.022-.206-1.022-.206z"/></svg>
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#fff"><path d="m15.68 0 2.1 2.38s1.84-.51 2.7.36c.87.87 1.59 1.64 1.59 1.64l-.56 1.38.71 2.04-2.35 8.96c-.48 1.92-.82 2.66-2.2 3.63-1.38.97-3.88 2.66-4.29 2.92-.4.25-.92.69-1.38.69-.46 0-.97-.44-1.38-.7a185.8 185.8 0 0 1-4.3-2.9c-1.37-.98-1.7-1.72-2.19-3.64L1.78 7.8l.71-2.04-.56-1.38s.72-.77 1.59-1.64c.87-.87 2.7-.36 2.7-.36L8.33 0h7.36zM12 14.94c-.14 0-1.04.31-1.76.69-.72.37-1.24.63-1.4.74-.17.1-.07.3.08.4.15.11 2.2 1.7 2.4 1.87.2.18.48.47.68.47.2 0 .5-.3.69-.47.2-.17 2.24-1.76 2.4-1.86.14-.11.24-.3.08-.41l-1.41-.74a8.18 8.18 0 0 0-1.76-.7zm0-11.28s-.4 0-1.02.2-1.28.46-1.59.46c-.3 0-2.58-.43-2.58-.43s-2.7 3.26-2.7 3.96c0 .7.35.88.69 1.24l2.02 2.15c.2.2.59.51.35 1.07-.23.55-.58 1.26-.2 1.97.4.72 1.05 1.2 1.47 1.12.42-.08 1.42-.6 1.78-.83.36-.24 1.52-1.2 1.52-1.56 0-.36-1.2-1.02-1.42-1.17-.22-.15-1.22-.72-1.24-.95-.02-.22-.02-.29.28-.85.3-.56.83-1.3.74-1.8-.09-.5-.95-.75-1.56-.98-.62-.24-1.8-.67-1.95-.74-.15-.07-.1-.14.34-.18.45-.04 1.72-.21 2.3-.05.57.16 1.54.4 1.62.53.08.13.15.14.07.58-.08.45-.5 2.58-.54 2.96-.04.38-.12.63.29.72.4.1 1.1.26 1.33.26s.93-.16 1.33-.26c.41-.09.33-.34.3-.72-.05-.38-.47-2.51-.55-2.96-.08-.45-.01-.45.07-.58.08-.13 1.06-.37 1.63-.53.57-.16 1.85 0 2.3.05.44.04.48.1.33.18-.15.07-1.33.5-1.95.74-.61.23-1.47.49-1.56.98-.1.5.44 1.24.74 1.8s.3.63.29.85c-.02.23-1.03.8-1.25.95-.22.15-1.41.8-1.41 1.17 0 .37 1.15 1.32 1.51 1.56.37.23 1.36.75 1.78.83.42.08 1.08-.4 1.46-1.12.39-.71.04-1.42-.2-1.97-.23-.56.17-.87.36-1.07L19.2 9.1c.34-.36.68-.54.68-1.24s-2.7-3.96-2.7-3.96-2.27.43-2.57.43c-.3 0-.97-.25-1.59-.46-.61-.2-1.02-.2-1.02-.2z"/></svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB