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/Apprentices.vue

32 lines
971 B
Vue
Raw Normal View History

<template>
<div class="tab-content grid flex-col">
<div
2022-01-08 03:46:33 +00:00
v-for="(process, index) in $store.state.processes"
:key="index"
class="flex flex-col mb-4 p-4 rounded border"
:class="`border-${$store.getters.activeTab.darkColor}`"
@click="$store.commit('purchaseWorker', index)"
>
<span class="text-center font-bold pb-2 text-xl">
2022-01-10 03:28:09 +00:00
{{ process.workerCount }} {{ process.worker }}
<template v-if="process.workerCount != 1">s</template>
</span>
<span class="text-left font-semibold">
Each <b>{{ process.worker }}</b> makes your
<b>{{ process.device }}s</b> produce <b>spare time</b> at an increased
rate.
</span>
2022-01-10 03:28:09 +00:00
<span class="text-center text-md pt-2">
Cost for next {{ process.worker }}: {{ process.nextWorkerCost }}
{{ process.buyWorkersWith }}
</span>
</div>
</div>
</template>
<style>
.tab-content {
grid-template-columns: 1fr;
}
</style>