From 16cd5b70e3d9e80d0871fa0093272b0218329e2b Mon Sep 17 00:00:00 2001 From: cyclane Date: Wed, 7 Jul 2021 19:47:26 +0100 Subject: [PATCH] templates --- src/routes/_error.svelte | 45 ++++++++++++++++++--------------------- src/routes/_layout.svelte | 31 +++++++++++++++++++++------ 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/src/routes/_error.svelte b/src/routes/_error.svelte index 92fcca8..38e8e50 100644 --- a/src/routes/_error.svelte +++ b/src/routes/_error.svelte @@ -2,22 +2,31 @@ export let status: number; export let error: Error; - const dev = process.env.NODE_ENV === 'development'; + const dev = process.env.NODE_ENV === "development"; - - - - {status} - - -

{status}

- -

{error.message}

- -{#if dev && error.stack} -
{error.stack}
-{/if} diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index c0be3f9..d6b1716 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -1,24 +1,43 @@ - +