restructure for sveltekit
This commit is contained in:
parent
7deea47857
commit
9ef27fd2a2
73 changed files with 469 additions and 28 deletions
24
src/lib/ui/Error.svelte
Normal file
24
src/lib/ui/Error.svelte
Normal file
|
@ -0,0 +1,24 @@
|
|||
<script>
|
||||
export let msg = "";
|
||||
export let trace = "";
|
||||
</script>
|
||||
|
||||
<div class="error">
|
||||
{#if msg}
|
||||
<p class="msg">{@html msg}</p>
|
||||
{/if}
|
||||
{#if trace}
|
||||
<pre class="trace">{trace}</pre>
|
||||
{/if}
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.error {
|
||||
margin-top: 16px;
|
||||
padding: 20px 32px;
|
||||
border: 1px solid #8884;
|
||||
border-radius: 16px;
|
||||
background-color: var(--bg1);
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue