improved layout, key-name changed

This commit is contained in:
Moriz Wahl 2020-01-20 11:24:18 +01:00
parent 7cfd61ecf2
commit 9948f4ef20
4 changed files with 24 additions and 5 deletions

View File

@ -1,6 +1,9 @@
<template>
<div class="container">
<h1>{{ $t(error.message) }}</h1>
<div class="error-container">
<base-icon class="error-icon" name="exclamation-circle" />
<br />
<span class="error-message">{{ $t(error.message) }}</span>
<br />
<nuxt-link to="/">{{ $t('error-pages.back-to-index') }}</nuxt-link>
</div>
</template>
@ -10,3 +13,19 @@ export default {
props: ['error'],
}
</script>
<style lang="scss">
.error-container {
text-align: center;
padding: $space-small;
}
.error-message {
font-size: $font-size-x-large;
font-weight: $font-weight-bold;
color: $text-color-softer;
margin: $space-base;
}
.error-icon {
font-size: $font-size-xxx-large;
color: $text-color-softer;
}
</style>

View File

@ -800,7 +800,7 @@
"amount-of-total": "{amount} von {total} € erreicht"
},
"error-pages" : {
"user-not-found": "Dieser Benutzer konnte nicht gefunden werden",
"profile-not-found": "Dieses Profil konnte nicht gefunden werden",
"back-to-index": "Zurück zur Startseite"
}
}

View File

@ -800,7 +800,7 @@
}
},
"error-pages" : {
"user-not-found": "This user could not be found",
"user-not-found": "This profile could not be found",
"back-to-index": "Back to index page"
}
}

View File

@ -23,7 +23,7 @@ const options = {
}
}
`,
message: 'error-pages.user-not-found',
message: 'error-pages.profile-not-found',
path: 'profile',
}
const persistentLinks = PersistentLinks(options)