diff --git a/public/index.css b/public/index.css index 392222e30..fe3163fd8 100644 --- a/public/index.css +++ b/public/index.css @@ -303,6 +303,7 @@ input.wide { display: flex; flex-direction: column; justify-content: center; + align-items: center; } span.small, .text-small { diff --git a/src/base/projects/View.svelte b/src/base/projects/View.svelte index 69809a8a1..3620af3c2 100644 --- a/src/base/projects/View.svelte +++ b/src/base/projects/View.svelte @@ -4,6 +4,7 @@ import type { Config } from '@app/config'; import * as proj from '@app/project'; import Loading from '@app/Loading.svelte'; + import Modal from '@app/Modal.svelte'; import Browser from './Browser.svelte'; @@ -28,10 +29,15 @@ navigate(`/projects/${urn}/head/${path}`); } }; + const back = () => window.history.back(); onMount(async () => { - project = State.Loading; - project = await proj.getInfo(urn, config); + try { + project = State.Loading; + project = await proj.getInfo(urn, config); + } catch { + project = null; + } }); @@ -72,6 +78,17 @@ {:else} - + + 🏜️ + +

{urn}

+

This project was not found.

+
+ + + +
{/if} diff --git a/src/base/registrations/Index.svelte b/src/base/registrations/Index.svelte index c4df004a4..a164b517c 100644 --- a/src/base/registrations/Index.svelte +++ b/src/base/registrations/Index.svelte @@ -34,21 +34,23 @@
-
- Register a {config.registrar.domain} name -
-
- - - +
+
+ Register a {config.registrar.domain} name +
+
+ + + - + +
diff --git a/src/base/vesting/Index.svelte b/src/base/vesting/Index.svelte index d370df3b5..87f25470b 100644 --- a/src/base/vesting/Index.svelte +++ b/src/base/vesting/Index.svelte @@ -53,70 +53,72 @@
- {#if info} - - - {contractAddress} - - - {#if $state === State.Withdrawn} - Tokens successfully withdrawn to {formatAddress(info.beneficiary)}. - {:else} - - - - - -
Beneficiary{info.beneficiary}
Allocation{info.totalVesting} {info.symbol}
Withdrawn{info.withdrawn} {info.symbol}
Withdrawable{info.withdrawableBalance} {info.symbol}
- {/if} -
- - {#if isBeneficiary} - {#if $state === State.WithdrawingSign} - - {:else if $state === State.Withdrawing} - - {:else if $state === State.Idle} - +
+ {#if info} + + + {contractAddress} + + + {#if $state === State.Withdrawn} + Tokens successfully withdrawn to {formatAddress(info.beneficiary)}. + {:else} + + + + + +
Beneficiary{info.beneficiary}
Allocation{info.totalVesting} {info.symbol}
Withdrawn{info.withdrawn} {info.symbol}
Withdrawable{info.withdrawableBalance} {info.symbol}
{/if} - {/if} - + {:else if $state === State.Withdrawing} + + {:else if $state === State.Idle} + + {/if} + {/if} + +
+
+ {:else} +
+ Enter your Radicle vesting contract address +
+
+ +
+ +
+
+ - - - {:else} -
- Enter your Radicle vesting contract address -
-
- -
- -
-
- -
- {/if} +
+ {/if} +