mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore(examples): add sapper set-up
This commit is contained in:
parent
c1b98ced95
commit
fbb0c2d413
17 changed files with 2677 additions and 0 deletions
23
examples/sapper/src/routes/_error.svelte
Normal file
23
examples/sapper/src/routes/_error.svelte
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script>
|
||||
export let status;
|
||||
export let error;
|
||||
|
||||
import { Row, Column, Link } from "carbon-components-svelte";
|
||||
|
||||
const dev = process.env.NODE_ENV === "development";
|
||||
</script>
|
||||
|
||||
<Row>
|
||||
<Column lg="{16}">
|
||||
<h1>{status}</h1>
|
||||
<div>
|
||||
{error.message}
|
||||
<Link inline href="/">Return home</Link>
|
||||
</div>
|
||||
{#if dev && error.stack}
|
||||
<div>
|
||||
<pre>{error.stack}</pre>
|
||||
</div>
|
||||
{/if}
|
||||
</Column>
|
||||
</Row>
|
Loading…
Add table
Add a link
Reference in a new issue