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

feat: 404 not found page style improved #354

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
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
Binary file added public/assets/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/app/[others]/page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.fluid{
animation: updown 1.5s ease-in-out infinite alternate;
}

@keyframes updown {
from {
transform: translateY(0px);
}
to {
transform: translateY(10px);
}
}
20 changes: 9 additions & 11 deletions src/app/[others]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import { ButtonLong } from "@/components/core/buttons";
import Footer from "@/components/core/footer";
import Navbar from "@/components/core/navbar";
import NotFoundPic from "/public/assets/404.png";
import './page.css';

export default function Custom404() {
return (
<>
<Navbar />

<section className="max-w-screen-lg mx-auto">
<div className="flex flex-col items-center justify-center h-[64vh]">
<h1 className="my-4 font-semibold text-4xl tracking-wide">
Error 404: Page does not Exist!
</h1>
<h2 className="my-4 text-2xl">Please check the url again</h2>
<ButtonLong href="/" size="big">
Get Back To Home
</ButtonLong>
<div className="flex flex-col items-center justify-center h-[80vh]">
<img src={NotFoundPic.src} alt="not found image" className="max:w-2/3 sm:w-2/3 fluid" />
RamakrushnaBiswal marked this conversation as resolved.
Show resolved Hide resolved
<ButtonLong href="/" children={"Go Home"} size={"big"}/>
RamakrushnaBiswal marked this conversation as resolved.
Show resolved Hide resolved
</div>
</section>

<Footer />
<br />
<br />
<br />
<Footer/>
</>
);
}
Loading