chromatic-lattice/src/App.vue

47 lines
898 B
Vue
Raw Normal View History

2021-05-19 22:21:51 +00:00
<template>
<div id="app" @mousemove="updateMouse" :style="theme">
<Nav />
2021-05-20 05:11:03 +00:00
<Tabs />
<TPS v-if="showTPS" />
2021-06-16 04:46:34 +00:00
<GameOverScreen />
2021-06-12 05:41:25 +00:00
<portal-target name="modal-root" multiple />
</div>
2021-05-19 22:21:51 +00:00
</template>
<script>
2021-05-26 01:57:02 +00:00
import Nav from './components/system/Nav';
import Tabs from './components/system/Tabs';
import TPS from './components/system/TPS';
import themes from './data/themes';
import { mapState } from 'vuex';
2021-06-12 04:38:16 +00:00
import { player } from './store/proxies';
import './main.css';
2021-05-19 22:21:51 +00:00
export default {
name: 'App',
components: {
2021-05-20 05:11:03 +00:00
Nav, Tabs, TPS
},
computed: {
...mapState([ 'showTPS' ]),
theme() {
2021-06-12 04:38:16 +00:00
return themes[player.theme].variables;
}
},
methods: {
2021-05-20 05:11:03 +00:00
updateMouse(/* event */) {
// TODO use event to update mouse position for particles
}
}
};
2021-05-19 22:21:51 +00:00
</script>
2021-06-12 04:38:16 +00:00
<style scoped>
#app {
background-color: var(--background);
color: var(--color);
2021-05-22 20:29:06 +00:00
display: flex;
flex-flow: column;
}
2021-05-19 22:21:51 +00:00
</style>