Commit 872daafc authored by tianhongyang's avatar tianhongyang

login背景

parent 075028ec
<template> <template>
<div id="app"> <div id="app">
<router-view/> <router-view />
</div> </div>
</template> </template>
<style lang="scss"> <style lang="scss">
@import url("~@/assets/styles/public.scss");
</style> </style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
#app {
width: 100%;
height: 100%;
}
<template> <template>
<div class="main"> <div class="main">
<div class="video"> <div class="video">
<video autoplay loop> <video autoplay loop class="login-video">
<source src="@/assets/background.mp4" type="video/mp4"> <source src="@/assets/background.mp4" type="video/mp4">
</video> </video>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return {} return {};
}, },
computed: {}, computed: {},
mounted() {}, mounted() { },
methods: {} methods: {}
} }
</script> </script>
<style scoped> <style scoped lang="scss">
.main {
position: relative;
height: 100%;
width: 100%;
.login-video {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
object-fit: fill;
source {
width: 100%;
height: 100%;
}
}
}
</style> </style>
<template>
<div class="about">
<h1>This is an about page</h1>
</div>
</template>
<template>
<div class="home">
<img alt="Vue logo" src="../assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
export default {
name: 'HomeView',
components: {
HelloWorld
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment