mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-11 23:07:16 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
37 lines
549 B
Vue
37 lines
549 B
Vue
<template lang="html">
|
|
<div v-if="loading" class="loading-page">
|
|
<p>Loading...</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data: () => ({
|
|
loading: false
|
|
}),
|
|
methods: {
|
|
start () {
|
|
this.loading = true
|
|
},
|
|
finish () {
|
|
this.loading = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.loading-page {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
text-align: center;
|
|
padding-top: 200px;
|
|
font-size: 30px;
|
|
font-family: sans-serif;
|
|
}
|
|
</style>
|