freeleaps_frontend/frontend/src/App.vue
Zhigang Wang cf46520ada merging
2024-06-25 08:51:50 -07:00

76 lines
1.3 KiB
Vue

<template>
<div class="app-body">
<img src="@/assets/images/home-bg-left.png" alt="freeleaps" class="app-bg-left" />
<img src="@/assets/images/home-bg-right.png" alt="freeleaps" class="app-bg-right" />
<header class="body-header">
<router-view name="header"></router-view>
</header>
<main class="body-main">
<router-view></router-view>
</main>
<footer class="body-footer">
<router-view name="footer"></router-view>
</footer>
</div>
</template>
<script>
export default {
name: 'App',
components: {},
computed: {},
methods: {},
created() {
this.mnx_loadAuthLocal()
this.mnx_loadRoleLocal()
}
}
</script>
<style lang="scss">
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 0px;
}
.app-bg-left {
width: 300px;
position: fixed;
bottom: 0;
left: 0;
pointer-events: none;
}
.app-bg-right {
width: 300px;
position: fixed;
top: 0;
right: 0;
pointer-events: none;
}
.body-header {
width: 100%;
height: $header-height;
}
.body-main {
margin-top: 0px;
min-height: $body-height;
}
.body-footer {
width: 100%;
height: $footer-height;
}
.app-body {
margin-top: 0px;
width: 100%;
height: 100vh;
}
</style>