Add subscription management page and currency widget

This commit is contained in:
Pixeldrain-Server committed 2021-11-16 21:11:59 +01:00
1 parent 312b6e8a89
commit 772bb40030
7 files changed
+238 -67

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<script>
export let amount = 0
export let precision = 2
</script>
<span>
€
<span class:red={amount < 0} class:green={amount > 0}>
{(amount / 1000000).toFixed(precision)}
</span>
</span>
<style>
.red {
color: var(--danger_color);
}
.green {
color: var(--highlight_color);
}
</style>