2022-01-09 19:28:09 -08:00
< template >
2022-01-12 21:37:46 -08:00
< 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 } } < / s p a n
>
< span class = "text-base pt-1 ml-2 fas fa-star" / >
< / span >
< / div >
2022-01-13 19:57:35 -08:00
< p class = "text-lg text-center py-2 border-b-2 border-current" >
Tapping to gain
< b > < span class = "fas fa-hourglass-half text-base" / > Spare Time < / b >
< br class = "md:hidden" / >
now also gains
< b > < span class = "fas fa-star text-base" / > Mana < / b >
< / p >
2022-01-13 21:38:19 -08:00
< h2 class = "text-xl font-semibold text-center pt-8" > Spells < / h2 >
< responsive-grid min = "1" mid = "1" max = "1" class = "pt-2 md:pt-4 text-center" >
< p > Spells coming soon ! < / p >
< / responsive-grid >
< h2 class = "text-xl font-semibold text-center pt-8" > Philosopher ' s Stone < / h2 >
< responsive-grid class = "pt-2 md:pt-4" >
< philosophers-stone-button
v - for = "action in $store.state.philosophersStoneActions"
: key = "action.name"
: action = "action"
/ >
< / responsive-grid >
2022-01-12 21:37:46 -08:00
< / div >
2022-01-09 19:28:09 -08:00
< / template >
2022-01-12 21:37:46 -08:00
2022-01-13 21:38:19 -08:00
< script >
import PhilosophersStoneButton from '~/components/PhilosophersStoneButton.vue'
export default {
components : { PhilosophersStoneButton } ,
data ( ) {
return {
riteOfChronosTime : 300 ,
}
} ,
methods : {
castSpell ( name ) {
this . $store . commit ( 'spendMana' , 100 )
if ( name === 'Rite of Chronos' ) {
//
}
} ,
} ,
}
< / script >
2022-01-12 21:37:46 -08:00
< 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 >