Add favicon support and loading state to authentication components

This commit is contained in:
Gabriel20xx committed 2026-08-10 10:42:40 +02:00
1 parent d0b18a4902
commit 81077527ac
4 files changed
+25 -21

No files matched your search

@@ -134,13 +134,18 @@
</script>
<div class="sc-root sc-auth-page">
<section aria-labelledby="sc-auth-title" class="sc-auth-card">
<section aria-busy={loading} aria-labelledby="sc-auth-title" class="sc-auth-card">
<div class="sc-auth-brand">
<img alt="" aria-hidden="true" class="sc-auth-brand-icon" src={faviconHref} />
<span>{brand}</span>
</div>
<h1 id="sc-auth-title">{setupRequired ? 'Create your account' : 'Welcome back'}</h1>
{#if loading}
<h1 id="sc-auth-title">Loading...</h1>
{:else}
<h1 id="sc-auth-title">{setupRequired ? 'Create your account' : 'Welcome back'}</h1>
{/if}
{#if !loading}
{#if tagline}
<p class="sc-auth-subtitle">{tagline}</p>
{/if}
@@ -268,5 +273,6 @@
</button>
{/if}
{/if}
{/if}
</section>
</div>