2022-01-10 07:11:55 +00:00
|
|
|
<template>
|
2022-01-15 07:13:20 +00:00
|
|
|
<div class="relative">
|
|
|
|
<div
|
|
|
|
class="key-art absolute top-0 left-0 right-0"
|
|
|
|
:class="{
|
|
|
|
instruments: $route.path === '/',
|
|
|
|
apprentices: $route.path === '/apprentices',
|
|
|
|
missions: $route.path === '/missions',
|
|
|
|
timeMachine: $route.path === '/timemachine',
|
|
|
|
timeMagic: $route.path === '/timemagic',
|
|
|
|
wisdom: $route.path === '/wisdom',
|
|
|
|
}"
|
|
|
|
/>
|
2022-01-10 07:11:55 +00:00
|
|
|
<div
|
2022-01-14 03:57:35 +00:00
|
|
|
class="absolute top-0 bottom-0 left-0 right-0 flex flex-col items-center justify-center"
|
|
|
|
:class="`text-${$store.getters.activeTab.darkColor}`"
|
2022-01-13 05:37:46 +00:00
|
|
|
@click="click"
|
2022-01-10 07:11:55 +00:00
|
|
|
>
|
|
|
|
<span
|
2022-01-10 10:15:00 +00:00
|
|
|
class="spare-time flex flex-row items-center font-bold rounded-2xl select-none"
|
2022-01-10 07:11:55 +00:00
|
|
|
>
|
|
|
|
<span
|
2022-01-13 21:02:43 +00:00
|
|
|
class="spare-time-value text-3xl md:text-5xl"
|
|
|
|
v-text="currencyText"
|
2022-01-10 07:11:55 +00:00
|
|
|
/>
|
2022-01-13 21:02:43 +00:00
|
|
|
<span class="fas fa-hourglass-half text-xl pl-2 md:text-3xl md:pt-1" />
|
2022-01-10 07:11:55 +00:00
|
|
|
</span>
|
2022-01-15 07:13:20 +00:00
|
|
|
<span
|
|
|
|
class="spare-time-explanation text-sm md:text-xl select-none mt-2 font-bold"
|
|
|
|
>
|
2022-01-14 03:57:35 +00:00
|
|
|
Tap to gain
|
|
|
|
<b><span class="fas fa-hourglass-half" /> Spare Time</b>
|
|
|
|
</span>
|
2022-01-10 07:11:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-12 01:17:11 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
2022-01-12 01:19:17 +00:00
|
|
|
computed: {
|
|
|
|
currencyText() {
|
2022-01-14 19:46:02 +00:00
|
|
|
return this.$store.getters.suffixedDecimalText(this.$store.state.currency)
|
2022-01-12 01:19:17 +00:00
|
|
|
},
|
|
|
|
},
|
2022-01-15 07:13:20 +00:00
|
|
|
mounted() {
|
|
|
|
console.log(this.$route)
|
|
|
|
},
|
2022-01-13 05:37:46 +00:00
|
|
|
methods: {
|
|
|
|
click() {
|
2022-01-14 07:16:18 +00:00
|
|
|
if (this.$store.state.gameStopped) return
|
|
|
|
|
2022-01-13 05:37:46 +00:00
|
|
|
this.$store.commit('addCurrency', 1)
|
|
|
|
if (
|
|
|
|
this.$store.getters.isTabUnlocked('Time Magic') &&
|
|
|
|
this.$store.state.manaMax > this.$store.state.mana
|
|
|
|
) {
|
|
|
|
this.$store.commit('tickMana')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2022-01-12 01:17:11 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-01-10 07:11:55 +00:00
|
|
|
<style scoped>
|
|
|
|
.key-art {
|
2022-01-15 07:13:20 +00:00
|
|
|
background-repeat: repeat;
|
2022-01-10 07:11:55 +00:00
|
|
|
background-position: center;
|
2022-01-15 07:13:20 +00:00
|
|
|
opacity: 0.3;
|
|
|
|
margin-top: -3rem;
|
|
|
|
height: calc(100% + 3rem);
|
|
|
|
transition: background-image 2000ms, background-position 2000ms,
|
|
|
|
background-size 2000ms;
|
|
|
|
}
|
|
|
|
.key-art.instruments {
|
|
|
|
background: url('/Instruments.svg');
|
|
|
|
--size: 230px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: -30px;
|
|
|
|
background-position-y: 24px;
|
|
|
|
}
|
|
|
|
.key-art.apprentices {
|
|
|
|
background: url('/Apprentices.svg');
|
|
|
|
--size: 275px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: -15px;
|
|
|
|
background-position-y: 7px;
|
|
|
|
}
|
|
|
|
.key-art.missions {
|
|
|
|
background: url('/Missions.svg');
|
|
|
|
--size: 275px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: -44px;
|
|
|
|
background-position-y: 7px;
|
|
|
|
}
|
|
|
|
.key-art.timeMachine {
|
|
|
|
background: url('/TimeMachine.svg');
|
|
|
|
--size: 380px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: 0;
|
|
|
|
background-position-y: 7px;
|
|
|
|
}
|
|
|
|
.key-art.timeMagic {
|
|
|
|
background: url('/TimeMagic.svg');
|
|
|
|
--size: 176px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: -3px;
|
|
|
|
background-position-y: -21px;
|
|
|
|
}
|
|
|
|
.key-art.wisdom {
|
|
|
|
background: url('/Wisdom.svg');
|
|
|
|
--size: 153px;
|
|
|
|
background-size: var(--size) var(--size);
|
|
|
|
background-position-x: 42px;
|
|
|
|
background-position-y: -21px;
|
2022-01-10 07:11:55 +00:00
|
|
|
}
|
|
|
|
.spare-time {
|
2022-01-10 10:15:00 +00:00
|
|
|
--color: rgba(2555, 255, 255, 0.5);
|
|
|
|
box-shadow: 0px 0px 20px 20px var(--color);
|
2022-01-14 03:57:35 +00:00
|
|
|
background: var(--color);
|
|
|
|
transition: color 2000ms;
|
|
|
|
}
|
|
|
|
.spare-time-explanation {
|
2022-01-15 07:13:20 +00:00
|
|
|
--color: rgba(2555, 255, 255, 0.5);
|
2022-01-14 03:57:35 +00:00
|
|
|
box-shadow: 0px 0px 10px 10px var(--color);
|
|
|
|
background: var(--color);
|
2022-01-10 07:11:55 +00:00
|
|
|
transition: color 2000ms;
|
|
|
|
}
|
|
|
|
</style>
|