Skip to content

Commit

Permalink
problem: people don't know what nostrocket is when they first land
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Jan 29, 2024
1 parent a61e4f9 commit 16b1bfb
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions src/routes/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { base } from "$app/paths";
import { weHaveTheLead } from "$lib/consensus/votepower";
import { bitcoinTip, getBitcoinTip } from "$lib/helpers/bitcoin";
import { unixTimeNow } from "$lib/helpers/mundane";
Expand Down Expand Up @@ -37,28 +39,33 @@
isSideNavOpen = !larger;
}
let lastRequestTime = 0
let lastRequestTime = 0;
$:{
if (unixTimeNow() > lastRequestTime+30000) {
getBitcoinTip().then(x=>{
$: {
if (unixTimeNow() > lastRequestTime + 30000) {
getBitcoinTip().then((x) => {
if (x) {
lastRequestTime = unixTimeNow()
lastRequestTime = unixTimeNow();
}
})
});
}
}
</script>

<Header
company="NOSTROCKET:"
platformName="Oxygen"
bind:isSideNavOpen
bind:expandedByDefault
>
<Header bind:isSideNavOpen bind:expandedByDefault>
<div slot="skip-to-content">
<SkipToContent />
<div
style="cursor:pointer;float:left;margin-left:6px;margin-top:4px;text-align:center;"
on:click={() => {
goto(`${base}/About`);
}}
>
<h4 style="margin: 0;">NOSTROCKET!</h4>
<p style="font-size: xx-small;font-style:italic;">
Separation of Business and State
</p>
</div>
</div>

<HeaderNav>
Expand Down Expand Up @@ -118,7 +125,7 @@
{/if}

{#if $currentUser}
<CommentUser pubkey={$currentUser.pubkey} />
<CommentUser pubkey={$currentUser.pubkey} />
{/if}
<HeaderPanelDivider>CONSENSUS LEAD?</HeaderPanelDivider>
{$weHaveTheLead}
Expand Down

0 comments on commit 16b1bfb

Please sign in to comment.