From 484f773e8aa59bf04568791f428895ebe5efecd5 Mon Sep 17 00:00:00 2001 From: pskfyi Date: Sat, 8 Jan 2022 15:42:22 -0800 Subject: [PATCH] chore: rename tabs, declare routes, use icons for tabs; layout updates --- components/GameTab.vue | 10 ++++++---- pages/index.vue | 8 ++++---- store/index.js | 38 +++++++++++++++++++------------------- 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/components/GameTab.vue b/components/GameTab.vue index 9b18829..fad4b98 100644 --- a/components/GameTab.vue +++ b/components/GameTab.vue @@ -4,10 +4,12 @@ :class="[colorClasses, index < 5 && 'mr-px']" @click="$store.commit('setActiveTab', index)" > - - + + diff --git a/pages/index.vue b/pages/index.vue index 23aab39..407b1e4 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -10,7 +10,7 @@
Dec. 1990 @@ -44,7 +44,7 @@
-
+
.page { - grid-template-rows: 4rem 1fr auto; + grid-template-rows: 0rem 1fr auto; } main { - grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 2fr); + grid-template-rows: auto minmax(0, 2fr) auto auto minmax(0, 3fr); } .units-background { diff --git a/store/index.js b/store/index.js index 1f04fb8..8624bdd 100644 --- a/store/index.js +++ b/store/index.js @@ -5,52 +5,52 @@ export const state = () => ({ activeTabIndex: 0, tabs: [ { - id: 'instruments', - label: '1', - title: 'Instruments', + route: '/', + label: 'fas fa-clock', + title: 'Timekeeping Instruments', darkColor: 'yellow-600', lightColor: 'yellow-200', locked: false, }, { - id: 'upgrades', - label: '2', - title: 'Upgrades', + route: '/apprentices', + label: 'fas fa-user-friends', + title: 'Apprentices', darkColor: 'blue-600', lightColor: 'blue-200', locked: false, }, { - id: 'missions', - label: '3', + route: '/missions', + label: 'fas fa-th-list', title: 'Missions', darkColor: 'violet-600', lightColor: 'violet-200', - locked: true, + locked: false, }, { - id: 'timemachine', - label: '4', + route: '/timemachine', + label: 'fas fa-fast-forward', title: 'Time Machine', darkColor: 'lime-600', lightColor: 'lime-200', - locked: true, + locked: false, }, { - id: 'achievements', - label: '5', + route: '/timemagic', + label: 'fas fa-eye', title: 'Time Magic', darkColor: 'orange-600', lightColor: 'orange-200', - locked: true, + locked: false, }, { - id: 'prestige', - label: '6', - title: 'Etc.', + route: '/wisdom', + label: 'fas fa-book-open', + title: 'Wisdom', darkColor: 'teal-600', lightColor: 'teal-200', - locked: true, + locked: false, }, ], currency: new Decimal(0),