Added 'Loding indicator'

This commit is contained in:
Liyas Thomas
2019-10-11 14:23:07 +05:30
parent f0bff83fa0
commit e70e448b77
4 changed files with 21 additions and 13 deletions

View File

@@ -78,10 +78,7 @@ nav {
} }
body.sticky-footer footer { body.sticky-footer footer {
position: fixed; opacity: .25;
right: 0;
bottom: 0;
left: 0;
} }
.logo { .logo {

View File

@@ -1,8 +1,8 @@
<template> <template>
<div class="page page-error"> <div class="page page-error">
<h1>{{ error.statusCode }}</h1> <img src="~static/icons/error.svg" alt="Error" class="error_banner">
<h2>{{ error.message }}</h2> <h2>{{ error.statusCode }}</h2>
<br> <h3>{{ error.message }}</h3>
<p><nuxt-link to="/"><button>Go Home</button></nuxt-link></p> <p><nuxt-link to="/"><button>Go Home</button></nuxt-link></p>
<p><a href="" @click.prevent="reloadApplication">Reload</a></p> <p><a href="" @click.prevent="reloadApplication">Reload</a></p>
</div> </div>
@@ -11,14 +11,16 @@
<style lang="scss"> <style lang="scss">
// Center the error page in the viewport. // Center the error page in the viewport.
.page-error { .page-error {
position: absolute; display: flex;
top: 50%; align-items: center;
left: 50%; justify-content: center;
transform: translate(-50%, -50%); flex-direction: column;
width: 100%;
text-align: center; text-align: center;
} }
.error_banner {
width: 256px;
}
</style> </style>
<script> <script>

View File

@@ -187,6 +187,14 @@ export default {
loading: { loading: {
color: 'var(--ac-color)' color: 'var(--ac-color)'
}, },
/*
** Customize the loading indicator
*/
loadingIndicator: {
name: 'pulse',
color: 'var(--ac-color)',
background: 'var(--bg-color)'
},
/* /*
** Global CSS ** Global CSS
*/ */

1
static/icons/error.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.9 KiB