From a7468f46d301ee74eb3a5564536fa42e542c978c Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Tue, 24 Aug 2021 09:57:57 +0200 Subject: [PATCH] Aks users for patreon support on home page --- res/include/style/layout.css | 1 + res/template/home.html | 9 +++++--- svelte/src/home_page/HomePage.svelte | 31 ++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/res/include/style/layout.css b/res/include/style/layout.css index 3905388..0314d46 100644 --- a/res/include/style/layout.css +++ b/res/include/style/layout.css @@ -63,6 +63,7 @@ body, .checkers { background-color: #111111; /* Fallback */ background-color: var(--layer_1_color); background-repeat: repeat; + background-attachment: fixed; background-blend-mode: luminosity; } diff --git a/res/template/home.html b/res/template/home.html index 7570c68..2cb6e62 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -70,9 +70,12 @@ {{ template `modal.css` }} - - - + + + {{template "page_top" .}} diff --git a/svelte/src/home_page/HomePage.svelte b/svelte/src/home_page/HomePage.svelte index 476490f..75b6975 100644 --- a/svelte/src/home_page/HomePage.svelte +++ b/svelte/src/home_page/HomePage.svelte @@ -512,6 +512,37 @@ const keydown = (e) => { {list.link} {/each} + + {#if window.user_subscription.name === ""} +
+
+ 4 + Support me on Patreon! +
+
+
+

+ Pixeldrain is struggling to get by financially. Because anyone + can upload anything it's hard to find reputable advertisers who + want to advertise on pixeldrain. Every month the ad revenue just + barely covers the bandwidth costs. If this continues I will have + to resort to adding more shady ads, or reducing the file size + and bandwidth limits. That's not something I would like to do. +

+

+ Pro costs only €20 per year or €2 per month. You will get + some nice benefits and more features are on the way. You can + help with making pixeldrain the easiest and fastest way to share + files online! +

+
+
+ + arrow_downward + Check out Pro + arrow_downward + + {/if}