Skip to content

Commit

Permalink
Merge pull request #1113 from Saurav017/404-Page
Browse files Browse the repository at this point in the history
Added a 404 Page created using HTML and Plain CSS
  • Loading branch information
fineanmol authored Oct 22, 2021
2 parents 81f1511 + 983260f commit bfa55b7
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@
<a class="box-item" href="https://github.com/NIRMAL122"><span>Nirmal Singh</span></a>
<a class="box-item" href="https://github.com/caspero-62"><span>Uchechukwu Nwafor</span></a>
<a class="box-item" href="https://github.com/YogishaNiraula"><span>Yogisha Niraula</span></a>


<a class="box-item" href="https://github.com/Saurav017"><span>Saurav Purohit</span></a>



Expand Down
56 changes: 56 additions & 0 deletions css/404 Error/index.html
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>
213 changes: 213 additions & 0 deletions css/404 Error/style.css
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;

}

0 comments on commit bfa55b7

Please sign in to comment.