accounts-frontend/packages/app/pages/404/404.scss

267 lines
4.8 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/fonts.scss';
// Original: http://codepen.io/vanderlanth/pen/rxpNMY
.page {
2020-05-24 04:38:24 +05:30
margin: 80px auto 0;
2020-05-24 04:38:24 +05:30
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.loading {
2020-05-24 04:38:24 +05:30
width: 200px;
height: 100px;
margin-bottom: 50px;
position: relative;
display: flex;
justify-content: center;
align-items: flex-end;
animation: loadStab 1s ease-out infinite;
}
.cube {
2020-05-24 04:38:24 +05:30
width: 50px;
height: 50px;
background: white;
2021-03-26 08:49:04 +05:30
animation: cubeRotateLTR 1s ease-out infinite;
html[dir='rtl'] & {
animation-name: cubeRotateRTL;
}
}
.road {
2020-05-24 04:38:24 +05:30
position: absolute;
width: 100%;
height: 1px;
background: white;
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
bottom: 0;
animation: roadStab 1s ease-out infinite;
}
2021-03-26 08:49:04 +05:30
@keyframes cubeRotateLTR {
2020-05-24 04:38:24 +05:30
0% {
transform: rotate(0deg) translate3D(0, 0, 0);
}
65% {
transform: rotate(45deg) translate3D(0, -13px, 0);
}
90% {
transform: rotate(70deg) translate3D(0, -8px, 0);
}
100% {
transform: rotate(90deg) translate3D(0, 0, 0);
}
}
2021-03-26 08:49:04 +05:30
@keyframes cubeRotateRTL {
0% {
transform: rotate(0deg) translate3D(0, 0, 0);
}
65% {
transform: rotate(-45deg) translate3D(0, -13px, 0);
}
90% {
transform: rotate(-70deg) translate3D(0, -8px, 0);
}
100% {
transform: rotate(-90deg) translate3D(0, 0, 0);
}
}
@keyframes roadStab {
2020-05-24 04:38:24 +05:30
0% {
transform: translate3D(0, 0, 0);
}
60% {
transform: translate3D(0, 2px, 0);
}
90% {
transform: translate3D(0, 4px, 0);
}
100% {
transform: translate3D(0, 0, 0);
}
}
@keyframes loadStab {
2020-05-24 04:38:24 +05:30
0% {
transform: translate3D(0, 0, 0);
}
60% {
transform: translate3D(0, -2px, 0);
}
95% {
transform: translate3D(0, -2px, 0);
}
100% {
transform: translate3D(0, 0, 0);
}
}
//------------------ MOUNTAINS ---------------------
.rocks {
2020-05-24 04:38:24 +05:30
width: 100%;
height: 100%;
position: absolute;
bottom: -50px;
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
overflow: hidden;
animation: roadStab 1s ease-out infinite;
}
@mixin rock($rockName, $bottom, $delay) {
2020-05-24 04:38:24 +05:30
.#{$rockName} {
position: absolute;
border-left: 2px solid transparent;
border-right: 2px solid transparent;
border-bottom: 4px solid white;
bottom: $bottom;
2021-03-26 08:49:04 +05:30
inset-inline-end: -2%;
2020-05-24 04:38:24 +05:30
animation: rockTravelling 10s $delay ease-out infinite;
}
}
@include rock('rockOne', 23px, 0s);
@include rock('rockTwo', 40px, 2s);
@include rock('rockThree', 30px, 6s);
@include rock('rockFour', 10px, 4s);
@include rock('rockFive', 18px, 8s);
@keyframes rockTravelling {
2020-05-24 04:38:24 +05:30
0% {
2021-03-26 08:49:04 +05:30
inset-inline-end: -2%;
2020-05-24 04:38:24 +05:30
}
10% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 8%;
2020-05-24 04:38:24 +05:30
}
20% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 18%;
2020-05-24 04:38:24 +05:30
}
30% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 29%;
2020-05-24 04:38:24 +05:30
}
40% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 40%;
2020-05-24 04:38:24 +05:30
}
50% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 51%;
2020-05-24 04:38:24 +05:30
}
60% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 62%;
2020-05-24 04:38:24 +05:30
}
70% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 72%;
2020-05-24 04:38:24 +05:30
}
80% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 82%;
2020-05-24 04:38:24 +05:30
}
90% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 92%;
2020-05-24 04:38:24 +05:30
}
100% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 102%;
2020-05-24 04:38:24 +05:30
}
}
//------------------ CLOUDS ---------------------
.clouds {
2020-05-24 04:38:24 +05:30
width: 200%;
height: 200%;
animation: roadStab 1s ease-out infinite, cloudStab 1s ease-out infinite;
position: absolute;
bottom: -50px;
2021-03-26 08:49:04 +05:30
inset-inline-start: -50%;
2020-05-24 04:38:24 +05:30
overflow: hidden;
}
.cloud {
2020-05-24 04:38:24 +05:30
position: absolute;
will-change: animation;
2020-05-24 04:38:24 +05:30
background-image: url('./cloud.svg');
background-size: cover;
}
.cloudOne {
2020-05-24 04:38:24 +05:30
composes: cloud;
2020-05-24 04:38:24 +05:30
top: 5px;
width: 100px;
height: 32px;
animation: cloudTravelling 16s linear infinite;
}
.cloudTwo {
2020-05-24 04:38:24 +05:30
composes: cloud;
2020-05-24 04:38:24 +05:30
top: 65px;
2021-03-26 08:49:04 +05:30
inset-inline-end: -30%;
2020-05-24 04:38:24 +05:30
width: 50px;
height: 16px;
animation: cloudTravelling 21s 5s linear infinite;
}
.cloudThree {
2020-05-24 04:38:24 +05:30
composes: cloud;
2020-05-24 04:38:24 +05:30
top: 40px;
2021-03-26 08:49:04 +05:30
inset-inline-end: -30%;
2020-05-24 04:38:24 +05:30
width: 70px;
height: 22px;
animation: cloudTravelling 26s 11s linear infinite;
}
@keyframes cloudTravelling {
2020-05-24 04:38:24 +05:30
0% {
2021-03-26 08:49:04 +05:30
inset-inline-end: -30%;
2020-05-24 04:38:24 +05:30
}
100% {
2021-03-26 08:49:04 +05:30
inset-inline-end: 110%;
2020-05-24 04:38:24 +05:30
}
}
@keyframes cloudStab {
2020-05-24 04:38:24 +05:30
0% {
transform: translate3D(0, 0, 0);
}
60% {
transform: translate3D(0, 2px, 0);
}
85% {
transform: translate3D(0, 2px, 0);
}
100% {
transform: translate3D(0, 0, 0);
}
}
%text {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
text-align: center;
padding: 0 10px;
line-height: 1.2;
}
.text {
2020-05-24 04:38:24 +05:30
@extend %text;
2020-05-24 04:38:24 +05:30
font-size: 24px;
margin-top: 25px;
color: #666;
}
.subText {
2020-05-24 04:38:24 +05:30
@extend %text;
2020-05-24 04:38:24 +05:30
font-size: 16px;
margin-top: 5px;
color: #9a9a9a;
}