Skip to content

Commit

Permalink
problem: menu is too big now
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Feb 11, 2024
1 parent 7ff669f commit 2c82236
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/routes/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@
<SideNavMenu text={menuItem.title}>
{#each menuItem.children as childMenuItem, index}
<SideNavMenuItem
on:click={()=>{if (childMenuItem.url){isSideNavOpen = false}}}
href={childMenuItem.url}
text={childMenuItem.title}
/>
{/each}
</SideNavMenu>
{:else}
<SideNavLink href={menuItem.url} text={menuItem.title} />
<SideNavLink on:click={()=>{if (menuItem.url){isSideNavOpen = false}}} href={menuItem.url} text={menuItem.title} />
{/if}
{/each}
</SideNavItems>
Expand Down
25 changes: 25 additions & 0 deletions src/routes/funding/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script>
import { Tile } from "carbon-components-svelte";
</script>

<h2>Nostrocket Funding</h2>
<Tile
><p>Merits are something akin to equity in a Rocket.</p>
<p>
<em>All</em> revenue generated by a Rocket goes <em>directly</em> to the merit
holders (Nostrocket is strictly non-custodial).
</p>
<p>
Merits are only ever produced in response to work being completed - usually a merged pull request.
</p>

<p>
Contributors may at times want to recieve Bitcoin in exchange for their work, rather than Merits. This is the <em>only</em> way
non-contributors can acquire merits in a Rocket.
</p>
<p>When Merits become available to sponsors, they will be offered to people in the order in which they joined the funding queue.</p>
<p>
It's not currently possible to join the funding queue. This feature is
coming soon.
</p>
</Tile>
7 changes: 7 additions & 0 deletions src/routes/jobs/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
import { Tile } from "carbon-components-svelte";
</script>
<h2>We are hiring!</h2>
<Tile><p>Currently hiring: svelte developer.</p><p>Contact gsovereignty on nostr.</p></Tile>
47 changes: 36 additions & 11 deletions src/routes/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,56 @@ import { base } from "$app/paths";
import { rootProblem } from "../settings";

interface INavigationLink {
url: string;
url?: string;
title: string;
children?: INavigationLink[];
}

const menu: INavigationLink[] = [
{
url: `${base}/identity`,
title: "Web of Trust",
},

{
url: `${base}/rockets`,
title: "Rockets",
},
{
url: `${base}/nr/Nostrocket/problems/${rootProblem}`,
title: "Problem Tracker",
url: `${base}/products`,
title: "Products",
},


{
url: `${base}/jobs`,
title: "Jobs",
},
{
url: `${base}/FAQ`,
title: "FAQ",
url: `${base}/funding`,
title: "Funding Queue",
},

{
url: `${base}/nempool`,
title: "Nempool",
title: "MORE",
children: [
{
url: `${base}/identity`,
title: "Web of Trust",
},
{
url: `${base}/nr/Nostrocket/problems/${rootProblem}`,
title: "Problem Tracker",
},
{
url: `${base}/unprotocol`,
title: "Unprotocol",
},
{
url: `${base}/nempool`,
title: "Nempool",
},
{
url: `${base}/FAQ`,
title: "FAQ",
},
]
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/routes/nempool/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<Row>
<Column max={8} sm={8}>
<h1>Consensus Events</h1>
These are HARD state change requests that votepower has validated and inserted
These are HARD state change requests that votepower in your web of trust has inserted
into their state.
<EventList ordered list={$consensusTipState.ConsensusEvents} />
<!-- <OrderedList>
Expand Down
42 changes: 42 additions & 0 deletions src/routes/products/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<script>
import { Button, Tile } from "carbon-components-svelte";
import { Rocket } from "carbon-icons-svelte";
</script>

<h2>Nostrocket Products</h2>
<Tile
><p>
Rockets should ultimately produce products/services that people want to pay
for.
</p>
</Tile>
<Tile light style="margin-top:2px">
<h3>GitRocket: one push away from world domination</h3>
<p>What you get:</p>
<ul>
<li>A public git repository to use as the home for your project</li>
<li>Use all your existing git tooling and workflow</li>
<li>No passwords, just your nostr identity</li>
<li>Add maintainers simply by publishing their npubs</li>
<li>inter-operability with any NIP34 client</li>
<li>Zero exit costs, migrate to your own server at any time</li>
</ul>
<Button on:click={()=>{alert("coming soon")}} icon={Rocket}>BUY NOW</Button>
</Tile>

<style>
h3 {
margin-bottom: 10px;
}
li {
margin-top: 10px;
}
ul {
list-style-position: inside;
line-height: 140%;
list-style-type:square;
margin: 1%;
font-size: 12pt;
}
</style>
7 changes: 7 additions & 0 deletions src/routes/unprotocol/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
import { Tile } from "carbon-components-svelte";
</script>
<h2>Nostrocket Unprotocol</h2>
<Tile>COMING SOON!</Tile>

0 comments on commit 2c82236

Please sign in to comment.