Merge pull request #411 from YunoHost/spooky-easter-egg

Add spooky easter egg ;)
This commit is contained in:
Alexandre Aubin 2021-10-24 23:36:48 +02:00 committed by GitHub
commit 86a9f5b4de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View file

@ -158,6 +158,11 @@ export default {
if (today.getDate() === 1 && today.getMonth() + 1 === 4) { if (today.getDate() === 1 && today.getMonth() + 1 === 4) {
this.$store.commit('SET_SPINNER', 'magikarp') this.$store.commit('SET_SPINNER', 'magikarp')
} }
// Halloween easter egg ;)
if (today.getDate() === 31 && today.getMonth() + 1 === 10) {
this.$store.commit('SET_SPINNER', 'spookycat')
}
} }
} }
</script> </script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -104,5 +104,19 @@ export default {
99% { transform: scale(-1, 1); margin-left: 0;} 99% { transform: scale(-1, 1); margin-left: 0;}
} }
} }
&.spookycat {
height: 40px;
width: 65px;
background-image: url('../../assets/spinners/spookycat.gif');
animation-name: back-and-forth-spookycat;
@keyframes back-and-forth-spookycat {
0%, 100% { transform: scale(1, 1); margin-left: 0; }
49% { transform: scale(1, 1); margin-left: calc(100% - 100px);}
50% { transform: scale(-1, 1); margin-left: calc(100% - 100px);}
99% { transform: scale(-1, 1); margin-left: 0;}
}
}
} }
</style> </style>