2020-10-23 21:50:02 +00:00
|
|
|
<template>
|
2020-11-24 20:43:13 +00:00
|
|
|
<div class="secondary-lighten3">
|
2020-11-03 19:05:56 +00:00
|
|
|
<!-- <div v-if="loading" class="uk-overlay-default uk-position-cover">
|
2020-11-02 07:50:24 +00:00
|
|
|
<div class="uk-position-center">
|
|
|
|
<h1>Loading... Please wait...</h1>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
2020-10-24 00:34:41 +00:00
|
|
|
<navbar/>
|
2020-12-04 12:08:49 +00:00
|
|
|
<div class="uk-container uk-animation-slide-bottom uk-margin-top">
|
2020-11-02 07:50:24 +00:00
|
|
|
<selections/>
|
|
|
|
<div class="uk-container uk-container-small">
|
2020-11-03 19:05:56 +00:00
|
|
|
<verses/>
|
2020-10-24 00:34:41 +00:00
|
|
|
<options/>
|
2020-11-03 19:05:56 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="loading" id="overlay">
|
|
|
|
<div class="uk-position-center less-opacity">
|
|
|
|
<h1>Loading... Please wait.</h1>
|
2020-11-02 07:50:24 +00:00
|
|
|
</div>
|
2020-10-24 00:34:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-02 07:50:24 +00:00
|
|
|
|
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';
|
2020-11-03 19:05:56 +00:00
|
|
|
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';
|
2020-11-02 07:50:24 +00:00
|
|
|
import Selections from './components/Selection.vue'
|
2020-11-03 19:05:56 +00:00
|
|
|
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,
|
2020-11-02 07:50:24 +00:00
|
|
|
options,
|
|
|
|
Selections,
|
2020-11-03 19:05:56 +00:00
|
|
|
Verses,
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapGetters(['loading'])
|
2020-10-24 00:34:41 +00:00
|
|
|
},
|
2020-10-27 20:39:08 +00:00
|
|
|
created(){
|
|
|
|
|
2020-11-02 07:50:24 +00:00
|
|
|
this.$store.dispatch('initialise')
|
2020-11-24 20:43:13 +00:00
|
|
|
console.log('Initialising');
|
|
|
|
console.log(JSON.parse(JSON.stringify(this.$store.state)));
|
2020-10-27 20:39:08 +00:00
|
|
|
}
|
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-11-10 11:47:38 +00:00
|
|
|
@import "../node_modules/uikit/src/less/uikit.theme.less";
|
|
|
|
@global-link-color: #DA7D02;
|
2020-12-04 12:08:49 +00:00
|
|
|
@global-background: #f5f4f4;
|
|
|
|
@primary:#55828b;
|
|
|
|
@secondary: #fed18c;
|
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
|
|
|
|
}
|
2020-11-03 19:05:56 +00:00
|
|
|
#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-11-24 20:43:13 +00:00
|
|
|
|
|
|
|
.primary {
|
2020-12-04 12:08:49 +00:00
|
|
|
// background-color: #813405 !important;
|
|
|
|
// background-color: #55828b !important;
|
|
|
|
background-color: @primary !important;
|
|
|
|
}
|
2020-11-24 20:43:13 +00:00
|
|
|
.secondary {
|
2020-12-04 12:08:49 +00:00
|
|
|
// background-color: #f9a03f !important;
|
|
|
|
// background-color: #87bba2 !important;
|
|
|
|
// background-color: #fed18c !important;
|
|
|
|
background-color: @secondary !important;
|
2020-11-24 20:43:13 +00:00
|
|
|
}
|
|
|
|
.tertiary {
|
|
|
|
background-color: #d45113;
|
|
|
|
}
|
|
|
|
.secondary-lighten3 {
|
|
|
|
background-color: rgba(224, 222, 221, 1);
|
|
|
|
}
|
|
|
|
.text-primary {
|
2020-12-04 12:08:49 +00:00
|
|
|
// color: #813405 !important;
|
|
|
|
color: #55828b !important;
|
|
|
|
}
|
2020-11-24 20:43:13 +00:00
|
|
|
.text-secondary {
|
2020-12-04 12:08:49 +00:00
|
|
|
// color: #f9a03f !important;
|
|
|
|
// color: #87bba2 !important;
|
|
|
|
color: #fed18c !important;
|
2020-11-24 20:43:13 +00:00
|
|
|
}
|
|
|
|
.text-tertiary {
|
|
|
|
color: #d45113;
|
|
|
|
}
|
2020-12-04 12:08:49 +00:00
|
|
|
.rounded {
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
.rounded-bottom {
|
|
|
|
border-bottom-left-radius: 10px;
|
|
|
|
border-bottom-right-radius: 10px;
|
|
|
|
}
|
2020-10-23 21:50:02 +00:00
|
|
|
</style>
|