fix: 1:1 prototype port – exact hms-* CSS, real logo, all components from app.js

This commit is contained in:
Implementation Engineer
2026-07-10 22:28:26 +02:00
parent 786cb0c040
commit 90a7d7f2e0
38 changed files with 2733 additions and 3250 deletions
+8 -30
View File
@@ -1,37 +1,15 @@
<template>
<div
class="flex flex-col items-center justify-center py-12 text-center"
role="alert"
>
<div class="w-16 h-16 mb-4 flex items-center justify-center rounded-full bg-error-bg">
<svg class="w-8 h-8 text-error" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v4m0 4h.01M4.93 19h14.14c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.2 16c-.77 1.33.19 3 1.73 3z"/>
</svg>
<div class="text-center py-16 px-4" role="alert">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full mb-4" :style="{ background: 'var(--color-error-bg)', color: 'var(--color-error)' }">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>
</div>
<h2 class="text-lg font-bold text-text mb-2">{{ title }}</h2>
<p class="text-text-muted text-sm mb-6 max-w-sm">{{ message }}</p>
<button
v-if="retryText"
class="btn-secondary"
@click="$emit('retry')"
>
{{ retryText }}
</button>
<h3 class="text-xl font-semibold mb-2" style="color: var(--text)">{{ title }}</h3>
<p class="max-w-md mx-auto mb-6" style="color: var(--secondary)">{{ message }}</p>
<button @click="$emit('retry')" class="hms-btn hms-btn-primary">Erneut versuchen</button>
</div>
</template>
<script setup lang="ts">
withDefaults(defineProps<{
title?: string;
message?: string;
retryText?: string;
}>(), {
title: "Ein Fehler ist aufgetreten",
message: "Bitte versuchen Sie es erneut.",
retryText: "Erneut versuchen",
});
defineEmits<{
retry: [];
}>();
withDefaults(defineProps<{ title?: string; message: string }>(), { title: 'Ein Fehler ist aufgetreten' })
defineEmits<{ retry: [] }>()
</script>