reformat; get_id in App.vue

This commit is contained in:
Jörn-Michael Miehe 2020-09-06 02:44:39 +02:00
parent d2adc9b776
commit 29860637f9
2 changed files with 34 additions and 26 deletions

View file

@ -1,24 +1,31 @@
<template>
<div id="app">
<img class="logo" alt="Lenaistenlogo" src="./assets/logo.png">
<img class="logo" alt="Lenaistenlogo" src="./assets/logo.png" />
<BDay />
</div>
</template>
<script>
import BDay from './components/BDay.vue'
import BDay from "./components/BDay.vue";
export default {
name: 'App',
name: "App",
components: {
BDay
}
}
BDay,
},
computed: {
get_id: () => {
return window.location.pathname.substring(1);
},
},
};
</script>
<style>
html {
background-image: url('./assets/bg.jpg');
background-image: url("./assets/bg.jpg");
height: 100%;
/* overflow:hidden; */
}

View file

@ -2,10 +2,10 @@
<div class="bday">
<h1>Alles Gute zu Deinem Geburtstag!</h1>
<vue-plyr>
<video poster='../assets/poster.png' autoplay="true">
<source src='/fake_api/part1_240.mp4' type='video/mp4' size='240'>
<source src='/fake_api/part1_360.mp4' type='video/mp4' size='360'>
<source src='/fake_api/part1_480.mp4' type='video/mp4' size='480'>
<video poster="../assets/poster.png" autoplay="true">
<source src="/fake_api/part1_240.mp4" type="video/mp4" size="240" />
<source src="/fake_api/part1_360.mp4" type="video/mp4" size="360" />
<source src="/fake_api/part1_480.mp4" type="video/mp4" size="480" />
</video>
</vue-plyr>
</div>
@ -13,11 +13,12 @@
<script>
export default {
name: 'BDay',
name: "BDay",
mounted: () => {
document.title = 'Herzlichen Glückwunsch!'
}
}
document.title = "Herzlichen Glückwunsch!";
},
};
</script>
<style scoped>