diff --git a/source/src/layouts/Error.astro b/source/src/layouts/Error.astro index 7511c25..2851092 100755 --- a/source/src/layouts/Error.astro +++ b/source/src/layouts/Error.astro @@ -1,81 +1,34 @@ --- // Properties -const { Title, Description } = Astro.props - -// Components -import Head from '@components/global/Head.astro' - -// Styles -import '@styles/index.scss' -import '@styles/mobile.scss' - -// Error -interface Props { - error: unknown -} - -const { error } = Astro.props - -// SDK -import { OpenpanelSdk } from '@openpanel/sdk'; -const op = new OpenpanelSdk({ - clientId: 'b4c27f56-18f5-4d66-bb62-cbf7f7161812', - clientSecret: 'sec_107558407af59a591b50', -}); - -// // Track Event -// if (Astro.cookies.get("Telemtry").value === "Enabled") { -// op.event('Error', { Error: error instanceof Error ? error.message : 'Unknown error' }); -// } -// else if (Astro.cookies.get("Telemtry").value === "Disabled") { -// null -// } - -// // Cookies -// if (Astro.cookies.get("Telemtry").value === "Enabled") { -// var UserIsOptedIn = true -// } -// else if (Astro.cookies.get("Telemtry").value === "Disabled") { -// var UserIsOptedIn = false -// } +const { + Title, + Message +} = Astro.props --- -
An error has occured:
-{error instanceof Error ? error.message : 'Unknown error'}
-{Message}
+Page not found.
+The page you've requested has either been moved or never existed. Double check the URL you're viewing.