-
-
Notifications
You must be signed in to change notification settings - Fork 624
Expand file tree
/
Copy pathError.vue
More file actions
19 lines (17 loc) · 756 Bytes
/
Error.vue
File metadata and controls
19 lines (17 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script setup>
import { Card, Heading, Description, Button } from '@ui';
import Blank from '@/pages/layout/Blank.vue';
import useBodyClasses from '@/pages/layout/body-classes.js';
defineOptions({ layout: Blank })
defineProps(['status'])
useBodyClasses('bg-gray-50 dark:bg-gray-900');
</script>
<template>
<div class="flex min-h-screen flex-col items-center justify-center">
<Card class="text-center flex flex-col items-center space-y-2">
<Heading size="2xl" :text="__('Whoops!')" />
<Description :text="`${__('Something went wrong')} (${status})`" />
<Button as="a" :href="cp_url('/')" size="xs" variant="filled" class="mt-4" :text="__('Return to Control Panel')" />
</Card>
</div>
</template>