style 404 page

This commit is contained in:
Chester How 2020-09-16 13:02:00 +08:00
parent 92f6a2577b
commit 34df66d7ef
2 changed files with 27 additions and 69 deletions

View File

@ -2,14 +2,14 @@
layout: default
permalink: /404.html
title: "404"
description: "page not found :("
---
<div class="notfound">
<div class="notfound-main">
<div class="notfound-content">
<h3>Oops! Page not found</h3>
<h1><span>4</span><span>0</span><span>4</span></h1>
</div>
<h2>{{page.description}}</h2>
</div>
</div>
<h1 class="notfound-error">404: Page not found</h1>
<div class="notfound-line"></div>
<p class="notfound-message">
Oops! We can't seem to find the page you are looking for. Let's
<a href="{{ site.baseurl }}/">head back home</a>.
</p>
<p></p>
</div>

View File

@ -1,64 +1,22 @@
.notfound {
position: relative;
height: 100vh;
position: relative;
text-align: center;
margin: 4rem 0;
&-main {
position: absolute;
left: 50%;
top: 50%;
&-error {
font-size: 4rem;
margin: 1rem 0;
}
width: 100%;
line-height: 1.4;
text-align: center;
&-line {
border-top: 0.4rem solid $default-shade;
display: block;
margin: 0 auto 3rem;
width: 4rem;
}
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
h2 {
font-size: 20px;
font-weight: 400;
text-transform: uppercase;
color: #000;
margin-top: 0px;
margin-bottom: 25px;
}
}
&-content {
position: relative;
height: 260px;
h1 {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 256px;
font-weight: 800;
margin: 0px;
color: #262626;
text-transform: uppercase;
letter-spacing: -40px;
margin-left: -20px;
span {
text-shadow: -8px 0px 0px #fff;
}
}
h3 {
position: relative;
font-size: 16px;
font-weight: 700;
text-transform: uppercase;
color: #262626;
margin: 0px;
letter-spacing: 3px;
padding-left: 6px;
}
}
}
&-message {
max-width: 25rem;
margin: 0 auto;
}
}