townsquare/src/App.vue

66 lines
1.4 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>
2020-04-05 17:50:33 +00:00
import TownSquare from "./components/TownSquare.vue";
2020-04-01 20:57:14 +00:00
2020-04-05 17:50:33 +00:00
export default {
components: {
TownSquare
},
data: () => ({
isPublic: false
}),
methods: {
togglePublic() {
this.isPublic = !this.isPublic;
2020-04-01 20:57:14 +00:00
}
}
2020-04-05 17:50:33 +00:00
};
2020-04-01 20:57:14 +00:00
</script>
<style lang="scss">
2020-04-05 17:50:33 +00:00
@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
2020-04-05 17:50:33 +00:00
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;
}
2020-04-01 20:57:14 +00:00
2020-04-05 17:50:33 +00:00
#app {
height: 100%;
}
2020-04-01 20:57:14 +00:00
2020-04-05 17:50:33 +00:00
// Controls
.controls {
position: absolute;
right: 0;
top: 0;
}
2020-04-01 20:57:14 +00:00
</style>