diff --git a/src/components/AddControlKey.svelte b/src/components/AddControlKey.svelte index 10bc02c8..11c9921d 100644 --- a/src/components/AddControlKey.svelte +++ b/src/components/AddControlKey.svelte @@ -119,8 +119,8 @@ classOverrides="border-2 rounded-lg" />
- - + +
diff --git a/src/components/Banner.svelte b/src/components/Banner.svelte deleted file mode 100644 index 9200cf03..00000000 --- a/src/components/Banner.svelte +++ /dev/null @@ -1,8 +0,0 @@ - - -
- The project logo -

Provider Dashboard

-
diff --git a/src/components/Capacity.svelte b/src/components/Capacity.svelte index 9ba09328..4d1a74be 100644 --- a/src/components/Capacity.svelte +++ b/src/components/Capacity.svelte @@ -16,7 +16,7 @@ let signingAddress = ''; // eslint-disable-line no-unused-vars let epochNumber = 0n; - let connected; + let connected: boolean; storeConnected.subscribe((val) => (connected = val)); let msaInfo: MsaInfo = { isProvider: false, msaId: 0, providerName: '' }; @@ -74,7 +74,7 @@ }); -
+

Capacity

{#if !connected}

Not connected

diff --git a/src/components/ChainStatus.svelte b/src/components/ChainStatus.svelte index 825aad79..44aac99a 100644 --- a/src/components/ChainStatus.svelte +++ b/src/components/ChainStatus.svelte @@ -5,26 +5,27 @@ export let epochNumber = 0n; -
Overview:

Connection status:

-

{connected ? 'Connected' : 'Not connected'}

+

{connected ? 'Connected' : 'Not connected'}

Current Block:

-

{blockNumber}

+

{blockNumber}

Epoch:

-

{epochNumber}

+

{epochNumber}

Token:

-

{token}

+

{token}

diff --git a/src/components/ConnectionStatus.svelte b/src/components/ConnectionStatus.svelte new file mode 100644 index 00000000..26c72fd6 --- /dev/null +++ b/src/components/ConnectionStatus.svelte @@ -0,0 +1,18 @@ + + +
+ + +
+
+

name_OF_NETWORK

+
+

NETWORK_ENDPOINT_URL

+ + + + + +
diff --git a/src/components/CreateMsa.svelte b/src/components/CreateMsa.svelte index 213167e8..f1b945d5 100644 --- a/src/components/CreateMsa.svelte +++ b/src/components/CreateMsa.svelte @@ -71,10 +71,10 @@

- +
diff --git a/src/components/CreateProvider.svelte b/src/components/CreateProvider.svelte index 65941fed..1f290b14 100644 --- a/src/components/CreateProvider.svelte +++ b/src/components/CreateProvider.svelte @@ -96,10 +96,10 @@
- - +
diff --git a/src/components/Header.svelte b/src/components/Header.svelte new file mode 100644 index 00000000..cd1cb4fd --- /dev/null +++ b/src/components/Header.svelte @@ -0,0 +1,12 @@ + + +
+
+ The project logo +

Provider Dashboard

+
+ +
diff --git a/src/components/Provider.svelte b/src/components/Provider.svelte index bcdaa156..df6c1d7f 100644 --- a/src/components/Provider.svelte +++ b/src/components/Provider.svelte @@ -35,7 +35,7 @@ }); -
+
diff --git a/src/components/RequestToBeProvider.svelte b/src/components/RequestToBeProvider.svelte index ac1b29ff..9fec3494 100644 --- a/src/components/RequestToBeProvider.svelte +++ b/src/components/RequestToBeProvider.svelte @@ -112,10 +112,10 @@
- +
diff --git a/src/components/Stake.svelte b/src/components/Stake.svelte index 1185f45b..3209def0 100644 --- a/src/components/Stake.svelte +++ b/src/components/Stake.svelte @@ -132,8 +132,8 @@
- - + +
diff --git a/src/lib/assets/bg-wave.png b/src/lib/assets/bg-wave.png new file mode 100644 index 00000000..9719b88f Binary files /dev/null and b/src/lib/assets/bg-wave.png differ diff --git a/src/lib/assets/logo.png b/src/lib/assets/logo.png index cded07d2..827aadf7 100644 Binary files a/src/lib/assets/logo.png and b/src/lib/assets/logo.png differ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 00000000..9a48a8de --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,11 @@ + + +
+ The project logo +
+ +
+; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9c4ccb49..158b8e87 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,7 @@ -decoration-top-left - - +
- - + +
- +
- +
- -decoration-bottom-left diff --git a/src/style/app.css b/src/style/app.css index f1ffa586..c4ebe713 100644 --- a/src/style/app.css +++ b/src/style/app.css @@ -7,10 +7,10 @@ /* */ @layer components { .btn-primary { - @apply mt-6 px-8 p-3 h-14 rounded-full text-white text-lg bg-blue border-black shadow-md; + @apply w-[225px] h-10 rounded-full text-white bg-blue disabled:bg-disabled text-base font-bold; } - .btn-cancel { - @apply mt-6 px-8 p-3 rounded-full text-white text-lg border-black shadow-md; + .btn-no-fill { + @apply text-white underline text-sm; } .action-card { @apply mt-8 p-8 shrink-0 rounded-lg text-white shadow-md; @@ -21,11 +21,27 @@ .action-card-title { @apply font-semibold text-2xl; } - .action-btn-l { - @apply grow mr-3; + + /* typeography */ + /* headers */ + .section-title { + @apply font-bold text-xl; } - .action-btn-r { - @apply grow ml-3; + .label { + @apply font-bold text-base tracking-wide; + } + /* data */ + .data-value-sm { + @apply font-data text-green text-sm; + } + .data-value-base { + @apply font-data text-green text-base; + } + .data-value-lg { + @apply font-data text-green text-lg; + } + .data-value-2xl { + @apply font-data text-green text-2xl; } } @@ -34,7 +50,7 @@ color: white; min-height: 100vh; margin: 2em; - background: linear-gradient(to bottom right, #293b59, #007da1); + background: linear-gradient(to top, #2c333d, #007da1); } button { diff --git a/test/e2e/page.test.ts b/test/e2e/page.test.ts index d7a7f8c1..c3824dfa 100644 --- a/test/e2e/page.test.ts +++ b/test/e2e/page.test.ts @@ -20,12 +20,6 @@ describe('End to End Tests', () => { // TODO: @testing-library/svelte claims to add this automatically but it doesn't work without explicit afterEach afterEach(() => cleanup()); - test('check connection status: not connected', async () => { - const { container } = render(Page); - expect(container.querySelector('#connection-status-title')).toHaveTextContent('Connection status:'); - expect(container.querySelector('#connection-status-value')).toHaveTextContent('Not connected'); - }); - test('connect to localhost', async () => { const { container, getByLabelText } = render(Page); const statusBar = container.querySelector('#chain-status');
Provider