Profectus-Niffix/src/App.vue

94 lines
1.5 KiB
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" />
</div>
2021-05-19 22:21:51 +00:00
</template>
<script>
import Nav from './components/system/Nav.vue';
2021-05-20 05:11:03 +00:00
import Tabs from './components/system/Tabs.vue';
import TPS from './components/system/TPS.vue';
import themes from './data/themes.js';
import { mapState } from 'vuex';
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() {
return themes[this.$store.state.theme || "default"];
}
},
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>
<style>
* {
transition-duration: 0.5s;
text-align: center;
font-family: "Roboto Mono", monospace;
font-weight: bold;
table-align: center;
margin: auto;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
*:focus {
outline: none;
webkit-outline: none;
}
body {
overflow: hidden;
min-width: 640px;
transition: none;
}
html, body, #app {
min-height: 100%;
height: 100%;
}
h1, h2, h3, b, input {
display: inline;
}
a,
.link {
display: block;
font-size: 20px;
color: #02f2f2;
cursor: pointer;
text-decoration: none;
}
a:hover,
.link:hover {
transform: scale(1.2, 1.2);
text-shadow: 5px 0 10px #02f2f2,
-3px 0 12px #02f2f2;
}
ul {
list-style-type: none;
}
#app {
background-color: var(--background);
color: var(--color);
2021-05-20 05:11:03 +00:00
display: flex;
flex-flow: column;
}
2021-05-19 22:21:51 +00:00
</style>