Skip to content

Commit

Permalink
Problem: a lot of stuff isn't implemented so feels broken
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Aug 14, 2024
1 parent 075c366 commit 119ac5d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 16 deletions.
38 changes: 27 additions & 11 deletions src/components/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import { page } from '$app/stores';
import { Badge } from '@/components/ui/badge';
import Separator from '@/components/ui/separator/separator.svelte';
import { Mail, Package, Pyramid, Rocket, Users } from 'lucide-svelte';
import { currentUser } from '@/stores/session';
import { GitBranch, HelpCircle, Mail, Package, Pyramid, Rocket, Users } from 'lucide-svelte';
import { GitAltBrand } from 'svelte-awesome-icons';
let iconClass = 'h-5 w-5 md:h-4 md:w-4';
Expand All @@ -16,25 +18,39 @@
};
</script>

{#if $currentUser}
<a href="{base}/inbox" class={getClass('inbox')}>
<Mail class={iconClass} />
Inbox
<Badge class="ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-full">1</Badge>
</a>
<Separator class="dark:bg-slate-700" />
{/if}
<a href="{base}/rockets" class={getClass('rockets')}>
<Rocket class={iconClass} />
Rockets
</a>
<a href="##" class={getClass('problems')}>
<Pyramid class={iconClass} />
Problem Tracker
<Badge class="ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-full">6</Badge>
</a>
<a href="{base}/products" class={getClass('products')}>
<Package class={iconClass} />
Products
</a>
<a href="##" class={getClass('people')}>
<a href="{base}/problems" class={getClass('problems')}>
<Pyramid class={iconClass} />
Problem Tracker
<!-- <Badge class="ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-full">6</Badge> -->
</a>

<!-- <a href="##" class={getClass('people')}>
<Users class={iconClass} />
People
</a> -->
<Separator class="dark:bg-slate-700" />
<a href="https://github.com/nostrocket/hypergolic" class={getClass('_')}>
<GitAltBrand class={iconClass} />
Source
</a>
<Separator />
<a href="##" class={getClass('inbox')}>
<Mail class={iconClass} />
Inbox
<a href="{base}/help" class={getClass('help')}>
<HelpCircle class={iconClass} />
Help
</a>
<Separator />
1 change: 1 addition & 0 deletions src/routes/help/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Wouldn't it be cool to have a nostr help thread here?
1 change: 1 addition & 0 deletions src/routes/inbox/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://i.imgflip.com/908qyq.jpg" />
8 changes: 8 additions & 0 deletions src/routes/problems/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts">
</script>

This is a work in progress, for now please have a look at the <a
class="underline"
href="https://nostrocket.github.io/oxygen/nr/Nostrocket/problems/d0afd68b5cafa58382edb38b7ac7feef229a916f22330922e4be6cd22193b1a5?tab=problem"
>Oxygen problem tracker</a
>.
7 changes: 2 additions & 5 deletions src/routes/products/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,15 @@
{/each}
{:else}
<Alert.Root>
<Alert.Description
>Currently, there are no products on the mainnet; you can check the testnet.</Alert.Description
>
<Alert.Description>No products found!</Alert.Description>
</Alert.Root>
{/if}
</Tabs.Content>
<Tabs.Content value="testnet">
<Alert.Root class="my-2">
<ExclamationTriangle class="h-4 w-4" />
<Alert.Title>Note</Alert.Title>
<Alert.Description
>The following products are for testing purposes only. Please do not send real Bitcoin.</Alert.Description
<Alert.Description>The following products are for testing and are not real.</Alert.Description
>
</Alert.Root>
{#each testnet as [rocket, groups] (rocket.Event.id)}
Expand Down

0 comments on commit 119ac5d

Please sign in to comment.