mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
89 lines
4.4 KiB
Diff
89 lines
4.4 KiB
Diff
From e5080dcd02814e2859030c549f2eefebbabef978 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=89milien=20Devos?= <github@emiliendevos.be>
|
|
Date: Tue, 16 Aug 2022 06:59:35 +0000
|
|
Subject: [PATCH] donate page
|
|
|
|
---
|
|
src/invidious/routes/misc.cr | 5 +++
|
|
src/invidious/routing.cr | 1 +
|
|
src/invidious/views/components/feed_menu.ecr | 3 ++
|
|
src/invidious/views/donate.ecr | 36 ++++++++++++++++++++
|
|
4 files changed, 45 insertions(+)
|
|
create mode 100644 src/invidious/views/donate.ecr
|
|
|
|
diff --git a/src/invidious/routes/misc.cr b/src/invidious/routes/misc.cr
|
|
index d6bd9571..7abbc360 100644
|
|
--- a/src/invidious/routes/misc.cr
|
|
+++ b/src/invidious/routes/misc.cr
|
|
@@ -33,6 +33,11 @@ module Invidious::Routes::Misc
|
|
templated "privacy"
|
|
end
|
|
|
|
+ def self.donate(env)
|
|
+ locale = env.get("preferences").as(Preferences).locale
|
|
+ templated "donate"
|
|
+ end
|
|
+
|
|
def self.licenses(env)
|
|
locale = env.get("preferences").as(Preferences).locale
|
|
rendered "licenses"
|
|
diff --git a/src/invidious/routing.cr b/src/invidious/routing.cr
|
|
index f409f13c..852fb7a8 100644
|
|
--- a/src/invidious/routing.cr
|
|
+++ b/src/invidious/routing.cr
|
|
@@ -18,6 +18,7 @@ module Invidious::Routing
|
|
def register_all
|
|
{% unless flag?(:api_only) %}
|
|
get "/", Routes::Misc, :home
|
|
+ get "/donate", Routes::Misc, :donate
|
|
get "/privacy", Routes::Misc, :privacy
|
|
get "/licenses", Routes::Misc, :licenses
|
|
get "/redirect", Routes::Misc, :cross_instance_redirect
|
|
diff --git a/src/invidious/views/components/feed_menu.ecr b/src/invidious/views/components/feed_menu.ecr
|
|
index 3dbeaf37..d84d03d0 100644
|
|
--- a/src/invidious/views/components/feed_menu.ecr
|
|
+++ b/src/invidious/views/components/feed_menu.ecr
|
|
@@ -1,4 +1,7 @@
|
|
<div class="feed-menu">
|
|
+ <a href="/donate" class="feed-menu-item pure-menu-heading">
|
|
+ <%= translate(locale, "footer_donate_page") %>
|
|
+ </a>
|
|
<% feed_menu = env.get("preferences").as(Preferences).feed_menu.dup %>
|
|
<% if !env.get?("user") %>
|
|
<% feed_menu.reject! {|item| {"Subscriptions", "Playlists"}.includes? item} %>
|
|
diff --git a/src/invidious/views/donate.ecr b/src/invidious/views/donate.ecr
|
|
new file mode 100644
|
|
index 00000000..0c7deecc
|
|
--- /dev/null
|
|
+++ b/src/invidious/views/donate.ecr
|
|
@@ -0,0 +1,26 @@
|
|
+<% content_for "header" do %>
|
|
+<title>Donate - Invidious</title>
|
|
+<% end %>
|
|
+
|
|
+<div class="h-box">
|
|
+ <h2>Donate to NerdVPN.de</h2>
|
|
+ <h3>Why donating?</h3>
|
|
+ <p>In order to provide the best Invidious experience possible, I have rented a very powerful dedicated server with 16 cores, 48 GiB RAM and a 2 GBit/s unmetered network connection. On top of that are the multiple backends required to bypass blockage from YouTube. I also use 3 different, fully e2e-encrypted backup locations with live replication and a zero-dataloss backup strategy. All of this has a high cost.</p>
|
|
+ <p>All donations will go directly into paying my monthly infrastructure costs (server, domain, backends, backups).</p>
|
|
+ <p>Should the donations at any point fully cover the costs, I will invest the remaining directly into improving my infrastructure and thus improving the user experience.</p>
|
|
+ <p>Every little bit helps. Thank you very much for considering to donate!</p>
|
|
+ <h3>Payment methods</h3>
|
|
+ <h4>PayPal, credit/debit card and bank transfer</h4>
|
|
+ <ul>
|
|
+ <li>Ko-fi: <a href="https://ko-fi.com/weidenwiesel">https://ko-fi.com/weidenwiesel</a></li>
|
|
+ </ul>
|
|
+ <h4>Cryptocurrency</h4>
|
|
+ <p>I currently don't support donations via cryptocurrency, but you can donate to the team behind Invidious directly, if you'd like. I'm sure they'd love the support.</p>
|
|
+ <ul>
|
|
+ <li>Bitcoin (BTC): <a href="bitcoin:bc1qfhe7rq3lqzuayzjxzyt9waz9ytrs09kla3tsgr">bc1qfhe7rq3lqzuayzjxzyt9waz9ytrs09kla3tsgr</a></li>
|
|
+ <li>Monero (XMR): <a href="monero:41nMCtek197boJtiUvGnTFYMatrLEpnpkQDmUECqx5Es2uX3sTKKWVhSL76suXsG3LXqkEJBrCZBgPTwJrDp1FrZJfycGPR">41nMCtek197boJtiUvGnTFYMatrLEpnpkQDmUECqx5Es2uX3sTKKWVhSL76suXsG3LXqkEJBrCZBgPTwJrDp1FrZJfycGPR</a></li>
|
|
+ <li>Ethereum (ETH): <a href="ethereum:0xD1F7E3Bfb19Ee5a52baED396Ad34717aF18d995B">0xD1F7E3Bfb19Ee5a52baED396Ad34717aF18d995B</a></li>
|
|
+ <li>Litecoin (LTC): <a href="litecoin:ltc1q8787aq2xrseq5yx52axx8c4fqks88zj5vr0zx9">ltc1q8787aq2xrseq5yx52axx8c4fqks88zj5vr0zx9</a><//li>
|
|
+ </ul>
|
|
+ <p>If you have any questions, feel free to contact me via matrix at: <i>@weidenwiesel:nerdvpn.de</i></p>
|
|
+</div>
|
|
\ No newline at end of file
|
|
--
|
|
2.26.1
|