kollagen/src/App.vue

52 lines
958 B
Vue
Raw Normal View History

2020-06-22 17:29:49 +02:00
<template>
2020-07-15 22:00:19 +02:00
<div id="app">
<picker @images="images = $event"/>
<collage :images="images"/>
<footer><a :href="HOMEPAGE_URL">kollagen v{{APP_VERSION}}</a></footer>
2020-07-15 22:00:19 +02:00
</div>
2020-06-22 17:29:49 +02:00
</template>
<script lang="ts">
2020-07-15 22:00:19 +02:00
import {Component, Vue} from "vue-property-decorator";
import Picker from "@/components/Picker.vue";
import Collage from "@/components/Collage.vue";
2020-06-22 17:29:49 +02:00
@Component({
2020-07-15 22:00:19 +02:00
components: {
Picker,
Collage
},
2020-06-22 17:29:49 +02:00
})
2020-07-15 22:00:19 +02:00
export default class App extends Vue {
private images: ImageBitmap[] = [];
private get APP_VERSION() {
return process.env.VUE_APP_VERSION;
}
private get HOMEPAGE_URL() {
return process.env.VUE_APP_HOMEPAGE;
}
2020-07-15 22:00:19 +02:00
}
2020-06-22 17:29:49 +02:00
</script>
<style>
2020-07-15 22:00:19 +02:00
html, body {
margin: 0 2em;
padding: 0;
}
2020-06-22 17:29:49 +02:00
#app {
2020-07-15 22:00:19 +02:00
font-family: monospace;
display: flex;
flex-direction: column;
justify-content: space-evenly;
min-height: 100vh;
2020-06-22 17:29:49 +02:00
}
footer {
width: 100%;
text-align: center;
}
2020-06-22 17:29:49 +02:00
</style>