From c56d7436c71f22aad7c2265e7d2da38fbc4f9b8a Mon Sep 17 00:00:00 2001 From: Hiren Chauhan Date: Tue, 3 Oct 2023 00:07:23 +0530 Subject: [PATCH] feat: add skeleton loader for modal connecting state Closes #34 --- src/components/bc-start.ts | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/bc-start.ts b/src/components/bc-start.ts index 792520b..36c3d86 100644 --- a/src/components/bc-start.ts +++ b/src/components/bc-start.ts @@ -4,7 +4,6 @@ import {withTwind} from './twind/withTwind'; import store from '../state/store'; import {html} from 'lit'; import {exitIcon} from './icons/exitIcon'; -import {loadingIcon} from './icons/loadingIcon'; import {hr} from './templates/hr'; import './internal/bci-button'; import {classes} from './css/classes'; @@ -17,8 +16,25 @@ export class Start extends withTwind()(BitcoinConnectElement) { class="flex flex-col justify-center items-center w-full font-sans" > ${this._connecting - ? html`
- ${loadingIcon} + ? html`
+

+
+
+ ${hr()} +
+
` : this._connected ? html`

@@ -60,7 +76,7 @@ export class Start extends withTwind()(BitcoinConnectElement) { How would you like to connect?

- + `}
`; }