Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Page #796

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
---

<BaseLayout>
<div class="px-16 py-8 flex flex-col items-center space-y-6 h-full justify-center">
<div class="flex flex-col items-center space-y-2">
<p class="text-content-accent type-body-2 font-bold">
404
</p>
<h1 class="type-headline-2 text-gray-900">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a custom Centrapay colour token next time 👀

Copy link
Contributor Author

@AndyClifford AndyClifford Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a suggestion for which one to use? Looks like there's a few cases of text-gray-*

Page not found
</h1>
<p class="type-body-2 text-content-tertiary text-center">
Sorry, we couldn’t find the page you’re looking for.
</p>
</div>
<div class="flex space-x-2 items-center">
<a href="/">
<div
class="btn bg-interactive-primary border rounded-md"
>
<span class="type-caption-2 text-content-inverse-primary">
Go back home
</span>
</div>
</a>
<button
id="freshdesk"
type="button"
class="btn bg-interactive-tertiary border rounded-md"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndyClifford How does this work to open the freshdesk? I'm guessing it's from the id but ids should be unique on a page

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it is from the id - this has broken the original button when the 404 page is visible. Will look into this now

>
<span class="type-caption-2 text-content-tertiary">
Contact support
</span>
</button>
</div>
</div>
</BaseLayout>
Loading