4
2
Fork 0
app/src/App.vue

93 lines
1.8 KiB
Vue
Raw Normal View History

2020-10-23 21:50:02 +00:00
<template>
<div >
<!-- <div v-if="loading" class="uk-overlay-default uk-position-cover">
<div class="uk-position-center">
<h1>Loading... Please wait...</h1>
</div>
</div> -->
2020-10-24 00:34:41 +00:00
<navbar/>
<div class="uk-container ">
<selections/>
<div class="uk-container uk-container-small">
<verses/>
2020-10-24 00:34:41 +00:00
<options/>
</div>
</div>
<div v-if="loading" id="overlay">
<div class="uk-position-center less-opacity">
<h1>Loading... Please wait.</h1>
</div>
2020-10-24 00:34:41 +00:00
</div>
</div>
2020-10-23 21:50:02 +00:00
</template>
<script>
2020-10-24 00:34:41 +00:00
// import _ from 'lodash';
2020-10-23 22:21:35 +00:00
import UIkit from 'uikit';
import Icons from 'uikit/dist/js/uikit-icons';
import {mapGetters} from 'vuex';
2020-10-23 21:50:02 +00:00
2020-10-24 00:34:41 +00:00
import navbar from './components/NavBar.vue';
import options from './components/Options.vue';
import Selections from './components/Selection.vue'
import Verses from './components/Verses.vue'
2020-10-24 00:34:41 +00:00
2020-10-23 22:21:35 +00:00
UIkit.use(Icons);
2020-10-23 21:50:02 +00:00
export default {
name: 'App',
components: {
2020-10-24 00:34:41 +00:00
navbar,
options,
Selections,
Verses,
},
computed: {
...mapGetters(['loading'])
2020-10-24 00:34:41 +00:00
},
created(){
this.$store.dispatch('initialise')
// console.log(JSON.parse(JSON.stringify(this.$store.state)));
}
2020-10-23 21:50:02 +00:00
}
</script>
2020-10-23 22:21:35 +00:00
<style lang="less">
@import "../node_modules/uikit/src/less/uikit.less";
2020-10-23 21:50:02 +00:00
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2020-10-24 00:34:41 +00:00
// text-align: center;
2020-10-23 21:50:02 +00:00
color: #2c3e50;
2020-10-26 18:59:12 +00:00
// margin-top: 60px;
2020-10-23 21:50:02 +00:00
}
2020-10-26 21:09:28 +00:00
.disabled {
cursor: not-allowed;
color: gray
}
.disabled:hover {
color:gray
}
#overlay {
position: fixed;
display: block;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255,255,255,0.7);
z-index: 20000;
cursor: pointer;
}
.less-opacity{
background-color: rgba(255,255,255,0.7);
}
2020-10-23 21:50:02 +00:00
</style>