migrate: page from stores to state.

This commit is contained in:
Darshan
2025-04-05 14:33:53 +05:30
parent eab31e413e
commit f6f20aa97a
31 changed files with 101 additions and 107 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import { page } from '$app/state';
import { MainFooter } from '$lib/components';
import { Docs } from '$lib/layouts';
import Sidebar from './Sidebar.svelte';
@@ -10,11 +10,11 @@
<div class="web-article mx-auto flex max-w-[700px] items-center justify-center py-4">
<div class="container">
<div class="web-hero" style="--hero-gap:1.25rem;">
<span class="web-badges text-micro !text-white uppercase">{$page.status}</span>
<span class="web-badges text-micro !text-white uppercase">{page.status}</span>
<h1 class="text-headline font-aeonik-pro text-primary">
{$page.error?.message ?? 'An error has occured'}
{page.error?.message ?? 'An error has occured'}
</h1>
{#if $page.status === 404}
{#if page.status === 404}
<p class="text-description">
Sorry, it seems that the page you are looking for does not exist. Feel free
to use our navigation menu or the button below to explore more of Appwrite's