Skip to content

Instantly share code, notes, and snippets.

@HeNy007
Created February 14, 2022 16:36
Show Gist options
  • Save HeNy007/c2b2dec03fa315add23656830c6994ce to your computer and use it in GitHub Desktop.
Save HeNy007/c2b2dec03fa315add23656830c6994ce to your computer and use it in GitHub Desktop.
Under Maintenance
<div class="container">
<div class="what-is-up">
<div class="spinny-cogs">
<i class="fa fa-cog" aria-hidden="true"></i>
<i class="fa fa-5x fa-cog fa-spin" aria-hidden="true"></i>
<i class="fa fa-3x fa-cog" aria-hidden="true"></i>
</div>
<h1 class="maintenance">Under Maintenance</h1>
<h2>Our developers are hard at work updating your system. Please wait while we do this. We have also made the spinning cogs to distract you.</h2>
</div>
</div>
<a href="//codepen.io/tyberiu88" target="_blank" class="made-by-me" title="Made by Tiberiu Raducea">Tiberiu Raducea</a>
* {
margin:0;
padding:0;
}
html, body {
height: 100%;
background: #434A54;
color: white;
font-family: 'Inconsolata', monospace;
font-size: 100%;
}
.maintenance {
text-transform: uppercase;
margin-bottom: 1rem;
font-size: 3rem;
}
.container {
display: table;
margin: 0 auto;
max-width: 1024px;
width: 100%;
height: 100%;
align-content: center;
position: relative;
box-sizing: border-box;
.what-is-up {
position: absolute;
width: 100%;
top: 50%;
transform: translateY(-50%);
display: block;
vertical-align: middle;
text-align: center;
box-sizing: border-box;
.spinny-cogs {
display: block;
margin-bottom: 2rem;
.fa {
&:nth-of-type(1) {
@extend .fa-spin-one;
}
&:nth-of-type(3) {
@extend .fa-spin-two;
}
}
}
}
}
@-webkit-keyframes fa-spin-one {
0% {
-webkit-transform: translateY(-2rem) rotate(0deg);
transform: translateY(-2rem) rotate(0deg);
}
100% {
-webkit-transform: translateY(-2rem) rotate(-359deg) ;
transform: translateY(-2rem) rotate(-359deg) ;
}
}
@keyframes fa-spin-one {
0% {
-webkit-transform: translateY(-2rem) rotate(0deg);
transform: translateY(-2rem) rotate(0deg);
}
100% {
-webkit-transform: translateY(-2rem) rotate(-359deg) ;
transform: translateY(-2rem) rotate(-359deg) ;
}
}
.fa-spin-one {
-webkit-animation: fa-spin-one 1s infinite linear;
animation: fa-spin-one 1s infinite linear;
}
@-webkit-keyframes fa-spin-two {
0% {
-webkit-transform: translateY(-.5rem) translateY(1rem) rotate(0deg);
transform: translateY(-.5rem) translateY(1rem) rotate(0deg);
}
100% {
-webkit-transform: translateY(-.5rem) translateY(1rem) rotate(-359deg);
transform: translateY(-.5rem) translateY(1rem) rotate(-359deg);
}
}
@keyframes fa-spin-two {
0% {
-webkit-transform: translateY(-.5rem) translateY(1rem) rotate(0deg);
transform: translateY(-.5rem) translateY(1rem) rotate(0deg);
}
100% {
-webkit-transform: translateY(-.5rem) translateY(1rem) rotate(-359deg);
transform: translateY(-.5rem) translateY(1rem) rotate(-359deg);
}
}
.fa-spin-two {
-webkit-animation: fa-spin-two 2s infinite linear;
animation: fa-spin-two 2s infinite linear;
}
.made-by-me {
position: fixed;
text-decoration: none;
box-sizing: border-box;
right: 16px;
bottom: 16px;
width: 44px;
height: 44px;
display: block;
border-radius: 100%;
border: 2px solid white;
box-shadow: 0 0 30px 0 rgba(black, .3);
font-size: 0px;
background: url("https://assets.codepen.io/50099/internal/avatars/users/default.png") no-repeat center;
background-size: cover;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment