chromatic-lattice/src/App.vue

55 lines
1.2 KiB
Vue
Raw Normal View History

2021-05-19 22:21:51 +00:00
<template>
<div id="modal-root" :style="theme" />
<div class="app" @mousemove="updateMouse" :style="theme" :class="{ useHeader }">
<Nav v-if="useHeader" />
<Tabs />
<TPS v-if="showTPS" />
<GameOverScreen />
<NaNScreen />
</div>
2021-05-19 22:21:51 +00:00
</template>
<script lang="ts">
import { defineComponent } from "vue";
import themes from "./data/themes";
import player from "./game/player";
import modInfo from "./data/modInfo.json";
import { mapState } from "./util/vue";
import "./main.css";
export default defineComponent({
name: "App",
data() {
return { useHeader: modInfo.useHeader };
},
computed: {
...mapState(["showTPS"]),
theme() {
return themes[player.theme].variables;
}
},
methods: {
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>
2021-07-24 22:08:52 +00:00
.app {
background-color: var(--background);
color: var(--color);
display: flex;
flex-flow: column;
min-height: 100%;
height: 100%;
2021-07-24 22:08:52 +00:00
}
#modal-root {
position: absolute;
min-height: 100%;
height: 100%;
}
2021-05-19 22:21:51 +00:00
</style>