summaryrefslogtreecommitdiff
path: root/src/components/pages/ErrorPage.svelte
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /src/components/pages/ErrorPage.svelte
init commit
Diffstat (limited to 'src/components/pages/ErrorPage.svelte')
-rw-r--r--src/components/pages/ErrorPage.svelte23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/pages/ErrorPage.svelte b/src/components/pages/ErrorPage.svelte
new file mode 100644
index 0000000..5756d78
--- /dev/null
+++ b/src/components/pages/ErrorPage.svelte
@@ -0,0 +1,23 @@
+<script lang="ts" context="module">
+ import type { ErrorPage } from '~/jet/models';
+</script>
+
+<script lang="ts">
+ import SharedErrorPage from '@amp/web-app-components/src/components/Error/ErrorPage.svelte';
+ import { getI18n } from '~/stores/i18n';
+
+ export let page: ErrorPage;
+
+ const i18n = getI18n();
+</script>
+
+<div class="error-page-container">
+ <SharedErrorPage translateFn={$i18n.t} error={page.error} />
+</div>
+
+<style>
+ .error-page-container :global(.page-error) {
+ /* -50px compensates for the global footer */
+ top: calc(50% - 50px);
+ }
+</style>