townsquare/src/App.vue

63 lines
1.5 KiB
Vue
Raw Normal View History

2020-04-01 20:57:14 +00:00
<template>
<div id="app">
2020-04-01 20:57:14 +00:00
<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- */
2020-04-01 20:57:14 +00:00
}
html, body {
font-size: 1.2em;
line-height: 1.4;
background: url('assets/background.jpg') center center;
2020-04-01 20:57:14 +00:00
background-size: cover;
color: white;
height: 100%;
font-family: 'Roboto Condensed', sans-serif;
2020-04-01 21:03:14 +00:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2020-04-01 20:57:14 +00:00
padding: 0;
margin: 0;
}
#app {
2020-04-01 20:57:14 +00:00
height: 100%;
}
// Controls
.controls {
position: absolute;
right: 0;
top: 0;
}
</style>