2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2023-04-01 06:42:40 +02:00
|
|
|
<Transition :name="defaultStore.state.animation ? '_transition_zoom' : ''" appear>
|
2023-01-14 03:23:02 +01:00
|
|
|
<div :class="$style.root">
|
|
|
|
<img :class="$style.img" src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/>
|
|
|
|
<p :class="$style.text"><i class="ti ti-alert-triangle"></i> {{ i18n.ts.somethingHappened }}</p>
|
2023-02-12 08:51:45 +01:00
|
|
|
<MkButton :class="$style.button" @click="() => emit('retry')">{{ i18n.ts.retry }}</MkButton>
|
2020-07-09 14:18:46 +02:00
|
|
|
</div>
|
2022-12-30 05:37:14 +01:00
|
|
|
</Transition>
|
2020-01-29 20:37:25 +01:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 07:02:25 +01:00
|
|
|
<script lang="ts" setup>
|
2022-09-06 11:21:49 +02:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2022-07-20 15:24:26 +02:00
|
|
|
import { i18n } from '@/i18n';
|
2023-04-01 06:42:40 +02:00
|
|
|
import { defaultStore } from '@/store';
|
2023-02-12 08:51:45 +01:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'retry'): void;
|
|
|
|
}>();
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|
|
|
|
|
2023-01-14 03:23:02 +01:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2020-01-29 20:37:25 +01:00
|
|
|
padding: 32px;
|
|
|
|
text-align: center;
|
2023-01-15 13:58:09 +01:00
|
|
|
align-items: center;
|
2023-01-14 03:23:02 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-14 03:23:02 +01:00
|
|
|
.text {
|
|
|
|
margin: 0 0 8px 0;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-14 03:23:02 +01:00
|
|
|
.button {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-02-08 10:35:42 +01:00
|
|
|
|
2023-01-14 03:23:02 +01:00
|
|
|
.img {
|
|
|
|
vertical-align: bottom;
|
2023-01-15 13:58:09 +01:00
|
|
|
width: 128px;
|
2023-01-14 03:23:02 +01:00
|
|
|
height: 128px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
border-radius: 16px;
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
</style>
|