From 2385d0bf7b5734add878fdce5a7e72bd270e4aa3 Mon Sep 17 00:00:00 2001 From: Aidan Date: Fri, 20 Dec 2024 01:16:45 -0500 Subject: [PATCH] improve donation page, registration page, add button to request checker to home --- public/css/donate.css | 4 ++++ public/js/donate.js | 8 ++++++++ src/donate.ejs | 28 ++++++++++++++++++++++------ src/index.ejs | 1 + src/register.ejs | 8 ++++++++ src/shards/header.ejs | 3 +++ 6 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 public/css/donate.css create mode 100644 public/js/donate.js diff --git a/public/css/donate.css b/public/css/donate.css new file mode 100644 index 0000000..7ae5217 --- /dev/null +++ b/public/css/donate.css @@ -0,0 +1,4 @@ +.monero { + max-height: 100px; + overflow-y: auto; +} \ No newline at end of file diff --git a/public/js/donate.js b/public/js/donate.js new file mode 100644 index 0000000..cd6505e --- /dev/null +++ b/public/js/donate.js @@ -0,0 +1,8 @@ +function copyToClipboard(elementId) { + const text = document.getElementById(elementId).innerText; + navigator.clipboard.writeText(text).then(() => { + alert('Copied to clipboard'); + }).catch(err => { + console.error('Failed to copy: ', err); + }); +} \ No newline at end of file diff --git a/src/donate.ejs b/src/donate.ejs index 46bbb4f..c15198e 100644 --- a/src/donate.ejs +++ b/src/donate.ejs @@ -1,4 +1,4 @@ -<%- include('shards/header', { title: 'Donate - p0ntus mail' }) %> +<%- include('shards/header', { title: 'Donate - p0ntus mail', currentPage: 'donate' }) %>
<%- include('shards/nav', { currentPage: 'donate' }) %> Current donation progress this month @@ -16,15 +16,31 @@
Bitcoin
-

<%= bitcoin %>

+
+

<%= bitcoin %>

+ +
Ethereum
-

<%= ethereum %>

+
+

<%= ethereum %>

+ +
Litecoin
-

<%= litecoin %>

+
+

<%= litecoin %>

+ +
Monero
-

<%= monero %>

+
+

<%= monero %>

+ +
Solana
-

<%= solana %>

+
+

<%= solana %>

+ +
+ <%- include('shards/footer') %> \ No newline at end of file diff --git a/src/index.ejs b/src/index.ejs index c942688..688c9f6 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -11,6 +11,7 @@
If you aren't a current user
Register + Check Registration Status
If you are a current user
diff --git a/src/register.ejs b/src/register.ejs index 040af30..5e8c83e 100644 --- a/src/register.ejs +++ b/src/register.ejs @@ -2,6 +2,14 @@
<%- include('shards/nav', { currentPage: 'register' }) %>

Register

+ If you already filled out a registration request +
+ + If you haven't filled out a registration request
diff --git a/src/shards/header.ejs b/src/shards/header.ejs index b783ae2..16f112e 100644 --- a/src/shards/header.ejs +++ b/src/shards/header.ejs @@ -10,5 +10,8 @@ + <% if (currentPage === 'donate') { %> + + <% } %> \ No newline at end of file