From 490844c5cf2785532f8de4e19aab226d785ac67a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 5 Mar 2022 14:24:45 +0100 Subject: [PATCH] added a support section to the website --- main/.htaccess | 2 ++ main/_data/support.json | 25 +++++++++++++++++++++++++ main/_includes/nav/indexnav.html | 3 ++- main/_includes/support.html | 31 +++++++++++++++++++++++++++++++ main/index.html | 21 +++------------------ main/style/style.css | 5 +++++ 6 files changed, 68 insertions(+), 19 deletions(-) create mode 100644 main/_data/support.json create mode 100644 main/_includes/support.html diff --git a/main/.htaccess b/main/.htaccess index 46bc751..92813c3 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -21,6 +21,8 @@ RewriteRule ^foefrenzy/?$ "https://store.steampowered.com/app/1194170/" [R=301,L # anchor redirects RewriteRule ^projects/?$ "https://ellpeck.de/#projects" [R=301,L,NE] RewriteRule ^blog/?$ "https://ellpeck.de/#blog" [R=301,L,NE] +RewriteRule ^support/?$ "https://ellpeck.de/#support" [R=301,L,NE] +RewriteRule ^💸/?$ "https://ellpeck.de/#support" [R=301,L,NE] # actually additions redirects RewriteRule ^actaddchangelog/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/main/update/changelog.md" [R=301,L] diff --git a/main/_data/support.json b/main/_data/support.json new file mode 100644 index 0000000..121e275 --- /dev/null +++ b/main/_data/support.json @@ -0,0 +1,25 @@ +[{ + "name": "☕ Buy me a Coffee", + "text": "Ko-fi is a great site that allows you to send me just enough money to buy a coffee. And I love those. You can also use it to send monthly payments, but the other sites in this list are usually better for that.", + "links": [{ + "name": "Take me there", + "link": "https://ko-fi.com/ellpeck" + }] +}, { + "name": "⭐ Become a Patron", + "text": "Patreon allows you to support me on a monthly basis with an amount of money of your choosing. You can also get fun rewards, like player accessories to impress your friends when using my Minecraft mods!", + "links": [{ + "name": "Take me there", + "link": "https://patreon.com/Ellpeck" + }] +}, { + "name": "💻 Sponsor on GitHub", + "text": "GitHub Sponsors is basically Patreon for programmers, and it provides a monthly support option, but it also allows you to make one-time payments. Here, you can get the same rewards as you get on Patreon.", + "links": [{ + "name": "Sponsor monthly", + "link": "https://github.com/sponsors/Ellpeck?frequency=recurring" + }, { + "name": "Sponsor once", + "link": "https://github.com/sponsors/Ellpeck?frequency=one-time" + }] +}] \ No newline at end of file diff --git a/main/_includes/nav/indexnav.html b/main/_includes/nav/indexnav.html index 3488862..74728ba 100644 --- a/main/_includes/nav/indexnav.html +++ b/main/_includes/nav/indexnav.html @@ -1,4 +1,5 @@ 💻 Projects 🔗 Social 💬 About -📔 Blog \ No newline at end of file +📔 Blog +💸 Support \ No newline at end of file diff --git a/main/_includes/support.html b/main/_includes/support.html new file mode 100644 index 0000000..5aec309 --- /dev/null +++ b/main/_includes/support.html @@ -0,0 +1,31 @@ + +
+

💸 Support

+

+ Most of the projects you know me from, I work on in my free time, but by supporting me, you help out with all of my projects equally. As I'm a student, a bit of extra cash is always helpful for me, and it feels especially good when it comes from something that I enjoy doing a lot. +
Please only support me if you have money to spare. Always take care of your own finances first. +

+
+ {% for item in site.data.support %} +
+
+

{{ item.name }}

+

{{ item.text }}

+ + {%- for link in item.links -%} + {{ link.name }} + {%- endfor -%} +
+
+ {% endfor %} +
+ +
\ No newline at end of file diff --git a/main/index.html b/main/index.html index 5b5b8de..68e1af3 100644 --- a/main/index.html +++ b/main/index.html @@ -10,28 +10,12 @@ nav: nav/indexnav.html
- A cover photo of Ellpeck + A cover photo of Ellpeck

Welcome to my little website! I'm Ellpeck, a student and programmer from Germany. I do a lot of stuff, actually. My life is pretty busy.

- - - -
@@ -40,4 +24,5 @@ nav: nav/indexnav.html {% include projects.html %} {% include social.html %} {% include about.html %} -{% include blog.html %} \ No newline at end of file +{% include blog.html %} +{% include support.html %} \ No newline at end of file diff --git a/main/style/style.css b/main/style/style.css index 2755fce..a4da6eb 100644 --- a/main/style/style.css +++ b/main/style/style.css @@ -234,6 +234,11 @@ pre.highlight { padding: 15px; } +.support-entry { + margin-top: 20px; +} + + @media(max-width: 1199px) { .blog-title { margin-top: 15px;