app/src/App.vue

46 lines
762 B
Vue
Raw Normal View History

2021-04-19 15:28:52 +02:00
<template>
<div id="app">
2021-04-20 13:30:23 +02:00
<Settings v-if="time == 0" v-on:set-time="setTime"/>
<Timer v-if="time != 0" v-bind:time="time"/>
2021-04-19 15:28:52 +02:00
</div>
</template>
<script>
2021-04-20 13:30:23 +02:00
import Settings from './components/Settings.vue'
2021-04-19 18:13:54 +02:00
import Timer from './components/Timer.vue'
2021-04-19 15:28:52 +02:00
export default {
name: 'App',
components: {
2021-04-20 13:30:23 +02:00
Timer,
Settings
},
data: function() {
return {
time: 0
}
},
methods: {
setTime(number) {
this.time = number;
}
2021-04-19 15:28:52 +02:00
}
2021-04-20 13:30:23 +02:00
2021-04-19 15:28:52 +02:00
}
</script>
<style>
2021-04-19 22:46:31 +02:00
html, body {
height: 100%;
2021-04-22 14:04:30 +02:00
margin: 0;
2021-04-19 22:46:31 +02:00
}
2021-04-19 15:28:52 +02:00
#app {
2021-04-19 22:46:31 +02:00
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
2021-04-19 15:28:52 +02:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
2021-04-19 22:46:31 +02:00
height: 100%;
2021-04-19 15:28:52 +02:00
}
</style>