-
Notifications
You must be signed in to change notification settings - Fork 8k
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 #1113 from Saurav017/404-Page
Added a 404 Page created using HTML and Plain CSS
- Loading branch information
Showing
3 changed files
with
270 additions
and
2 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,56 @@ | ||
<!-- 404 Page using Vanilla CSS --> | ||
|
||
|
||
<!DOCTYPE html> | ||
|
||
<html lang="en" dir="ltr"> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
|
||
<title>404 Error Page</title> | ||
|
||
<link rel="stylesheet" href="style.css"> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div id="error-page"> | ||
|
||
<div class="content"> | ||
|
||
<h2 class="header" data-text="404"> | ||
|
||
404 | ||
|
||
</h2> | ||
|
||
<h4 data-text="Opps! Page not found"> | ||
|
||
Opps! Page not found | ||
|
||
</h4> | ||
|
||
<p> | ||
|
||
Sorry, the page you're looking for doesn't exist. If you think something is broken, report a problem. | ||
|
||
</p> | ||
|
||
<div class="btns"> | ||
|
||
<a href="#">return home</a> | ||
|
||
<a href="#">report problem</a> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |
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,213 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap'); | ||
|
||
*{ | ||
|
||
margin: 0; | ||
|
||
padding: 0; | ||
|
||
outline: none; | ||
|
||
box-sizing: border-box; | ||
|
||
font-family: 'Poppins', sans-serif; | ||
|
||
} | ||
|
||
body{ | ||
|
||
height: 100vh; | ||
|
||
background: -webkit-repeating-linear-gradient(-45deg, #71b7e6, #69a6ce, #b98acc, #ee8176, #b98acc, #69a6ce, #9b59b6); | ||
|
||
background-size: 400%; | ||
|
||
} | ||
|
||
#error-page{ | ||
|
||
position: absolute; | ||
|
||
top: 10%; | ||
|
||
left: 15%; | ||
|
||
right: 15%; | ||
|
||
bottom: 10%; | ||
|
||
display: flex; | ||
|
||
align-items: center; | ||
|
||
justify-content: center; | ||
|
||
background: #fff; | ||
|
||
box-shadow: 0px 5px 10px rgba(0,0,0,0.1); | ||
|
||
} | ||
|
||
#error-page .content{ | ||
|
||
max-width: 600px; | ||
|
||
text-align: center; | ||
|
||
} | ||
|
||
.content h2.header{ | ||
|
||
font-size: 18vw; | ||
|
||
line-height: 1em; | ||
|
||
position: relative; | ||
|
||
} | ||
|
||
.content h2.header:after{ | ||
|
||
position: absolute; | ||
|
||
content: attr(data-text); | ||
|
||
top: 0; | ||
|
||
left: 0; | ||
|
||
right: 0; | ||
|
||
background: -webkit-repeating-linear-gradient(-45deg, #71b7e6, #69a6ce, #b98acc, #ee8176, #b98acc, #69a6ce, #9b59b6); | ||
|
||
background-size: 400%; | ||
|
||
-webkit-background-clip: text; | ||
|
||
-webkit-text-fill-color: transparent; | ||
|
||
text-shadow: 1px 1px 2px rgba(255,255,255,0.25); | ||
|
||
animation: animate 10s ease-in-out infinite; | ||
|
||
} | ||
|
||
@keyframes animate { | ||
|
||
0%{ | ||
|
||
background-position: 0 0; | ||
|
||
} | ||
|
||
25%{ | ||
|
||
background-position: 100% 0; | ||
|
||
} | ||
|
||
50%{ | ||
|
||
background-position: 100% 100%; | ||
|
||
} | ||
|
||
75%{ | ||
|
||
background-position: 0% 100%; | ||
|
||
} | ||
|
||
100%{ | ||
|
||
background-position: 0% 0%; | ||
|
||
} | ||
|
||
} | ||
|
||
.content h4{ | ||
|
||
font-size: 1.5em; | ||
|
||
margin-bottom: 20px; | ||
|
||
text-transform: uppercase; | ||
|
||
color: #000; | ||
|
||
font-size: 2em; | ||
|
||
max-width: 600px; | ||
|
||
position: relative; | ||
|
||
} | ||
|
||
.content h4:after{ | ||
|
||
position: absolute; | ||
|
||
content: attr(data-text); | ||
|
||
top: 0; | ||
|
||
left: 0; | ||
|
||
right: 0; | ||
|
||
text-shadow: 1px 1px 2px rgba(255,255,255,0.4); | ||
|
||
-webkit-background-clip: text; | ||
|
||
-webkit-text-fill-color: transparent; | ||
|
||
} | ||
|
||
.content p{ | ||
|
||
font-size: 1.2em; | ||
|
||
color: #0d0d0d; | ||
|
||
} | ||
|
||
.content .btns{ | ||
|
||
margin: 25px 0; | ||
|
||
display: inline-flex; | ||
|
||
} | ||
|
||
.content .btns a{ | ||
|
||
display: inline-block; | ||
|
||
margin: 0 10px; | ||
|
||
text-decoration: none; | ||
|
||
border: 2px solid #69a6ce; | ||
|
||
color: #69a6ce; | ||
|
||
font-weight: 500; | ||
|
||
padding: 10px 25px; | ||
|
||
border-radius: 25px; | ||
|
||
text-transform: uppercase; | ||
|
||
transition: all 0.3s ease; | ||
|
||
} | ||
|
||
.content .btns a:hover{ | ||
|
||
background: #69a6ce; | ||
|
||
color: #fff; | ||
|
||
} |