Profectus-Demo/src/App.vue

48 lines
914 B
Vue
Raw Normal View History

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