forked from matter-labs/dapp-portal
-
Notifications
You must be signed in to change notification settings - Fork 2
/
error.vue
35 lines (31 loc) · 908 Bytes
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
<div class="error-layout">
<Header />
<div class="error-info-container">
<h1 class="error-status-code">{{ error.statusCode }}</h1>
<p class="error-message">{{ error.message }}</p>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mt-4" variant="primary">Back to Bridge</CommonButton>
</div>
</div>
</template>
<script lang="ts">
export default {
props: ["error"],
};
</script>
<style lang="scss" scoped>
.error-layout {
@apply grid grid-rows-[auto_1fr];
min-height: 100vh;
min-height: 100dvh;
.error-info-container {
@apply mx-auto flex h-full w-11/12 max-w-md flex-col items-center justify-center px-4 py-2 leading-normal md:px-0 md:py-4;
.error-status-code {
@apply mb-2 text-9xl font-normal;
}
.error-message {
@apply whitespace-pre-line break-words break-all text-center wrap-balance;
}
}
}
</style>