Skip to content

Commit

Permalink
feat: add tip link into top page
Browse files Browse the repository at this point in the history
  • Loading branch information
ocknamo committed Dec 16, 2023
1 parent c42ac57 commit c0d66fe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
let nip5: string | null = null;
let nip5Name: string | null = null;
let inputUrl: string | null = null;
let isMobile = false;
// interaction state
$: disabled = !nip5 || !nip5Name || !inputUrl;
Expand All @@ -59,6 +60,7 @@
];
onMount(async () => {
isMobile = document.body.clientWidth <= 1024;
const hash = window.location.hash;
console.info(hash);
if (!hash) {
Expand Down Expand Up @@ -328,6 +330,15 @@
NIP-5:{nip5 ?? ' ???'}
</p>
<div class="footer">
{#if isMobile}
<a
href="lnurlp://s14pes@getalby.com"
target="_blank"
rel="noopener noreferrer"
>
<p>Tip</p>
</a>
{/if}
<a
href="https://github.com/ocknamo/shotr/issues"
target="_blank"
Expand Down

0 comments on commit c0d66fe

Please sign in to comment.