2024-02-15 18:42:07 +04:00
|
|
|
---
|
|
|
|
|
// Import section components
|
2024-03-25 22:39:36 +04:00
|
|
|
import MainLayout from "@/layouts/MainLayout.astro";
|
|
|
|
|
import Btn404 from "@/components/ui/buttons/Btn404.astro";
|
2024-02-18 07:39:17 +04:00
|
|
|
|
|
|
|
|
// Define variables for page content
|
|
|
|
|
const title: string = "404";
|
|
|
|
|
const subTitle: string = "Oops, this isn't the tool you were looking for!";
|
|
|
|
|
const content: string =
|
|
|
|
|
"Don't let this hiccup slow you down. Let's get you back to building your masterpiece.";
|
|
|
|
|
const btnTitle: string = "Go Back";
|
2024-02-15 18:42:07 +04:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<MainLayout
|
2024-02-20 07:47:23 +04:00
|
|
|
title="Page Not Found | ScrewFast">
|
2024-02-15 18:42:07 +04:00
|
|
|
<section class="grid h-svh place-content-center">
|
|
|
|
|
<div class="mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16">
|
|
|
|
|
<div class="mx-auto max-w-screen-sm text-center">
|
|
|
|
|
<h1
|
|
|
|
|
class="text-dark mb-4 text-7xl font-extrabold text-yellow-500 dark:text-yellow-400 lg:text-9xl"
|
|
|
|
|
>
|
2024-02-18 07:39:17 +04:00
|
|
|
{title}
|
2024-02-15 18:42:07 +04:00
|
|
|
</h1>
|
|
|
|
|
<p
|
|
|
|
|
class="mb-4 text-balance text-3xl font-bold tracking-tight text-neutral-700 dark:text-neutral-300 md:text-4xl"
|
|
|
|
|
>
|
2024-02-18 07:39:17 +04:00
|
|
|
{subTitle}
|
2024-02-15 18:42:07 +04:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p
|
|
|
|
|
class="mb-4 text-pretty text-lg text-neutral-600 dark:text-neutral-400"
|
|
|
|
|
>
|
2024-02-18 07:39:17 +04:00
|
|
|
{content}
|
2024-02-15 18:42:07 +04:00
|
|
|
</p>
|
2024-02-18 07:39:17 +04:00
|
|
|
<!--Display a button that navigates user back to the previous page-->
|
|
|
|
|
<Btn404 title={btnTitle} id="go-back" />
|
2024-02-15 18:42:07 +04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</MainLayout>
|
2024-02-18 07:39:17 +04:00
|
|
|
<!--JavaScript code that adds click event to the Button, resulting in going back to the previous page in history-->
|
2024-02-16 08:36:04 +04:00
|
|
|
<script>
|
|
|
|
|
document.getElementById("go-back")?.addEventListener("click", () => {
|
|
|
|
|
history.back();
|
|
|
|
|
});
|
|
|
|
|
</script>
|