This repository has been archived on 2024-03-13. You can view files and clone it, but cannot push or open issues or pull requests.
timekeeper/pages/TimeMagic.vue

49 lines
1.2 KiB
Vue
Raw Normal View History

2022-01-10 03:28:09 +00:00
<template>
<div class="md:pt-4 pt-2 pb-16">
<div
class="mana-bar relative mx-auto rounded-full overflow-hidden border-2"
:class="`text-${$store.getters.activeTab.color} border-${$store.getters.activeTab.darkColor}`"
>
<progress
class="absolute top-0 right-0 left-0 w-full h-full"
:max="$store.state.manaMax"
:value="$store.state.mana"
/>
<span
class="relative block pt-1 pb-2 text-center text-lg font-semibold"
:class="`text-${$store.getters.activeTab.darkColor}`"
>
<span class="mr-1"
>{{ $store.state.mana }} / {{ $store.state.manaMax }}</span
>
<span class="text-base pt-1 ml-2 fas fa-star" />
</span>
</div>
<h2 class="font-semibold text-lg text-center pt-4 md:mt-8">
Spells coming soon!
</h2>
</div>
2022-01-10 03:28:09 +00:00
</template>
<style scoped>
.mana-bar {
width: 75%;
}
/* progress bars for all browsers */
progress::-webkit-progress-bar {
background-color: rgba(255, 255, 255, 0.1);
width: 100%;
}
progress {
color: currentColor;
background-color: rgba(255, 255, 255, 0.1);
}
progress::-webkit-progress-value {
background-color: currentColor;
}
progress::-moz-progress-bar {
background-color: currentColor;
}
</style>