From 30df54a4266f49b4a33b199c1bfc0ee727c9b7d6 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 15 Dec 2025 20:37:39 -0300 Subject: [PATCH] feat: improve error page layout and mobile responsiveness - Replace sad face icon with alert icon - Add LibreSign logo header - Use NcEmptyContent component - Add card container with shadow - Improve mobile responsiveness - Clean up CSS and remove redundant styles Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- src/views/DefaultPageError.vue | 118 +++++++++++++++++++-------------- 1 file changed, 70 insertions(+), 48 deletions(-) diff --git a/src/views/DefaultPageError.vue b/src/views/DefaultPageError.vue index 63abb4df5..9d0125609 100644 --- a/src/views/DefaultPageError.vue +++ b/src/views/DefaultPageError.vue @@ -4,20 +4,31 @@ --> @@ -26,16 +37,23 @@ import { loadState } from '@nextcloud/initial-state' import { translate as t } from '@nextcloud/l10n' +import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent' import NcNoteCard from '@nextcloud/vue/components/NcNoteCard' +import AlertCircleOutline from 'vue-material-design-icons/AlertCircleOutline.vue' + +import logoLibreSign from '../../img/logo-gray.svg' export default { name: 'DefaultPageError', components: { + NcEmptyContent, NcNoteCard, + AlertCircleOutline, }, data() { return { + logoLibreSign, paragrath: t('libresign', 'Sorry but the page you are looking for does not exist, has been removed, moved or is temporarily unavailable.'), } }, @@ -47,7 +65,7 @@ export default { } const errorMessage = loadState('libresign', 'error', {})?.message if (errorMessage) { - return [errorMessage] + return [{ message: errorMessage }] } return [] }, @@ -57,49 +75,53 @@ export default {