Created
March 22, 2018 15:00
-
-
Save anoobbava/f028100c28d95fd664bbf59195f26b8b to your computer and use it in GitHub Desktop.
custom errors blog
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
.container | |
=# image_tag('page_not_found.jpg', 'image not found') | |
= image_tag("404.jpg", size: "100x200", alt: "page not found") | |
%h1 OOPS!!!!! | |
%p We’re sorry but it appears that we can’t find the page you were looking for. Usually this occurs because of a page that previously existed was removed or you’ve mistyped the address. | |
%span.go-back | |
%a{:href => "/"} Go back | |
:css | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, | |
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", | |
"Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; | |
color: #727272; | |
line-height: 1.6; | |
} | |
.container { | |
max-width: 500px; | |
margin: 0 auto; | |
} | |
h1 { | |
margin: 0 0 40px; | |
font-size: 50px; | |
line-height: 1; | |
color: #252427; | |
font-weight: 700; | |
} | |
h2 { | |
margin: 100px 0 0; | |
font-size: 20px; | |
font-weight: 600; | |
letter-spacing: 0.1em; | |
color: #A299AC; | |
text-transform: uppercase; | |
} | |
p { | |
font-size: 16px; | |
margin: 1em 0; | |
} | |
.go-back a { | |
display: inline-block; | |
margin-top: 3em; | |
padding: 10px; | |
color: #1B1A1A; | |
font-weight: 700; | |
border: solid 2px #e7e7e7; | |
text-decoration: none; | |
font-size: 16px; | |
text-transform: uppercase; | |
letter-spacing: 0.1em; | |
} | |
.go-back a:hover { | |
border-color: #1B1A1A; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment