Have you ever felt like flipping a table (╯°□°)╯︵ ┻━┻ when you land on a 404 page? Me too!
Created
March 16, 2019 08:47
-
-
Save MM-coder/22eab6d5132cee96faf1917ae610609f to your computer and use it in GitHub Desktop.
My 404 page
This file contains hidden or 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
<div class="code-area"> | |
<span style="color: #777;font-style:italic;"> | |
// 404 page not found. | |
</span> | |
<span> | |
<span style="color:#d65562;"> | |
if | |
</span> | |
(<span style="color:#4ca8ef;">!</span><span style="font-style: italic;color:#bdbdbd;">found</span>) | |
{ | |
</span> | |
<span> | |
<span style="padding-left: 15px;color:#2796ec"> | |
<i style="width: 10px;display:inline-block"></i>throw | |
</span> | |
<span> | |
(<span style="color: #a6a61f">"(╯°□°)╯︵ ┻━┻"</span>); | |
</span> | |
<span style="display:block">}</span> | |
<span style="color: #777;font-style:italic;"> | |
// <a href="/">Go home!</a> | |
</span> | |
</span> | |
</div> |
This file contains hidden or 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
// Inspired by some other person's idea, but repurposed and reimplemented as a 404 page for my personal website. | |
// See it live here: | |
// https://themisec.com/this-page-doesnt-exist |
This file contains hidden or 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
/* Styles of the 404 page of my website. */ | |
body { | |
background: #081421; | |
color: #d3d7de; | |
font-family: "Courier new"; | |
font-size: 18px; | |
line-height: 1.5em; | |
cursor: default; | |
} | |
a { | |
color: #fff; | |
} | |
.code-area { | |
position: absolute; | |
width: 320px; | |
min-width: 320px; | |
top: 50%; | |
left: 50%; | |
-webkit-transform: translate(-50%, -50%); | |
transform: translate(-50%, -50%); | |
} | |
.code-area > span { | |
display: block; | |
} | |
@media screen and (max-width: 320px) { | |
.code-area { | |
font-size: 5vw; | |
min-width: auto; | |
width: 95%; | |
margin: auto; | |
padding: 5px; | |
padding-left: 10px; | |
line-height: 6.5vw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment