thedesk/src/views/App.vue

52 lines
978 B
Vue
Raw Normal View History

2019-04-05 16:50:07 +09:00
<template>
2019-04-22 23:59:37 +09:00
<div id="app" :style="styles">
2019-04-22 18:39:16 +09:00
<Welcome/>
2019-04-05 16:50:07 +09:00
</div>
</template>
2019-04-08 05:47:07 +09:00
<script lang="ts">
2019-04-22 23:59:37 +09:00
import { remote } from 'electron'
2019-04-22 18:39:16 +09:00
import { Component, Vue } from 'vue-property-decorator'
import Welcome from '@/components/Welcome.vue'
2019-04-05 16:50:07 +09:00
2019-04-08 05:47:07 +09:00
@Component({
2019-04-05 16:50:07 +09:00
components: {
2019-04-10 04:10:24 +09:00
Welcome,
2019-04-08 05:47:07 +09:00
},
})
2019-04-22 23:59:37 +09:00
export default class App extends Vue {
public color: string = '#2c3e50'
public backgroundColor: string = 'white'
public fontSize: string = '16px'
public get styles(): { [key: string]: string } {
return {
'--color': this.color,
'--background-color': this.backgroundColor,
'--font-size': this.fontSize,
}
}
}
2019-04-05 16:50:07 +09:00
</script>
<style>
2019-04-22 23:59:37 +09:00
html {
2019-04-10 00:26:04 +09:00
font-family: "Avenir", Helvetica, Arial, sans-serif;
2019-04-05 16:50:07 +09:00
-webkit-font-smoothing: antialiased;
2019-04-22 23:59:37 +09:00
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
}
#app {
color: var(--color);
background-color: var(--background-color);
font-size: var(--font-size);
2019-04-05 16:50:07 +09:00
text-align: center;
2019-04-22 23:59:37 +09:00
height: 100%;
2019-04-05 16:50:07 +09:00
}
</style>