Skip to content

Commit

Permalink
Merge pull request #46 from G-Techs/errorPages
Browse files Browse the repository at this point in the history
Error pages color Updates
  • Loading branch information
Jonath-z authored Jun 27, 2022
2 parents a24ae98 + 3467f56 commit 90cbac0
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
20 changes: 20 additions & 0 deletions components/ErrorPages/Error400.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { HomeSubMenuIcon } from '../modules/__modules/Vectors/index'
import error from "../../components/modules/static/images/404.png";
const Error400 = () => {
return (
<div className="flex flex-wrap min-h-screen items-center justify-center">
<div className="flex flex-col items-center justify-center max-w-4xl p-4 text-center">
<img src={error.src} alt="Not Found" className='w-8/12' />
<h2 className="text-3xl font-extrabold pt-4">Oops! This Page is Not Found.</h2>
<p className="p-3 text-base text-gray-400">The requested page dose not exist</p>
<div className="flex justify-center items-center rounded-2xl text-white px-4 py-2 bg-primary mt-4 cursor-pointer">
<HomeSubMenuIcon size={16} className="mr-2" />
<p className="font-lighter text-base">Back to Home</p>
</div>
</div>
</div>
)
}

export default Error400
21 changes: 21 additions & 0 deletions components/ErrorPages/Error500.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react'
import { HomeSubMenuIcon } from '../modules/__modules/Vectors/index'
import error from '../modules/static/images/500.png'
const Error500 = () => {
return (
<div className="flex flex-wrap min-h-screen items-center justify-center">
<div className="flex flex-col items-center justify-center max-w-4xl p-4 text-center">
<img src={error.src} className="w-6/12 lg:w-8/12" alt="Internal Error" />
<h1 className="font-black text-6xl">500</h1>
<h2 className="text-3xl font-black pt-4">Oops! This Page is Not Working.</h2>
<p className="p-3 text-base text-gray-400">The requested is Internal Server Error.</p>
<div className="flex justify-center items-center rounded-2xl text-white px-4 py-2 bg-primary mt-4 cursor-pointer">
<HomeSubMenuIcon size={16} className="mr-2" />
<p className="font-lighter text-base">Back to Home</p>
</div>
</div>
</div>
)
}

export default Error500
Binary file added components/modules/static/images/404.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 components/modules/static/images/500.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 pages/Error/404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import Error400 from '../../components/ErrorPages/Error400'

const error404 = () => {
return (
<div className="h-screen">
<Error400/>
</div>
)
}

export default error404
12 changes: 12 additions & 0 deletions pages/Error/500.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import Error500 from '../../components/ErrorPages/Error500'

const error500 = () => {
return (
<div className='h-scren'>
<Error500/>
</div>
)
}

export default error500

0 comments on commit 90cbac0

Please sign in to comment.