2021-01-09 17:38:35 +01:00
|
|
|
<template>
|
2021-01-10 16:28:19 +01:00
|
|
|
<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
|
2021-01-10 16:28:19 +01:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
setBackground(background: string) {
|
|
|
|
document.body.style.background = background;
|
|
|
|
}
|
2021-01-09 17:38:35 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
|
|
overflow: hidden;
|
2021-01-10 16:28:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: black;
|
2021-01-09 17:38:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
html, body, #app, #root {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
</style>
|