From 3c46bd7b2f61fec1f5719d73d88c3553a6862d52 Mon Sep 17 00:00:00 2001
From: "Luke T. Shumaker"
Date: Sun, 14 Apr 2024 10:38:36 -0600
Subject: wip
---
.gitignore | 6 ++-
Makefile | 39 +++++++++++++++-
cmd/generate/imworkingon.html.tmpl | 89 +-----------------------------------
cmd/generate/main.go | 2 +-
public/donate.css | 62 -------------------------
public/donate.html | 51 ---------------------
public/imworkingon/imworkingon.scss | 77 +++++++++++++++++++++++++++++++
public/index.html | 53 +++++++++++++++------
public/sponsor/index.html | 77 +++++++++++++++++++++++++++++++
public/sponsor/kofi-icon.png | Bin 0 -> 7958 bytes
public/sponsor/liberapay-icon.svg | 1 +
public/sponsor/patreon-icon.svg | 3 ++
public/sponsor/sponsor.css | 64 ++++++++++++++++++++++++++
13 files changed, 307 insertions(+), 217 deletions(-)
delete mode 100644 public/donate.css
delete mode 100644 public/donate.html
create mode 100644 public/imworkingon/imworkingon.scss
create mode 100644 public/sponsor/index.html
create mode 100644 public/sponsor/kofi-icon.png
create mode 100644 public/sponsor/liberapay-icon.svg
create mode 100644 public/sponsor/patreon-icon.svg
create mode 100644 public/sponsor/sponsor.css
diff --git a/.gitignore b/.gitignore
index 8c6db60..b8aeca5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,5 @@
-/public/imworkingon.html
+/.sass-cache/
+
+/public/imworkingon/index.html
+/public/imworkingon/imworkingon.css
+/public/imworkingon/imworkingon.css.map
diff --git a/Makefile b/Makefile
index 0f15fd5..82d7d1b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,39 @@
-public/imworkingon.html: FORCE
- go run ./cmd/generate
+build/files = public/imworkingon/index.html
+build/files += public/imworkingon/imworkingon.css
+
+generate/files = public/sponsor/liberapay-icon.svg
+generate/files += public/sponsor/kofi-icon.png
+generate/files += public/sponsor/patreon-icon.svg
+
+################################################################################
+
+all: build
+.PHONY: all
.PHONY: FORCE
+.DELETE_ON_ERROR:
+.NOTINTERMEDIATE:
+
+build: generate $(build/files)
+clean:
+ rm -f -- $(build/files)
+.PHONY: build clean
+
+generate: $(generate/files)
+generate-clean:
+ rm -f -- $(generate/files)
+.PHONY: generate generate-clean
+
+################################################################################
+
+public/imworkingon/index.html: FORCE
+ go run ./cmd/generate
+public/imworkingon/imworkingon.css: public/imworkingon/imworkingon.scss
+ scss $< $@
+
+public/sponsor/liberapay-icon.svg:
+ curl -L https://liberapay.com/assets/liberapay/icon-v2_black.svg >$@
+public/sponsor/kofi-icon.png:
+ curl -L https://storage.ko-fi.com/cdn/cup-border.png >$@
+public/sponsor/patreon-icon.svg:
+ curl -L https://theme.zdassets.com/theme_assets/421814/642051a1900f62924e9512621d2f1838988e9245.svg >$@
diff --git a/cmd/generate/imworkingon.html.tmpl b/cmd/generate/imworkingon.html.tmpl
index 1350e73..6b5016a 100644
--- a/cmd/generate/imworkingon.html.tmpl
+++ b/cmd/generate/imworkingon.html.tmpl
@@ -3,93 +3,8 @@
Luke is working on
-
-
+
+
-
+
@@ -69,8 +86,8 @@
Things to see here:
-imworkingon
— A log of the things I'm working on.
- donate
— I greatly appreciate any help supporting that work!
+imworkingon
— A listing of the things I'm working on.
+ sponsor
— I greatly appreciate any help supporting that work!
blog
— My web-log ("blog").
git
— My git repositories; software I develop. It includes some mirrors of software I work on hosted elsewhere, but not all of my software is here.
@@ -99,7 +116,7 @@
Not-so-social web:
+Sponsor web:
+
My phone number is .
Please only use it to contact me regarding server issues, including the mav.lukeshu.com mail server.
diff --git a/public/sponsor/index.html b/public/sponsor/index.html
new file mode 100644
index 0000000..d8f1ef0
--- /dev/null
+++ b/public/sponsor/index.html
@@ -0,0 +1,77 @@
+
+
+
+
+ Sponsor — Luke T. Shumaker
+
+
+
+
+
+
+
+Sponsor Luke T. Shumaker
+
+Hi, I'm Luke. I'm working on improving various aspects of the
+ GNU/Linux-libre ecosystem.
+
+
+
+Please consider sponsoring my work, so I can continue putting so
+much time and effort in to these things. Otherwise, I'm going to have
+to cut back my activities by at least 50% in the next year.
+
+There are several ways you can sponsor me:
+
+
+
+It is my understanding that donating with Patreon or Ko-fi requires
+Javascript code that does not respect your computing freedom, while
+Liberapay makes no such assault on your freedom. If you'd like to
+support me, but can't use or don't want to use any of the above
+platforms, reach out to me at <lukeshu@lukeshu.com >.
+
+
+
+The content of this page is Copyright © Luke Shumaker.
+This page is licensed under the CC BY-SA-3.0 license.
+
+
+
diff --git a/public/sponsor/kofi-icon.png b/public/sponsor/kofi-icon.png
new file mode 100644
index 0000000..2b6d55e
Binary files /dev/null and b/public/sponsor/kofi-icon.png differ
diff --git a/public/sponsor/liberapay-icon.svg b/public/sponsor/liberapay-icon.svg
new file mode 100644
index 0000000..2a9ea21
--- /dev/null
+++ b/public/sponsor/liberapay-icon.svg
@@ -0,0 +1 @@
+
diff --git a/public/sponsor/patreon-icon.svg b/public/sponsor/patreon-icon.svg
new file mode 100644
index 0000000..dd8717c
--- /dev/null
+++ b/public/sponsor/patreon-icon.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/public/sponsor/sponsor.css b/public/sponsor/sponsor.css
new file mode 100644
index 0000000..6975341
--- /dev/null
+++ b/public/sponsor/sponsor.css
@@ -0,0 +1,64 @@
+/* generic */
+
+a.donate-btn {
+ margin: 0.25em 0;
+
+ border-radius: 5px;
+ display: inline-block;
+ padding: 5px 7px 3px 7px;
+
+ font-size: 14px;
+ font-weight: 700;
+ line-height: 22px;
+ text-decoration: none;
+}
+a.donate-btn > img {
+ height: 16px;
+ margin-top: 2px;
+ margin-right: 3px;
+ vertical-align: top;
+}
+
+/* Liberapay */
+
+a.donate-btn.liberapay {
+ background-color: #f6c915;
+ color: #1a171b;
+ font-family: Helvetica Neue,Helvetica,sans-serif;
+}
+a.donate-btn.liberapay:hover {
+ background-color: #fbce1a;
+}
+
+/* Ko-fi */
+
+a.donate-btn.kofi {
+ font-family: 'Quicksand',Helvetica,Century Gothic,sans-serif;
+ background-color: #29abe0;
+ color: #ffffff;
+}
+a.donate-btn.kofi:hover {
+ background-color: #48b7e4;
+}
+
+/* Patreon */
+
+a.donate-btn.patreon {
+ background-color: #000000;
+ color: #ffffff;
+ outline: solid 1px #000000;
+ font-weight: 400;
+}
+a.donate-btn.patreon > span {
+ text-transform: uppercase;
+}
+a.donate-btn.patreon > img {
+ filter: invert(100%);
+}
+a.donate-btn.patreon:hover {
+ background-color: #ffffff;
+ color: #000000;
+}
+a.donate-btn.patreon:hover > img {
+ filter: none;
+}
--
cgit v1.2.3-2-g168b