From 108d150d981c919c001566cbe72d0321a34d4fa8 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 10 Mar 2024 14:48:47 +0100 Subject: [PATCH] Added a spinner during loading state --- .../components/AppLayoutSpinner.astro | 66 +++++++++++++++++++ .../AppLayout/components/Html.astro | 3 + src/i18n/wordings-keys.ts | 3 +- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 src/components/AppLayout/components/AppLayoutSpinner.astro diff --git a/src/components/AppLayout/components/AppLayoutSpinner.astro b/src/components/AppLayout/components/AppLayoutSpinner.astro new file mode 100644 index 0000000..e296494 --- /dev/null +++ b/src/components/AppLayout/components/AppLayoutSpinner.astro @@ -0,0 +1,66 @@ +--- +import { Icon } from "astro-icon/components"; +import { getI18n } from "src/i18n/i18n"; + +const { t } = await getI18n(Astro.locals.currentLocale); +--- + +{/* ------------------------------------------- HTML ------------------------------------------- */} + +
{t("global.loading")}