This repository has been archived on 2019-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
meticulous/src/App.vue

66 lines
1.0 KiB
Vue
Raw Normal View History

2019-07-14 21:05:42 +00:00
<template>
<div id="app">
2019-07-15 16:03:15 +00:00
<PlayerArea
v-for="(player, id) of players"
:key="id"
:player="player"
:id="id"
:class="{ flipped: id == 0 }"
/>
2019-07-14 21:05:42 +00:00
</div>
</template>
2019-07-15 16:03:15 +00:00
<style lang="scss">
@import url("assets/fonts/fonts.css");
html,
body {
margin: 0;
height: 100vh;
}
#app {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: row;
flex-direction: column;
background: linear-gradient(to bottom, #222, #333) #222;
color: white;
font-family: "Londrina Solid", sans-serif;
}
.flipped {
transform: rotate(180deg);
}
@media (orientation: landscape) {
#app {
flex-direction: row;
}
.flipped {
transform: rotate(0);
}
}
</style>
2019-07-14 21:05:42 +00:00
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
2019-07-15 16:03:15 +00:00
import { Getter } from "vuex-class";
import PlayerArea from "./components/PlayerArea.vue";
import { Player } from "./types";
2019-07-14 21:05:42 +00:00
@Component({
components: {
2019-07-15 16:03:15 +00:00
PlayerArea
2019-07-14 21:05:42 +00:00
}
})
2019-07-15 16:03:15 +00:00
export default class App extends Vue {
@Getter("players") private players!: Player[];
2019-07-14 21:05:42 +00:00
}
2019-07-15 16:03:15 +00:00
</script>