From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001
From: rxliuli <rxliuli@gmail.com>
Date: Tue, 4 Nov 2025 05:03:50 +0800
Subject: init commit

---
 src/components/pages/ErrorPage.svelte | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/components/pages/ErrorPage.svelte

(limited to 'src/components/pages/ErrorPage.svelte')

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>
-- 
cgit v1.2.3

