mirror of
https://github.com/PR0M3TH3AN/NostrTipJar.git
synced 2025-09-07 06:48:53 +00:00
update
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
--accent-purple: #a855f7;
|
||||
--accent-orange: #f97316;
|
||||
}
|
||||
/* Body is now a column so the footer lives at the very bottom */
|
||||
/* Keep footer stuck to the bottom while centering main */
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center; /* keeps <main> vertically centred when possible */
|
||||
justify-content: center; /* vertically centre <main> when possible */
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
<body class="bg-gray-900 text-gray-200">
|
||||
<main id="app" class="w-full max-w-sm p-6 space-y-6 text-center"></main>
|
||||
|
||||
<!-- Subtle footer on every page -->
|
||||
<!-- Subtle footer with tip-jar & GitHub links -->
|
||||
<footer class="mt-auto mb-2 text-center text-xs text-gray-500 opacity-70">
|
||||
Enjoying this?
|
||||
<a
|
||||
@@ -44,6 +44,13 @@
|
||||
class="underline hover:text-purple-400"
|
||||
>Leave a tip!</a
|
||||
>
|
||||
•
|
||||
<a
|
||||
href="https://github.com/PR0M3TH3AN/NostrTipJar"
|
||||
class="underline hover:text-purple-400"
|
||||
target="_blank" rel="noopener"
|
||||
>GitHub</a
|
||||
>
|
||||
</footer>
|
||||
|
||||
<script type="module">
|
||||
@@ -76,10 +83,8 @@
|
||||
}
|
||||
|
||||
function parseUrl() {
|
||||
// Always use query parameter 'n' for npub
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const npub = params.get("n");
|
||||
// Base is the URL of the HTML file (strip query and hash)
|
||||
const base = window.location.href.split("?")[0].split("#")[0];
|
||||
return { npub, base };
|
||||
}
|
||||
|
Reference in New Issue
Block a user