diff --git a/packages/ui/src/lib/components/border-box.svelte b/packages/ui/src/lib/components/border-box.svelte new file mode 100644 index 0000000..0276df6 --- /dev/null +++ b/packages/ui/src/lib/components/border-box.svelte @@ -0,0 +1,79 @@ + + +
+ {#if title} +
{title}
+ {/if} + {#if amount} +
{amount}
+ {/if} + {#if tokenName} +
{tokenName}
+ {/if} + {#if explanation} +

{explanation}

+ {/if} + + {#if link !== undefined} + + {/if} +
+ + diff --git a/packages/ui/src/lib/components/learn-more.svelte b/packages/ui/src/lib/components/learn-more.svelte index 38235f6..72af5a8 100644 --- a/packages/ui/src/lib/components/learn-more.svelte +++ b/packages/ui/src/lib/components/learn-more.svelte @@ -6,12 +6,14 @@ export let arrow: boolean | undefined = undefined - - Learn more - {#if arrow === true} - - {/if} - +{#if href} + + Learn more + {#if arrow === true} + + {/if} + +{/if} diff --git a/packages/ui/src/routes/persona/[id]/pending/+page.svelte b/packages/ui/src/routes/persona/[id]/pending/+page.svelte index aee5162..4c7575e 100644 --- a/packages/ui/src/routes/persona/[id]/pending/+page.svelte +++ b/packages/ui/src/routes/persona/[id]/pending/+page.svelte @@ -37,7 +37,7 @@ import { VOTE_GO_PRICE } from '$lib/constants' import InfoScreen from '$lib/components/info_screen.svelte' import LearnMore from '$lib/components/learn-more.svelte' - import TokenInfo from '$lib/components/token-info.svelte' + import BorderBox from '$lib/components/border-box.svelte' const groupId = $page.params.id const persona = $personas.all.get(groupId) @@ -90,7 +90,7 @@

-

- -
- -

- - This Persona will be live, and everyone will be able to post with it.

- You need {TOKEN_POST_COST} GO to publish a Persona.

-
{#if $profile.signer === undefined} -
- -
-
-
+ +
+
+ +
+
+
+
+
{:else} -

Connected wallet

-
- {#await $profile.signer.getAddress()} - loading... - {:then address} - {formatAddress(address)} - {:catch error} - {error.message} - {/await} -
+ +
+

Wallet address

+
+ {#await $profile.signer.getAddress()} + loading... + {:then address} + {formatAddress(address)} + {:catch error} + {error.message} + {/await} +
+
+
-

Cycle data

-
-

Current cycle

- -
{formatEpoch($tokens.timeToEpoch)} left in this cycle
- + +

Cycle data

+ + +
{formatEpoch($tokens.timeToEpoch)} left in this cycle
+ +
- -
-
-
-

Staked reputation

- -

- {$tokens.repTotal - $tokens.repStaked} out of {$tokens.repTotal} REP staked until cycle ends -

- -
-
-

Reputation over time

- - -
+ + +

+ {$tokens.repTotal - $tokens.repStaked} out of {$tokens.repTotal} REP staked until cycle ends +

+
+ + - - - {#if $profile.signer !== undefined} -
+ {#each $transaction.transactions.sort( (a, b) => (sortAsc ? b.timestamp - a.timestamp : a.timestamp - b.timestamp), ) as t}
{#if t.goChange !== 0} @@ -202,10 +213,18 @@ margin-bottom: var(--spacing-24); } + .wallet-info { + padding-block: var(--spacing-48); + display: flex; + flex-direction: column; + gap: var(--spacing-12); + } + .wallet-info-wrapper { - background-color: var(--grey-100); - width: 100%; - max-width: 480px; + background-color: var(--grey-150); + display: block; + padding: var(--spacing-12); + font-family: var(--font-mono); } .connect-info { @@ -213,4 +232,19 @@ text-align: center; } } + + .cycle-data { + margin-top: var(--spacing-48); + margin-bottom: var(--spacing-12); + } + + .filter { + @media (min-width: 688px) { + padding-top: var(--spacing-24); + } + } + + .spacing-top { + margin-top: var(--spacing-12); + }