From faa645e3b39cd47cc603ab368d29506738817bd9 Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 23 Jan 2022 03:52:11 -0500 Subject: [PATCH] feat: use Card to be more UX consistent with the rest of the site --- src/pages/status.svelte | 94 +++++++++++++++++++++++++---------------- 1 file changed, 57 insertions(+), 37 deletions(-) diff --git a/src/pages/status.svelte b/src/pages/status.svelte index 65259371..86e1f609 100644 --- a/src/pages/status.svelte +++ b/src/pages/status.svelte @@ -1,5 +1,6 @@ - -

Bot status

- {@html currentCommitMsg} -
- + + + + + + +
+ +
+ Bot status +
+
+ + {@html currentCommitMsg} +
+ - { shards.length } shards ({ shards.filter(x => x.status == "up").length } up)
- Average latency: { pingAverage }ms -

- All times in UTC. More statistics available at https://stats.pluralkit.me -

-
- Find my shard -
- Enter a server ID or a message link to find the shard currently assigned to your server: -
- -

- { shardInfoMsg } - {#if valid} -

Your shard is: Shard { foundShard.id }

-
- Status: { foundShard.status }
- Latency: { foundShard.ping }ms
- Disconnection count: { foundShard.disconnection_count }
- Last connection: { foundShard.last_connection }
- Last heartbeat: { foundShard.last_heartbeat }
- {/if} -
-

-

Shard status

- - { message } - - {#each shards as shard} - - {/each} + { shards.length } shards ({ shards.filter(x => x.status == "up").length } up)
+ Average latency: { pingAverage }ms +

+ All times in UTC. More statistics available at https://stats.pluralkit.me +

+
+ Find my shard +
+ Enter a server ID or a message link to find the shard currently assigned to your server: +
+ +

+ { shardInfoMsg } + {#if valid} +

Your shard is: Shard { foundShard.id }

+
+ Status: { foundShard.status }
+ Latency: { foundShard.ping }ms
+ Disconnection count: { foundShard.disconnection_count }
+ Last connection: { foundShard.last_connection }
+ Last heartbeat: { foundShard.last_heartbeat }
+ {/if} +
+
+
+ +
+ + + + + { message } + {#each shards as shard} + + {/each} + + + +
\ No newline at end of file