Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATE 404 PAGE AND MAKE IT RESPONSIVE AND ATTRACTIVE #182

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<link href="/assets/stylesheets/application-ffbab1f8.css" rel="stylesheet"/>

<!--[if lt IE 9]><script src="/assets/javascripts/html5shiv-099439cc.js"></script><script src="/assets/javascripts/respond.min-1eb35b04.js"></script><![endif]-->


<link rel="stylesheet/less" href="style.less"/>
<script src="//cdn.jsdelivr.net/npm/less" ></script>
</head>

<body id="page-home" class=" page-home layout-">
Expand Down Expand Up @@ -84,4 +84,12 @@
</aside>


<h2>Page Not Found</h2>
<div id="mainC">
<div class="message">
<h1>404</h1>
<h3>The page you seek does not exist</h3>
</div>
<div class="footer">
<a href="https://contiv.io/" title="home" target="_blank">HOME<span></span></a>
</div>
</div>
115 changes: 115 additions & 0 deletions style.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
body, html {
background: #000;
position: relative;
margin: 0;
width: 100%;
height: 100%;
}
#mainC {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-family: sans-serif;
max-width: 340px;
-webkit-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;

.message {
font-size: 16px;
text-align: center;
h1 {
margin: 0;
padding: 0;
font-size: 11em;
transform: skewY(-5deg);
transition: 0.4s ease-in-out all;
&:hover {
text-shadow: 20px 20px 0 fade(#afd33d, 10%);
}
@media (max-width: 300px) {
font-size: 50vw;
}
}
h3 {
color: #afd33d;
font-size: 0.9em;
font-weight: lighter;
line-height: 1;
@media (max-width: 300px) {
font-size: 5vw;
}
}
}
.footer {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 100%;

a {
position: relative;
flex: 1;
color: rgba(255, 255, 255, 0.6);
text-decoration: none;
border-radius: 3px;
border: 1px solid rgba(255, 255, 255, 0.6);
margin: 0 20px;
text-align: center;
padding: 10px 0;
overflow: hidden;
transition: all 0.2s ease-in-out;
z-index:3;

@media (max-width: 300px) {
flex: 5 100%;
width: 100%;
}

&:hover {
border: 1px solid rgba(255, 255, 255, 1);
color: #121212;

span {
width: 310px;
height: 310px;
}
}
span {
content:'';
position: absolute;
background: #afd33d;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 0;
height: 0;
border-radius: 50%;
transition: all 0.5s ease;
z-index: -1;

@media (max-width: 300px) {
transition: all 0.2s ease-in;
}

&:active {
background: lighten(#afd33d, 10%);
}
}
}
.legal {
text-align: center;
flex: 3;
color: fade(#ccc, 50%);

@media (max-width: 300px) {
font-size: 4vw;
flex: 5 100%;
padding: 5px 10px;
}
}
}
}