updated error pages

This commit is contained in:
2023-03-01 09:38:37 +10:00
parent 30e51dddd7
commit 52d40cb8a1
8 changed files with 78 additions and 60 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
public/img/sad-monster.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@@ -69,38 +69,29 @@ code {
/* Page Errors */ /* Page Errors */
.sm-page-error { .sm-page-error {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
flex: 1;
margin-top: map-get($spacer, 5);
min-height: 50vh;
.image { .sm-error-number {
flex: 1; display: flex;
height: 100%; justify-content: center;
width: 100%; align-items: center;
background-position: center; font-size: 30vw;
background-size: contain; font-weight: 600;
background-repeat: no-repeat; color: #295b7e;
margin-left: map-get($spacer, 2);
margin-right: map-get($spacer, 2); img {
height: 25vw;
margin: 0 0.5rem 0 1rem;
}
} }
.content { .sm-error-content {
display: flex; text-align: center;
flex-direction: column; font-size: 120%;
flex: 1;
justify-content: center;
margin-left: map-get($spacer, 2);
margin-right: map-get($spacer, 2);
margin-bottom: 0;
h1 { h2 {
text-align: left; margin-top: 0;
margin-bottom: map-get($spacer, 1); margin-bottom: 0.5rem;
}
p {
margin: 0;
} }
} }
} }

View File

@@ -1,19 +1,28 @@
<template> <template>
<SMPage no-breadcrumbs> <SMPage no-breadcrumbs>
<div class="sm-page-error sm-error-forbidden"> <div class="sm-page-error sm-error-not-found">
<div class="image"></div> <div class="sm-error-number">
<div class="content"> 4<img src="/img/sad-monster.png" />3
<h1>The cat says no!</h1> </div>
<p>You do not have the needed access to see this page</p> <div class="sm-error-content">
<h2>Ooops!</h2>
<p>This page is not for you to view!</p>
<SMButton label="Go Back" @click="handleClick" />
</div> </div>
</div> </div>
</SMPage> </SMPage>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts">
import SMButton from "../SMButton.vue";
import { useRouter } from "vue-router";
<style lang="scss"> const router = useRouter();
.sm-page-error.sm-error-forbidden .image {
background-image: url("/img/403.jpg"); /**
} * Handle user clicking back/home button
</style> */
const handleClick = () => {
router.go(-1);
};
</script>

View File

@@ -1,22 +1,31 @@
<template> <template>
<SMPage no-breadcrumbs> <SMPage no-breadcrumbs>
<div class="sm-page-error sm-error-internal"> <div class="sm-page-error sm-error-not-found">
<div class="image"></div> <div class="sm-error-number">
<div class="content"> 5<img src="/img/sad-monster.png" />0
<h1>The cat has broken something</h1> </div>
<div class="sm-error-content">
<h2>Ooops!</h2>
<p> <p>
We are working to fix that what was broken. Please try again We are working to fix that what was broken. Please try again
later. later!
</p> </p>
<SMButton label="Go Back" @click="handleClick" />
</div> </div>
</div> </div>
</SMPage> </SMPage>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts">
import SMButton from "../SMButton.vue";
import { useRouter } from "vue-router";
<style lang="scss"> const router = useRouter();
.sm-page-error.sm-error-internal .image {
background-image: url("/img/500.jpg"); /**
} * Handle user clicking back/home button
</style> */
const handleClick = () => {
router.go(-1);
};
</script>

View File

@@ -1,19 +1,28 @@
<template> <template>
<SMPage no-breadcrumbs> <SMPage no-breadcrumbs>
<div class="sm-page-error sm-error-not-found"> <div class="sm-page-error sm-error-not-found">
<div class="image"></div> <div class="sm-error-number">
<div class="content"> 4<img src="/img/sad-monster.png" />4
<h1>Opps</h1> </div>
<p>The page you asked for was not found</p> <div class="sm-error-content">
<h2>Ooops!</h2>
<p>The page you are looking for does not exist!</p>
<SMButton label="Go Back" @click="handleClick" />
</div> </div>
</div> </div>
</SMPage> </SMPage>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts">
import SMButton from "../SMButton.vue";
import { useRouter } from "vue-router";
<style lang="scss"> const router = useRouter();
.sm-page-error.sm-error-not-found .image {
background-image: url("/img/404.jpg"); /**
} * Handle user clicking back/home button
</style> */
const handleClick = () => {
router.go(-1);
};
</script>