line-and-surface/app/src/App.vue

38 lines
631 B
Vue
Raw Normal View History

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