Merge pull request 'fix-404 page' (#7) from feat/seo into master

Reviewed-on: #7
master
Subhodip Ghosh 2025-06-12 10:31:18 +00:00
commit bbdd7d8fe8
3 changed files with 35 additions and 12 deletions

View File

@ -0,0 +1,23 @@
export default function Index() {
return (
<section>
<div
style={{ textAlign: "center", color: "#8F8F8F", marginTop: "100px" }}
>
<img src="/assets/pageNotFound.png" />
<h2>Page Not Found</h2>
<p>
Oops! It seems we are lost!
<br /> Click below to go to the Home page
</p>
<br />
<a href={"/"}>
<button className="btn" style={{ background: "#0348A8" }}>
Back to Home &nbsp;
<img src="/assets/white_right.png" width={"14px"} />
</button>
</a>
</div>
</section>
);
}

12
src/pages/404.astro Normal file
View File

@ -0,0 +1,12 @@
---
import Layout from "../layouts/Layout.astro";
import PageNotFound from "../components/PageNotFound/index.jsx";
---
<Layout >
<PageNotFound client:only="react" />
</Layout>

View File

@ -1,12 +0,0 @@
---
import Layout from "../layouts/Layout.astro";
import HomePage from "../components/Home/Home.jsx";
---
<Layout >
<HomePage client:only="react" />
</Layout>