diff options
| author | Adam Soltys <[email protected]> | 2025-09-12 10:06:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-12 10:06:03 -0700 |
| commit | 3e7f4613c7133b3de17e785b8b8461355ef807c6 (patch) | |
| tree | 5e6e6cfa63c004ecd87f9e87fefc9fd3e79bec84 /src | |
| parent | 934f87270369cd294626cf5142817edcac6c3a6c (diff) | |
| download | coinos-ui-3e7f4613c7133b3de17e785b8b8461355ef807c6.tar.gz coinos-ui-3e7f4613c7133b3de17e785b8b8461355ef807c6.zip | |
bounty update
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(static)/bounties/+page.server.ts | 34 | ||||
| -rw-r--r-- | src/routes/(static)/bounties/+page.svelte | 6 |
2 files changed, 32 insertions, 8 deletions
diff --git a/src/routes/(static)/bounties/+page.server.ts b/src/routes/(static)/bounties/+page.server.ts index c9d872b0..8378e2f2 100644 --- a/src/routes/(static)/bounties/+page.server.ts +++ b/src/routes/(static)/bounties/+page.server.ts @@ -1,10 +1,36 @@ import { get } from "$lib/utils"; export const load = async () => { const users = [ - { username: "fustler", merchant: "rrdrive", type: "Bakery" }, - { username: "laluna", merchant: "butchersguild", type: "Butcher Shop" }, - { username: "ica547", merchant: "vanlove", type: "Sushi Restaurant" }, - { username: "reverendhodl", merchant: "laughingbean", type: "Cafe" }, + { + username: "fustler", + merchant: "rrdrive", + type: "Bakery", + amount: 1000000, + }, + { + username: "laluna", + merchant: "butchersguild", + type: "Butcher Shop", + amount: 1000000, + }, + { + username: "ica547", + merchant: "vanlove", + type: "Sushi Restaurant", + amount: 1000000, + }, + { + username: "reverendhodl", + merchant: "laughingbean", + type: "Cafe", + amount: 1000000, + }, + { + username: "kimsrepair", + merchant: "kimsrepair", + type: "Kims Repair", + amount: 100000, + }, ]; for (const user of users) { diff --git a/src/routes/(static)/bounties/+page.svelte b/src/routes/(static)/bounties/+page.svelte index db7a012b..695eae3e 100644 --- a/src/routes/(static)/bounties/+page.svelte +++ b/src/routes/(static)/bounties/+page.svelte @@ -7,10 +7,8 @@ let { users } = data; let bounties = [ - "Clothing Store", "Hardware Store", "Gas Station", - "Shoe Repair", "Dollar Store", "Book Store", "Gift Shop", @@ -71,7 +69,7 @@ <h2 class="text-2xl font-bold">Previously Awarded</h2> <div class="flex flex-col gap-4"> - {#each users as { user, merchant, type }} + {#each users as { user, merchant, type, amount }} <article class="rounded-2xl border border-neutral-200 bg-white/70 p-4 shadow-sm transition hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900/60 sm:max-w-xl" > @@ -117,7 +115,7 @@ class="text-yellow-300" /> <span class="text-sm font-semibold tabular-nums"> - {s(1000000, "en-CA")} + {s(amount, "en-CA")} </span> </div> </div> |
