From 73be5ac80ec134602bccd6455eef03602f8409b5 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Tue, 10 Oct 2023 11:57:41 +0200 Subject: [PATCH] Add Liberapay link --- assets/css/_base.scss | 7 +++ .../templates/layout/_donate_modal.html.heex | 54 +++++++++++++++++++ .../templates/layout/_footer.html.heex | 2 +- .../templates/layout/app.html.heex | 1 + 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 lib/asciinema_web/templates/layout/_donate_modal.html.heex diff --git a/assets/css/_base.scss b/assets/css/_base.scss index 2ac64c428..1e597ddee 100644 --- a/assets/css/_base.scss +++ b/assets/css/_base.scss @@ -190,3 +190,10 @@ body pre { .form-control::placeholder { color: #959fa7; } + +.btn-gh-sponsors { + font-weight: 600; + color: #333; + background-color: #eee; + border-color: #ccc; +} diff --git a/lib/asciinema_web/templates/layout/_donate_modal.html.heex b/lib/asciinema_web/templates/layout/_donate_modal.html.heex new file mode 100644 index 000000000..135320f53 --- /dev/null +++ b/lib/asciinema_web/templates/layout/_donate_modal.html.heex @@ -0,0 +1,54 @@ + diff --git a/lib/asciinema_web/templates/layout/_footer.html.heex b/lib/asciinema_web/templates/layout/_footer.html.heex index d22d79c53..83fb61673 100644 --- a/lib/asciinema_web/templates/layout/_footer.html.heex +++ b/lib/asciinema_web/templates/layout/_footer.html.heex @@ -4,7 +4,7 @@
This site is powered by asciinema-server -
❤️ Donate +
❤️ Donate
diff --git a/lib/asciinema_web/templates/layout/app.html.heex b/lib/asciinema_web/templates/layout/app.html.heex index c0ba49586..993bc75bb 100644 --- a/lib/asciinema_web/templates/layout/app.html.heex +++ b/lib/asciinema_web/templates/layout/app.html.heex @@ -23,6 +23,7 @@ <%= render("_footer.html", conn: @conn) %> + <%= render("_donate_modal.html") %>