Skip to content

Instantly share code, notes, and snippets.

@cluzier
Created December 12, 2018 00:26
Show Gist options
  • Save cluzier/8df1eb715e52e803a468f4ec5aaa9a56 to your computer and use it in GitHub Desktop.
Save cluzier/8df1eb715e52e803a468f4ec5aaa9a56 to your computer and use it in GitHub Desktop.
404 Page Not Found
.error-page
div
h1(data-h1="404") 404
p(data-p="PAGE NOT FOUND") PAGE NOT FOUND
#particles-js
html, body
height: 100%
overflow: hidden
background: #f7f7f7
.error-page
display: flex
align-items: center
justify-content: center
text-align: center
height: 100%
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif
h1
font-size: 30vh
font-weight: bold
position: relative
margin: -8vh 0 0
padding: 0
&:after
content: attr(data-h1)
position: absolute
top: 0
left: 0
right: 0
color: transparent
/* webkit only for graceful degradation to IE */
background: -webkit-repeating-linear-gradient(-45deg, #71b7e6, #69a6ce, #b98acc, #ee8176, #b98acc, #69a6ce, #9b59b6)
-webkit-background-clip: text
-webkit-text-fill-color: transparent
background-size: 400%
text-shadow: 1px 1px 2px transparentize(#fff, .75)
animation: animateTextBackground 10s ease-in-out infinite
+ p
color: #d6d6d6
font-size: 8vh
font-weight: bold
line-height: 10vh
max-width: 600px
position: relative
&:after
content: attr(data-p)
position: absolute
top: 0
left: 0
right: 0
color: transparent
text-shadow: 1px 1px 2px transparentize(#fff, .5)
-webkit-background-clip: text
-moz-background-clip: text
background-clip: text
#particles-js
position: fixed
top: 0
right: 0
bottom: 0
left: 0
@keyframes animateTextBackground
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
@keyframes fadeIn
0%
opacity: 0
100%
opacity: 1
@media (max-width: 767px)
.error-page h1
font-size: 32vw
+ p
font-size: 8vw
line-height: 10vw
max-width: 70vw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment