mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 19:42:01 +00:00
45 lines
653 B
Vue
45 lines
653 B
Vue
<template>
|
|
<div class="loading-screen">
|
|
<div
|
|
class="loading-animation"
|
|
:style="`height: ${size}px ; width: ${size}px ;`"
|
|
/>
|
|
<div
|
|
v-if="msg"
|
|
class="title"
|
|
>
|
|
{{ $props.msg }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
msg: String,
|
|
size: {
|
|
default: 100
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
.loading-screen{
|
|
margin: auto;
|
|
}
|
|
.loading-animation{
|
|
background-size: 100%;
|
|
background-image: url(../assets/spinner.svg);
|
|
display: table;
|
|
margin: auto;
|
|
}
|
|
.title {
|
|
display: table;
|
|
margin: auto;
|
|
color: white;
|
|
font-size: 20px;
|
|
text-align: center;
|
|
}
|
|
</style>
|