Skip to content

Commit 7a3019a

Browse files
committed
feat: add version and footer
1 parent f2d1691 commit 7a3019a

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lnreceipt",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/App.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
<script setup lang="ts"></script>
1+
<script setup lang="ts">
2+
import { version } from '../package.json'
3+
</script>
24

35
<template>
4-
<div class="min-h-screen w-full flex items-center justify-center p-4">
6+
<div class="flex-col min-h-screen w-full flex items-center justify-between p-4 text-sm">
7+
<div class="flex-1"></div>
58
<RouterView />
9+
<div class="flex-1"></div>
10+
<div class="text-center">
11+
<p>v{{ version }} | made by <a href="https://jaonoctus.dev" target="_blank" class="font-medium text-primary">jaonoctus</a> with <a href="https://vuejs.org" target="_blank" class="font-medium text-primary">Vue.js</a>, <a href="https://www.npmjs.com/package/light-bolt11-decoder" target="_blank" class="font-medium text-primary">bolt11</a> and <span class="font-medium text-red-400">love</span>.</p>
12+
<p>You can download the <a href="https://github.com/jaonoctus/lnreceipt/releases" target="_blank" class="font-medium text-primary underline">lnreceipt-standalone.html</a> offline version from the latest GitHub release</p>
13+
</div>
614
</div>
715
</template>

src/pages/HomeView.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ const decodedInvoice = computed(() => {
4141
return null
4242
}
4343
44-
console.log(decoded)
45-
4644
const amount = decoded.sections.find((section) => section.name === 'amount')?.value
4745
const description =
4846
decoded.sections.find((section) => section.name === 'description')?.value ?? 'empty'
@@ -99,19 +97,23 @@ function formatLong(text: string) {
9997
</script>
10098

10199
<template>
102-
<div class="min-h-screen w-full flex items-center justify-center p-4">
100+
<div class="w-full flex items-center justify-center p-4">
103101
<Card class="w-full max-w-2xl">
104102
<CardHeader>
105103
<CardTitle> Lightning Receipt </CardTitle>
106-
<CardDescription>
107-
The provided preimage cryptographically proves that the specified invoice has been
108-
successfully paid. Learn more
109-
<a
110-
href="https://faq.blink.sv/blink-and-other-wallets/how-to-prove-that-a-lightning-invoice-was-paid"
111-
target="_blank"
112-
class="font-medium text-primary underline underline-offset-4"
104+
<CardDescription class="text-xs">
105+
<p>The provided preimage cryptographically proves that the specified invoice has been
106+
successfully paid.
107+
</p>
108+
<p>
109+
Learn more
110+
<a
111+
href="https://faq.blink.sv/blink-and-other-wallets/how-to-prove-that-a-lightning-invoice-was-paid"
112+
target="_blank"
113+
class="font-medium text-primary"
113114
>here</a
114-
>.
115+
>.
116+
</p>
115117
</CardDescription>
116118
</CardHeader>
117119
<CardContent>

0 commit comments

Comments
 (0)