summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-08 18:35:42 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-08 18:35:42 +0900
commit09c96286f9b663d5ddcbde35a7db78d17ebeabb3 (patch)
tree438f4c3f3d980c2ee21ce8a48d8eaeda1a2e0a22 /src/client/components
parentNew Crowdin translations (#5849) (diff)
downloadsharkey-09c96286f9b663d5ddcbde35a7db78d17ebeabb3.tar.gz
sharkey-09c96286f9b663d5ddcbde35a7db78d17ebeabb3.tar.bz2
sharkey-09c96286f9b663d5ddcbde35a7db78d17ebeabb3.zip
:art:
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/error.vue8
-rw-r--r--src/client/components/notes.vue20
2 files changed, 19 insertions, 9 deletions
diff --git a/src/client/components/error.vue b/src/client/components/error.vue
index b6e4b1951c..805fbdd2bf 100644
--- a/src/client/components/error.vue
+++ b/src/client/components/error.vue
@@ -1,5 +1,6 @@
<template>
<div class="mjndxjcg _panel">
+ <img src="https://xn--931a.moe/assets/error.jpg" alt=""/>
<p><fa :icon="faExclamationTriangle"/> {{ $t('error') }}</p>
<mk-button @click="() => $emit('retry')" class="button">{{ $t('retry') }}</mk-button>
</div>
@@ -38,5 +39,12 @@ export default Vue.extend({
> .button {
margin: 0 auto;
}
+
+ > img {
+ vertical-align: bottom;
+ height: 150px;
+ margin-bottom: 16px;
+ border-radius: 16px;
+ }
}
</style>
diff --git a/src/client/components/notes.vue b/src/client/components/notes.vue
index 20076eff0d..476b479fcd 100644
--- a/src/client/components/notes.vue
+++ b/src/client/components/notes.vue
@@ -1,6 +1,9 @@
<template>
<div class="mk-notes" v-size="[{ max: 500 }]">
- <div class="empty" v-if="empty">{{ $t('noNotes') }}</div>
+ <div class="empty _panel" v-if="empty">
+ <img src="https://xn--931a.moe/assets/info.jpg" alt=""/>
+ <div>{{ $t('noNotes') }}</div>
+ </div>
<mk-error v-if="error" @retry="init()"/>
@@ -24,8 +27,6 @@ import i18n from '../i18n';
import paging from '../scripts/paging';
import XNote from './note.vue';
import XList from './date-separated-list.vue';
-import getUserName from '../../misc/get-user-name';
-import getNoteSummary from '../../misc/get-note-summary';
export default Vue.extend({
i18n,
@@ -85,14 +86,15 @@ export default Vue.extend({
<style lang="scss" scoped>
.mk-notes {
> .empty {
- margin: 0 auto;
padding: 32px;
text-align: center;
- background: rgba(0, 0, 0, 0.3);
- color: #fff;
- -webkit-backdrop-filter: blur(16px);
- backdrop-filter: blur(16px);
- border-radius: 6px;
+
+ > img {
+ vertical-align: bottom;
+ height: 128px;
+ margin-bottom: 16px;
+ border-radius: 16px;
+ }
}
> .notes {