townsquare/src/App.vue

66 lines
1.4 KiB
Vue

<template>
<div id="app">
<TownSquare :is-public="isPublic"></TownSquare>
<div class="controls">
<button v-on:click="togglePublic">Toggle</button>
</div>
</div>
</template>
<script>
import TownSquare from "./components/TownSquare.vue";
export default {
components: {
TownSquare
},
data: () => ({
isPublic: false
}),
methods: {
togglePublic() {
this.isPublic = !this.isPublic;
}
}
};
</script>
<style lang="scss">
@font-face {
font-family: "Papyrus";
src: url("assets/fonts/papyrus.eot"); /* IE9*/
src: url("assets/fonts/papyrus.eot?#iefix") format("embedded-opentype"),
/* IE6-IE8 */ url("assets/fonts/papyrus.woff2") format("woff2"),
/* chrome firefox */ url("assets/fonts/papyrus.woff") format("woff"),
/* chrome firefox */ url("assets/fonts/papyrus.ttf") format("truetype"),
/* chrome firefox opera Safari, Android, iOS 4.2+*/
url("assets/fonts/papyrus.svg#PapyrusW01") format("svg"); /* iOS 4.1- */
}
html,
body {
font-size: 1.2em;
line-height: 1.4;
background: url("assets/background.jpg") center center;
background-size: cover;
color: white;
height: 100%;
font-family: "Roboto Condensed", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: 0;
margin: 0;
}
#app {
height: 100%;
}
// Controls
.controls {
position: absolute;
right: 0;
top: 0;
}
</style>