feat: offer a demo instance link from the live deployment
Some checks are pending
ci / backend (push) Waiting to run
ci / frontend (push) Waiting to run

This commit is contained in:
Justin Visser 2026-08-11 10:21:18 +02:00
parent cdace7d170
commit b60a492417
10 changed files with 63 additions and 8 deletions

View file

@ -8,6 +8,7 @@ const props = defineProps<{
auth: AuthState
mode: AppMode | null
healthFailed: boolean
demoUrl: string | null
}>()
const emit = defineEmits<{ logout: []; reset: []; toggleDev: [opener: HTMLElement] }>()
@ -47,6 +48,9 @@ const modeLabel = computed(() => {
<span class="mode" :class="{ failed: healthFailed }">
{{ modeLabel }}
</span>
<a v-if="demoUrl" class="demo-link" :href="demoUrl">
{{ messages.appHeaderDemoInstance }}
</a>
<AuthStatus :auth="auth" @logout="$emit('logout')" />
<button class="button" type="button" data-dev-panel-opener @click="openDevPanel">
<span class="full-label">
@ -141,6 +145,18 @@ const modeLabel = computed(() => {
color: var(--c-error);
}
.demo-link {
color: var(--c-text-chip);
text-transform: uppercase;
text-decoration: none;
border-bottom: 1px solid var(--c-line-strong);
}
.demo-link:hover {
color: var(--c-text);
border-color: var(--c-accent);
}
.button {
min-height: 31px;
padding: 6px 11px;