apache monitor animation

This commit is contained in:
Dmitry Belyaev 2021-06-07 14:37:10 +03:00
parent 12542a6d82
commit 841e7bc68e
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -1,19 +1,20 @@
<template> <template>
<transition name="bounce">
<div <div
v-if="isApacheNeedRestart || isApacheRestartPending" v-if="isApacheNeedRestart || isApacheRestartPending"
class=" class="
container container
d-flex d-flex
flex-row flex-row flex-wrap
rounded rounded
bg-warning bg-gradient bg-warning bg-gradient
shadow shadow
p-3 p-3
mt-lg-5 mt-lg-5
w-50
" "
id="apache-monitor"
> >
<span class="fw-bold m-auto me-2">Apache: </span> <span class="fw-bold m-auto me-2 ms-1">Apache: </span>
<span <span
v-if="isApacheNeedRestart && !isApacheRestartPending" v-if="isApacheNeedRestart && !isApacheRestartPending"
class="badge rounded-pill bg-danger m-auto" class="badge rounded-pill bg-danger m-auto"
@ -38,7 +39,7 @@
<button <button
v-if="isApacheNeedRestart && !isApacheRestartPending" v-if="isApacheNeedRestart && !isApacheRestartPending"
type="button" type="button"
class="btn btn-danger btn-sm align-self-end shadow" class="btn btn-danger btn-sm align-self-end shadow mt-1 mb-1"
@click.prevent="updateApacheRestartFlag" @click.prevent="updateApacheRestartFlag"
title="Перезапустить Apache" title="Перезапустить Apache"
v-tooltip:top v-tooltip:top
@ -46,6 +47,7 @@
Перезапустить Перезапустить
</button> </button>
</div> </div>
</transition>
</template> </template>
<script> <script>
@ -63,3 +65,30 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
#apache-monitor {
min-width: 30%;
max-width: 40%;
}
.bounce-enter-active {
animation: bounce-in 0.7s ease-out both;
}
.bounce-leave-active {
animation: bounce-in 0.7s reverse ease-in both;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
50% {
transform: scale(1.25);
}
100% {
transform: scale(1);
}
}
</style>