mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 12:57:49 +00:00
migrate: page from stores to state.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user