aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdError.vue
diff options
context:
space:
mode:
authorpacien2020-09-25 16:01:49 +0200
committerpacien2020-09-25 16:01:49 +0200
commite93f7b1eb84c083d67567115284c0002a3a7d5fc (patch)
tree8d373e8f7f571485e1330928f43b090ed004c525 /viewer/src/components/LdError.vue
parent8e3ac8fe44bebb38e1882ca7f06b8100078ad88d (diff)
parentfd542f75a1d94ee5f804d0925823276b97f38581 (diff)
downloadldgallery-e93f7b1eb84c083d67567115284c0002a3a7d5fc.tar.gz
Merge branch 'develop' for release v2.0v2.0
Diffstat (limited to 'viewer/src/components/LdError.vue')
-rw-r--r--viewer/src/components/LdError.vue58
1 files changed, 58 insertions, 0 deletions
diff --git a/viewer/src/components/LdError.vue b/viewer/src/components/LdError.vue
new file mode 100644
index 0000000..c71e2ad
--- /dev/null
+++ b/viewer/src/components/LdError.vue
@@ -0,0 +1,58 @@
1<!--
2-- ldgallery - A static generator which turns a collection of tagged
3-- pictures into a searchable web gallery.
4--
5-- Copyright (C) 2020 Pacien TRAN-GIRARD
6--
7-- This program is free software: you can redistribute it and/or modify
8-- it under the terms of the GNU Affero General Public License as
9-- published by the Free Software Foundation, either version 3 of the
10-- License, or (at your option) any later version.
11--
12-- This program is distributed in the hope that it will be useful,
13-- but WITHOUT ANY WARRANTY; without even the implied warranty of
14-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-- GNU Affero General Public License for more details.
16--
17-- You should have received a copy of the GNU Affero General Public License
18-- along with this program. If not, see <https://www.gnu.org/licenses/>.
19-->
20
21<template>
22 <div class="container-vh-centering">
23 <div :class="$style.content">
24 <fa-icon :class="$style.icon" :icon="icon" size="6x" />
25 <div :class="$style.message" v-html="message"></div>
26 </div>
27 </div>
28</template>
29
30<script lang="ts">
31import { Component, Prop, Vue } from "vue-property-decorator";
32
33@Component
34export default class LdError extends Vue {
35 @Prop({ required: true, type: String }) readonly icon!: string;
36 @Prop({ required: true, type: String }) readonly message!: string;
37}
38</script>
39
40<style lang="scss" module>
41@import "~@/assets/scss/theme.scss";
42
43.content {
44 text-align: center;
45
46 & > *:not(last-child) {
47 margin-bottom: 0.15em;
48 }
49}
50
51.icon {
52 color: $disabled-color;
53}
54
55.message {
56 color: $text-light;
57}
58</style>