mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 20:51:09 -04:00
build version 400
This commit is contained in:
@ -1,13 +1,19 @@
|
||||
<template>
|
||||
<div class="error-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-sm-center">
|
||||
<h1>{{ $t('general.four_zero_four') }}</h1>
|
||||
<h5>{{ $t('general.you_got_lost') }}</h5>
|
||||
<div class="w-full h-full">
|
||||
<div class="flex items-center justify-center w-full h-full">
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<h1 class="text-primary-500" style="font-size: 10rem">
|
||||
{{ $t('general.four_zero_four') }}
|
||||
</h1>
|
||||
<h5 class="mb-10 text-3xl text-primary-500">
|
||||
{{ $t('general.you_got_lost') }}
|
||||
</h5>
|
||||
<router-link
|
||||
class="btn btn-lg bg-yellow text-white"
|
||||
to="/">
|
||||
<font-awesome-icon icon="arrow-left" class="icon text-white mr-2"/> {{ $t('general.go_home') }}
|
||||
class="flex items-center w-32 h-12 px-2 py-1 text-base font-medium leading-none text-center text-white whitespace-no-wrap rounded bg-primary-500 btn-lg hover:text-white"
|
||||
to="/admin/dashboard"
|
||||
>
|
||||
<arrow-left-icon class="mr-2 text-white icon" />
|
||||
{{ $t('general.go_home') }}
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
@ -15,18 +21,23 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ArrowLeftIcon } from '@vue-hero-icons/solid'
|
||||
export default {
|
||||
mounted () {
|
||||
components: {
|
||||
ArrowLeftIcon,
|
||||
},
|
||||
mounted() {
|
||||
this.setLayoutClasses()
|
||||
},
|
||||
destroyed () {
|
||||
$('body').removeClass('page-error-404')
|
||||
destroyed() {
|
||||
let body = document.getElementsByTagName('body')
|
||||
body[0].classList -= ' bg-black'
|
||||
},
|
||||
methods: {
|
||||
setLayoutClasses () {
|
||||
let body = $('body')
|
||||
body.addClass('page-error-404')
|
||||
}
|
||||
}
|
||||
setLayoutClasses() {
|
||||
let body = document.getElementsByTagName('body')
|
||||
body[0].classList += ' bg-black'
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user