Skip to content

Commit

Permalink
Add 404 page (#3)
Browse files Browse the repository at this point in the history
* Update astro.config.mjs

* Delete GitHub.io deployment

* Create 404.astro

* Add 404 Page

* Update 404.astro

* Update 404.astro

* Update 404.astro
  • Loading branch information
ArnavK-09 authored May 23, 2023
1 parent df2af94 commit 328b08a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 40 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/deploy.yml

This file was deleted.

2 changes: 1 addition & 1 deletion website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import alpinejs from "@astrojs/alpinejs";

// https://astro.build/config
export default defineConfig({
site: "https://arnavk-09.github.io/",
site: "https://lixit.onrender.com/",
integrations: [tailwind(), sitemap(), alpinejs()],
});
28 changes: 28 additions & 0 deletions website/src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
// Layout
import Layout from "@/layouts/Layout.astro";
---
<Layout title="Page Not Found">
<section
id="404"
class="py-12 justify-center items-center flex h-screen bg-gradient-to-b to-red-600/70 from-red-700/10"
>
<div>
<div class="text-center my-auto">
<h1 class="font-extrabold tracking-wide my-3 text-6xl">
Page Not Found :(
</h1>
<p class="text-lg my-2 text-black/70 tracking-wide font-semibold">
Please double check the url
</p>
</div>
<div class="block text-center mx-auto my-7">
<a href="/">
<button class="font-bold text-xl py-3 px-6 rounded-2xl border-2 border-black hover:bg-transparent bg-black hover:text-black text-white">
Back To Home!
</button>
</a>
</div>
</div>
</section>
</Layout>

0 comments on commit 328b08a

Please sign in to comment.