diff --git a/src/state-calculator.ts b/src/state-calculator.ts index d96c492..0bb9103 100644 --- a/src/state-calculator.ts +++ b/src/state-calculator.ts @@ -19,8 +19,14 @@ import { } from './utility-selector'; import { iconTabBarStyles } from './icon-tab-bar'; +import '@shoelace-style/shoelace/dist/components/spinner/spinner'; + const loadingTemplate = () => html` -
Loading...
+
+
+ +
+
`; const errorTemplate = (error: unknown) => html` diff --git a/src/state-incentive-details.ts b/src/state-incentive-details.ts index c3e7595..506c1b2 100644 --- a/src/state-incentive-details.ts +++ b/src/state-incentive-details.ts @@ -5,6 +5,11 @@ import { PROJECTS, Project, shortLabel } from './projects'; import { iconTabBarTemplate } from './icon-tab-bar'; export const stateIncentivesStyles = css` + .loading { + text-align: center; + font-size: 2rem; + } + .incentive { display: flex; flex-direction: column;