line-and-surface/src/App.vue

43 lines
626 B
Vue
Raw Normal View History

2021-01-09 17:38:35 +01:00
<template>
2021-04-22 11:33:33 +02:00
<SVGContent
id="root"
url="content/intro.svg"
@set-background="setBackground"
/>
2021-01-09 17:38:35 +01:00
</template>
<script lang="ts">
2021-04-22 11:33:33 +02:00
import { defineComponent } from "vue";
2021-01-09 17:38:35 +01:00
import SVGContent from "@/components/SVGContent.vue";
import "normalize.css";
export default defineComponent({
name: "App",
components: {
2021-04-22 11:33:33 +02:00
SVGContent,
},
methods: {
setBackground(background: string) {
document.body.style.background = background;
2021-04-22 11:33:33 +02:00
},
},
2021-01-09 17:38:35 +01:00
});
</script>
<style>
2021-04-22 11:33:33 +02:00
html,
body {
2021-01-09 17:38:35 +01:00
overflow: hidden;
background: black;
2021-01-09 17:38:35 +01:00
}
2021-04-22 11:33:33 +02:00
html,
body,
#app,
#root {
2021-01-09 17:38:35 +01:00
width: 100%;
height: 100%;
cursor: default;
}
</style>