Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

not found page added #231

Merged
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
52 changes: 52 additions & 0 deletions website/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
"use client";

import { NextPage } from "next";
import styled from "styled-components";
import { IMAGES } from "../constants/assets";
import Image from "next/image";

const Custom404: NextPage = () => {
return (
<S.Container>
<S.SubHeading>Opps page not found</S.SubHeading>
<S.ImageContainer>
<Image
src={IMAGES?.NOT_FOUND}
alt="page-not-found"
width={350}
height={280}
/>
</S.ImageContainer>
<S.SubHeading>
We are sorry but the page you are rquested was not found
</S.SubHeading>
</S.Container>
);
};

namespace S {
export const Container = styled.div`
height: 69vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 55px;
`;

export const SubHeading = styled.div`
width: 80%;
display: flex;
align-items: center;
justify-content: center;
text-transform: uppercase;
color: var(--gray-600);
font-size: 16px;
font-weight: 700;
text-align: center;
`;

export const ImageContainer = styled.div``;
}

export default Custom404;
3 changes: 3 additions & 0 deletions website/constants/assets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const IMAGES = {
NOT_FOUND: "/not-found.png",
};
Binary file added website/public/not-found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/public/not-found1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading