|
|
@@ -3,24 +3,24 @@ import { computed } from 'vue'
|
|
3
|
3
|
import { Head, Link } from '@inertiajs/inertia-vue3'
|
|
4
|
4
|
|
|
5
|
5
|
const props = defineProps({
|
|
6
|
|
- status: null,
|
|
|
6
|
+ status: Number,
|
|
7
|
7
|
})
|
|
8
|
8
|
|
|
9
|
9
|
const title = computed(() => {
|
|
10
|
10
|
return {
|
|
11
|
|
- 503: '503: Service Unavailable',
|
|
|
11
|
+ 503: '503: Layanan Tidak Tersedia',
|
|
12
|
12
|
500: '500: Server Error',
|
|
13
|
|
- 404: '404: Page Not Found',
|
|
14
|
|
- 403: '403: Forbidden',
|
|
|
13
|
+ 404: '404: Halaman Tidak Ditemukan',
|
|
|
14
|
+ 403: '403: Akses Ditolak',
|
|
15
|
15
|
}[props.status]
|
|
16
|
16
|
})
|
|
17
|
17
|
|
|
18
|
18
|
const description = computed(() => {
|
|
19
|
19
|
return {
|
|
20
|
|
- 503: 'Sorry, we are doing some maintenance. Please check back soon.',
|
|
21
|
|
- 500: 'Whoops, something went wrong on our servers.',
|
|
22
|
|
- 404: 'Sorry, the page you are looking for could not be found.',
|
|
23
|
|
- 403: 'Sorry, you are forbidden from accessing this page.',
|
|
|
20
|
+ 503: 'Sorry, Kami sedang melakukan maintenance. Silakan periksa kembali nanti.',
|
|
|
21
|
+ 500: 'Whoops, Sesuatu sedang terjadi pada server kami.',
|
|
|
22
|
+ 404: 'Sorry, Hamalan yang anda cari tidak dapat ditemukan.',
|
|
|
23
|
+ 403: 'Sorry, Anda tidak memiliki akses kehalaman ini.',
|
|
24
|
24
|
}[props.status]
|
|
25
|
25
|
})
|
|
26
|
26
|
</script>
|
|
|
@@ -31,56 +31,37 @@ const description = computed(() => {
|
|
31
|
31
|
<div
|
|
32
|
32
|
class="surface-0 flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden"
|
|
33
|
33
|
>
|
|
34
|
|
- <div class="grid justify-content-center p-2 lg:p-0" style="min-width: 80%">
|
|
35
|
|
- <div class="col-12 mt-5 xl:mt-0 text-center">
|
|
36
|
|
- <img
|
|
37
|
|
- src="/images/logo.svg"
|
|
38
|
|
- alt="Brand Logo"
|
|
39
|
|
- class="mb-5"
|
|
40
|
|
- style="width: 81px; height: 60px"
|
|
41
|
|
- />
|
|
42
|
|
- </div>
|
|
43
|
|
- <div class="col-12 xl:col-6 border-gradient">
|
|
44
|
|
- <div class="h-full w-full m-0 py-7 px-4 bg-gradient">
|
|
45
|
|
- <div class="grid flex flex-column align-items-center">
|
|
46
|
|
- <div
|
|
47
|
|
- class="flex justify-content-center align-items-center bg-pink-500 border-circle"
|
|
48
|
|
- style="height: 3.2rem; width: 3.2rem"
|
|
|
34
|
+ <div
|
|
|
35
|
+ class="grid flex-column align-items-center p-2 lg:p-0"
|
|
|
36
|
+ style="min-width: 80%"
|
|
|
37
|
+ >
|
|
|
38
|
+ <img src="/images/logo.svg" alt="logo" class="w-5rem" />
|
|
|
39
|
+
|
|
|
40
|
+ <div class="max-w-28rem p-6 m-4">
|
|
|
41
|
+ <div class="grid flex flex-column align-items-center">
|
|
|
42
|
+ <div
|
|
|
43
|
+ class="flex justify-content-center align-items-center bg-primary border-circle"
|
|
|
44
|
+ style="height: 3.2rem; width: 3.2rem"
|
|
|
45
|
+ >
|
|
|
46
|
+ <i class="pi pi-fw pi-exclamation-circle text-2xl text-50"></i>
|
|
|
47
|
+ </div>
|
|
|
48
|
+
|
|
|
49
|
+ <h1 class="text-center mb-5 font-bold text-3xl text-color">
|
|
|
50
|
+ {{ title }}
|
|
|
51
|
+ </h1>
|
|
|
52
|
+
|
|
|
53
|
+ <span class="text-center text-600">{{ description }}</span>
|
|
|
54
|
+
|
|
|
55
|
+ <div class="col-12 mt-5 text-center">
|
|
|
56
|
+ <i
|
|
|
57
|
+ class="pi pi-fw pi-arrow-left text-blue-500 mr-2"
|
|
|
58
|
+ style="vertical-align: center"
|
|
49
|
59
|
>
|
|
50
|
|
- <i class="pi pi-fw pi-exclamation-circle text-2xl text-50"></i>
|
|
51
|
|
- </div>
|
|
52
|
|
- <h1 class="font-bold text-5xl text-900 mb-2">{{ title }}</h1>
|
|
53
|
|
- <span class="text-600">{{ description }}</span>
|
|
54
|
|
- <div class="col-12 mt-5 text-center">
|
|
55
|
|
- <i
|
|
56
|
|
- class="pi pi-fw pi-arrow-left text-blue-500 mr-2"
|
|
57
|
|
- style="vertical-align: center"
|
|
58
|
|
- ></i>
|
|
59
|
|
- <Link href="/" class="text-blue-500">Kembali ke Dashboard</Link>
|
|
60
|
|
- </div>
|
|
|
60
|
+ </i>
|
|
|
61
|
+ <Link href="/" class="text-blue-500">Ayo kembali!</Link>
|
|
61
|
62
|
</div>
|
|
62
|
63
|
</div>
|
|
63
|
64
|
</div>
|
|
64
|
65
|
</div>
|
|
65
|
66
|
</div>
|
|
66
|
67
|
</template>
|
|
67
|
|
-
|
|
68
|
|
-<style scoped>
|
|
69
|
|
-.border-gradient {
|
|
70
|
|
- border-radius: 4px;
|
|
71
|
|
- padding: 0.3rem;
|
|
72
|
|
- background: linear-gradient(
|
|
73
|
|
- 180deg,
|
|
74
|
|
- rgba(233, 30, 99, 0.4) 10%,
|
|
75
|
|
- rgba(33, 150, 243, 0) 30%
|
|
76
|
|
- );
|
|
77
|
|
-}
|
|
78
|
|
-.bg-gradient {
|
|
79
|
|
- border-radius: 3px;
|
|
80
|
|
- background: linear-gradient(
|
|
81
|
|
- 180deg,
|
|
82
|
|
- var(--surface-50) 38.9%,
|
|
83
|
|
- var(--surface-0)
|
|
84
|
|
- );
|
|
85
|
|
-}
|
|
86
|
|
-</style>
|