updated error pages
This commit is contained in:
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
BIN
public/img/sad-monster.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
@@ -68,39 +68,30 @@ code {
|
|||||||
|
|
||||||
/* Page Errors */
|
/* Page Errors */
|
||||||
.sm-page-error {
|
.sm-page-error {
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex: 1;
|
|
||||||
margin-top: map-get($spacer, 5);
|
|
||||||
min-height: 50vh;
|
|
||||||
|
|
||||||
.image {
|
|
||||||
flex: 1;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
background-position: center;
|
|
||||||
background-size: contain;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
margin-left: map-get($spacer, 2);
|
|
||||||
margin-right: map-get($spacer, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
|
||||||
justify-content: center;
|
|
||||||
margin-left: map-get($spacer, 2);
|
|
||||||
margin-right: map-get($spacer, 2);
|
|
||||||
margin-bottom: 0;
|
|
||||||
|
|
||||||
h1 {
|
.sm-error-number {
|
||||||
text-align: left;
|
display: flex;
|
||||||
margin-bottom: map-get($spacer, 1);
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 30vw;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #295b7e;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 25vw;
|
||||||
|
margin: 0 0.5rem 0 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
.sm-error-content {
|
||||||
margin: 0;
|
text-align: center;
|
||||||
|
font-size: 120%;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user