2023-03-21 17:25:22 +00:00
|
|
|
<template>
|
2023-03-21 17:34:11 +00:00
|
|
|
<div>
|
|
|
|
<NuxtLayout name="default">
|
|
|
|
<div class="flex card flex-column align-items-center gap-5 sm:p-8">
|
|
|
|
<div class="flex flex-column sm:flex-row align-items-center justify-content-center gap-3 text-primary">
|
|
|
|
<span class="font-bold" :style="{ fontSize: '144px' }"> 4 </span>
|
|
|
|
<div class="flex align-items-center justify-content-center bg-primary border-circle w-8rem h-8rem">
|
|
|
|
<i class="pi pi-prime text-7xl"></i>
|
|
|
|
</div>
|
|
|
|
<span class="font-bold" :style="{ fontSize: '144px' }"> 4 </span>
|
2023-03-21 17:25:22 +00:00
|
|
|
</div>
|
2023-03-21 17:34:11 +00:00
|
|
|
<div class="font-bold text-900 text-center text-6xl border-top-1 surface-border pt-5">PAGE NOT FOUND</div>
|
2023-03-21 17:25:22 +00:00
|
|
|
</div>
|
2023-03-21 17:34:11 +00:00
|
|
|
</NuxtLayout>
|
|
|
|
</div>
|
2023-03-21 17:25:22 +00:00
|
|
|
</template>
|
2024-01-24 11:23:53 +00:00
|
|
|
<script>
|
|
|
|
import EventBus from '@/layouts/AppEventBus';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
watch: {
|
|
|
|
$route: {
|
|
|
|
handler(to) {
|
|
|
|
if (to.name === 'index') {
|
|
|
|
this.themeChangeListener({ theme: this.$appState.darkTheme ? 'aura-dark-green' : 'aura-light-green', dark: this.$appState.darkTheme });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
useServerHead({
|
|
|
|
link: [
|
|
|
|
{
|
|
|
|
id: 'theme-link',
|
|
|
|
rel: 'stylesheet',
|
|
|
|
href: '/themes/aura-light-green/theme.css'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
EventBus.on('theme-change', this.themeChangeListener);
|
|
|
|
},
|
|
|
|
beforeUnmount() {
|
|
|
|
EventBus.off('theme-change', this.themeChangeListener);
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
themeChangeListener(event) {
|
|
|
|
if (!document.startViewTransition) {
|
|
|
|
this.applyTheme(event);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
document.startViewTransition(() => this.applyTheme(event));
|
|
|
|
},
|
|
|
|
applyTheme(event) {
|
|
|
|
this.$primevue.changeTheme(this.$appState.theme, event.theme, 'theme-link', () => {
|
|
|
|
this.$appState.theme = event.theme;
|
|
|
|
this.$appState.darkTheme = event.dark;
|
|
|
|
|
2024-03-28 15:27:36 +00:00
|
|
|
EventBus.emit('dark-mode-toggle', { theme: event.theme, dark: event.dark });
|
2024-01-24 11:23:53 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|