mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: resolve lint issues chore: npm run format - Added `parseMarkdown` function to handle markdown content with DOMPurify for sanitization. - Updated `+page.svelte` to render markdown content and handle media loading. - Introduced new styles for markdown elements in the Svelte component. - Enhanced media placeholders for external content with privacy warnings.
25 lines
686 B
Svelte
25 lines
686 B
Svelte
<script lang="ts">
|
|
import { page } from '$app/state';
|
|
|
|
let status = page.status;
|
|
let error = page.error;
|
|
let message = error?.message || 'An unexpected error occurred.';
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>{status} - Error - Sharpbin</title>
|
|
<meta name="description" content="An error occurred while processing your request." />
|
|
</svelte:head>
|
|
|
|
<main
|
|
class="flex min-h-[calc(100vh-120px)] w-full flex-col items-center justify-center pt-5 pb-5 text-white"
|
|
>
|
|
<div
|
|
class="w-[95%] max-w-7xl rounded border-2
|
|
border-neutral-800 bg-neutral-900 p-6 text-center"
|
|
>
|
|
<h1 class="mb-4 text-4xl font-bold">Error {status}</h1>
|
|
<p class="mb-2 text-lg">{message}</p>
|
|
</div>
|
|
</main>
|