mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #411 from YunoHost/spooky-easter-egg
Add spooky easter egg ;)
This commit is contained in:
commit
86a9f5b4de
3 changed files with 19 additions and 0 deletions
|
@ -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>
|
||||||
|
|
BIN
app/src/assets/spinners/spookycat.gif
Normal file
BIN
app/src/assets/spinners/spookycat.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue