-
-
Notifications
You must be signed in to change notification settings - Fork 65
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 #46 from myselfshivams/main
added:: Custom 404 page and meta tags for SEO
- Loading branch information
Showing
4 changed files
with
180 additions
and
23 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
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,69 @@ | ||
import Link from 'next/link'; | ||
|
||
const Custom404 = () => { | ||
return ( | ||
<div style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '70vh', | ||
backgroundColor: 'rgba(255, 255, 255, 0.8)', | ||
color: '#000000', | ||
fontFamily: 'Arial, sans-serif', | ||
textAlign: 'center', | ||
padding: '40px', | ||
boxSizing: 'border-box', | ||
borderRadius: '10px', | ||
backdropFilter: 'blur(10px)', | ||
width: '90%', | ||
maxWidth: '900px', | ||
margin: '0 auto', | ||
}}> | ||
<h1 style={{ | ||
fontSize: '72px', | ||
fontWeight: 'bold', | ||
marginBottom: '20px', | ||
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.1)', | ||
}}> | ||
404 | ||
</h1> | ||
<h2 style={{ | ||
fontSize: '36px', | ||
marginBottom: '10px', | ||
color: '#333333', | ||
}}> | ||
Page Not Found | ||
</h2> | ||
<p style={{ | ||
fontSize: '18px', | ||
marginBottom: '30px', | ||
maxWidth: '600px', | ||
lineHeight: '1.5', | ||
color: '#555555', | ||
}}> | ||
Sorry, the page you are looking for does not exist. Please check the URL or return to the home page. | ||
</p> | ||
<Link href="/" style={{ | ||
padding: '10px 20px', | ||
backgroundColor: '#000000', | ||
color: '#ffffff', | ||
borderRadius: '5px', | ||
textDecoration: 'none', | ||
fontWeight: 'bold', | ||
transition: 'background-color 0.3s', | ||
}}> | ||
Go back to Home | ||
</Link> | ||
<p style={{ | ||
marginTop: '20px', | ||
color: '#777777', | ||
fontSize: '14px', | ||
}}> | ||
Or you can try searching for what you need. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Custom404; |
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 |
---|---|---|
|
@@ -148,4 +148,4 @@ export default function Home() { | |
|
||
</> | ||
); | ||
} | ||
} |
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,69 @@ | ||
import Link from 'next/link'; | ||
|
||
const Custom404 = () => { | ||
return ( | ||
<div style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '70vh', | ||
backgroundColor: 'rgba(255, 255, 255, 0.8)', | ||
color: '#000000', | ||
fontFamily: 'Arial, sans-serif', | ||
textAlign: 'center', | ||
padding: '40px', | ||
boxSizing: 'border-box', | ||
borderRadius: '10px', | ||
backdropFilter: 'blur(10px)', | ||
width: '90%', | ||
maxWidth: '900px', | ||
margin: '0 auto', | ||
}}> | ||
<h1 style={{ | ||
fontSize: '72px', | ||
fontWeight: 'bold', | ||
marginBottom: '20px', | ||
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.1)', | ||
}}> | ||
Sorry! | ||
</h1> | ||
<h2 style={{ | ||
fontSize: '36px', | ||
marginBottom: '10px', | ||
color: '#333333', | ||
}}> | ||
Page Under Construction | ||
</h2> | ||
<p style={{ | ||
fontSize: '18px', | ||
marginBottom: '30px', | ||
maxWidth: '600px', | ||
lineHeight: '1.5', | ||
color: '#555555', | ||
}}> | ||
Sorry, this page is currently under construction. We’re working hard to get it ready for you. | ||
</p> | ||
<Link href="/" style={{ | ||
padding: '10px 20px', | ||
backgroundColor: '#000000', | ||
color: '#ffffff', | ||
borderRadius: '5px', | ||
textDecoration: 'none', | ||
fontWeight: 'bold', | ||
transition: 'background-color 0.3s', | ||
}}> | ||
Go back to Home | ||
</Link> | ||
<p style={{ | ||
marginTop: '20px', | ||
color: '#777777', | ||
fontSize: '14px', | ||
}}> | ||
Or you can try searching for what you need. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Custom404; |