mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-21 10:40:41 +08:00
41 lines
782 B
Svelte
41 lines
782 B
Svelte
<script lang="ts">
|
|
import Icon from "@app/components/Icon.svelte";
|
|
|
|
interface Props {
|
|
error: string;
|
|
hint?: string;
|
|
}
|
|
|
|
const { error, hint }: Props = $props();
|
|
</script>
|
|
|
|
<style>
|
|
main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
row-gap: 0.5rem;
|
|
}
|
|
|
|
/* This tag comes from the backend. */
|
|
:global(code) {
|
|
font-family: var(--font-family-monospace);
|
|
font-size: var(--font-size-small);
|
|
background-color: var(--color-fill-ghost);
|
|
padding: 0.125rem 0.25rem;
|
|
}
|
|
</style>
|
|
|
|
<main>
|
|
<Icon name="warning" size="32" />
|
|
<div class="txt-medium txt-semibold">
|
|
{error}
|
|
</div>
|
|
{#if hint}
|
|
<div class="txt-small">{@html hint}</div>
|
|
{/if}
|
|
</main>
|