mirror of
https://github.com/PR0M3TH3AN/NostrTipJar.git
synced 2025-09-08 07:19:09 +00:00
update
This commit is contained in:
@@ -16,12 +16,12 @@
|
|||||||
--accent-purple: #a855f7;
|
--accent-purple: #a855f7;
|
||||||
--accent-orange: #f97316;
|
--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 {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center; /* keeps <main> vertically centred when possible */
|
justify-content: center; /* vertically centre <main> when possible */
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<body class="bg-gray-900 text-gray-200">
|
<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>
|
<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">
|
<footer class="mt-auto mb-2 text-center text-xs text-gray-500 opacity-70">
|
||||||
Enjoying this?
|
Enjoying this?
|
||||||
<a
|
<a
|
||||||
@@ -44,6 +44,13 @@
|
|||||||
class="underline hover:text-purple-400"
|
class="underline hover:text-purple-400"
|
||||||
>Leave a tip!</a
|
>Leave a tip!</a
|
||||||
>
|
>
|
||||||
|
•
|
||||||
|
<a
|
||||||
|
href="https://github.com/PR0M3TH3AN/NostrTipJar"
|
||||||
|
class="underline hover:text-purple-400"
|
||||||
|
target="_blank" rel="noopener"
|
||||||
|
>GitHub</a
|
||||||
|
>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
@@ -76,10 +83,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseUrl() {
|
function parseUrl() {
|
||||||
// Always use query parameter 'n' for npub
|
|
||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
const npub = params.get("n");
|
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];
|
const base = window.location.href.split("?")[0].split("#")[0];
|
||||||
return { npub, base };
|
return { npub, base };
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user