-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19e719e
commit ed13cf5
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import { FooterNav, MainFooter } from '$lib/components'; | ||
import { Main } from '$lib/layouts'; | ||
import DocsError from './docs/+error.svelte'; | ||
const isDocs = $page.url.pathname.startsWith('/docs'); | ||
</script> | ||
|
||
{#if isDocs} | ||
<DocsError /> | ||
{:else} | ||
<Main> | ||
<div class="aw-big-padding-section"> | ||
<div class="aw-big-padding-section-level-2"> | ||
<div class="aw-container"> | ||
<div class="aw-hero" style="--hero-gap:1.25rem;"> | ||
<span class="aw-badges aw-eyebrow">{$page.status}</span> | ||
<h1 class="aw-headline aw-u-color-text-primary"> | ||
{$page.error?.message ?? 'An error has occured'} | ||
</h1> | ||
{#if $page.status === 404} | ||
<p class="aw-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 documentation. | ||
</p> | ||
{/if} | ||
<a href="/" class="aw-button is-secondary u-cross-child-center u-margin-block-start-12"> | ||
<span>Back to homepage</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="aw-big-padding-section-level-2 u-position-relative"> | ||
<div class="aw-container"> | ||
<FooterNav /> | ||
<MainFooter /> | ||
</div> | ||
</div> | ||
</div> | ||
</Main> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters