forked from GDSC-Jadavpur-University/GDSC-JU-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GDSC-Jadavpur-University#19 from Ritesh-Dabral/fea…
…ture/404 add 404 page
- Loading branch information
Showing
5 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// NotFound.jsx | ||
import React from 'react'; | ||
// import astronaut from '/astronaut.svg'; | ||
// import saturn from '/saturn.svg'; | ||
import {useRouter} from 'next/router' | ||
import Image from 'next/image'; | ||
|
||
const NotFound = () => { | ||
|
||
const navigate = useRouter() | ||
|
||
const handleRedirection = () => { | ||
navigate.push('/') | ||
} | ||
return ( | ||
<div className="bg-[#24344c] h-screen relative overflow-hidden fontDosis"> | ||
<div id="particles-js" className=" bg-[#24344c] fixed w-full h-full opacity-20"></div> | ||
<div className="denied__wrapper absolute bg-[#24344c] denied__wrapper h-[390px] left-1/2 max-w-[390px] mx-auto top-[30%] translate-x-[-50%] translate-y-[-50%] w-full"> | ||
<div className='relative'> | ||
<h1 className="text-center text-white font-Dosis text-[100px] mb-0 font-extrabold">404</h1> | ||
<h3 className="text-center text-white text-base md:text-xl leading-6 max-w-[330px] mx-auto mb-8 font-Dosis font-normal"> | ||
LOST IN | ||
<span className="relative inline-block"> | ||
SPACE | ||
<span className="strikeThru"></span> | ||
</span> | ||
|
||
GDSC? Hmm, looks like that page doesn't exist. | ||
</h3> | ||
<Image id="astronaut" src="/astronaut.svg" alt="Astronaut" className="w-[43px] absolute right-20 top-210 animate-spin animation-linear duration-100" width={43} height={43} /> | ||
<Image id="planet" src="/saturn.svg" alt="Planet" className="absolute w-[390px]" width={390} height={390}/> | ||
</div> | ||
</div> | ||
|
||
<button className='bg-transparent text-white py-2 px-0 border border-white rounded-md w-[150px] text-15 text-center mx-auto align-middle block mb-4 mt-25 fontDosis font-normal bottom-0 absolute left-1/2 translate-x-[-50%] translate-y-[-50%]' onClick={handleRedirection} >Go Home</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import NotFound from '@/components/Error/NotFound'; | ||
|
||
const _404 = () => { | ||
return <NotFound /> | ||
}; | ||
|
||
export default _404; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters