add spinner

This commit is contained in:
Jiiks 2018-11-26 11:08:27 +02:00
parent e8cfb840fe
commit cfc197cdc0
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,12 @@
flex-direction: column;
margin: 10px 0;
.bd-spinnerContainer {
display: flex;
justify-content: center;
padding: 50px 0;
}
h3 {
color: #fff;
font-weight: 700;

View File

@ -29,7 +29,9 @@
<div class="bd-fancySearch" :class="{'bd-disabled': loadingOnline, 'bd-active': loadingOnline || (onlineThemes && onlineThemes.docs)}">
<input type="text" class="bd-textInput" placeholder="Search" @keydown.enter="searchInput" @keyup.stop/>
</div>
<h2 v-if="loadingOnline">Loading</h2>
<div v-if="loadingOnline" class="bd-spinnerContainer">
<div class="bd-spinner7"></div>
</div>
<RemoteCard v-else-if="onlineThemes && onlineThemes.docs" v-for="theme in onlineThemes.docs" :key="theme.id" :item="theme"/>
</div>
</div>