diff options
-rw-r--r-- | docs/configuration.md | 2 | ||||
-rw-r--r-- | src/App.vue | 10 | ||||
-rw-r--r-- | src/assets/app.scss | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/docs/configuration.md b/docs/configuration.md index 75ce7cd..a472b41 100644 --- a/docs/configuration.md +++ b/docs/configuration.md | |||
@@ -104,6 +104,8 @@ links: | |||
104 | services: | 104 | services: |
105 | - name: "Application" | 105 | - name: "Application" |
106 | icon: "fas fa-code-branch" | 106 | icon: "fas fa-code-branch" |
107 | # A path to an image can also be provided. Note that icon take precedence if both icon and logo are set. | ||
108 | # logo: "path/to/logo" | ||
107 | items: | 109 | items: |
108 | - name: "Awesome app" | 110 | - name: "Awesome app" |
109 | logo: "assets/tools/sample.png" | 111 | logo: "assets/tools/sample.png" |
diff --git a/src/App.vue b/src/App.vue index aff340c..1f4f509 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -64,6 +64,11 @@ | |||
64 | <template v-for="group in services"> | 64 | <template v-for="group in services"> |
65 | <h2 v-if="group.name" class="column is-full group-title"> | 65 | <h2 v-if="group.name" class="column is-full group-title"> |
66 | <i v-if="group.icon" :class="['fa-fw', group.icon]"></i> | 66 | <i v-if="group.icon" :class="['fa-fw', group.icon]"></i> |
67 | <div v-else-if="group.logo" class="group-logo media-left"> | ||
68 | <figure class="image is-48x48"> | ||
69 | <img :src="group.logo" :alt="`${group.name} logo`" /> | ||
70 | </figure> | ||
71 | </div> | ||
67 | {{ group.name }} | 72 | {{ group.name }} |
68 | </h2> | 73 | </h2> |
69 | <Service | 74 | <Service |
@@ -87,6 +92,11 @@ | |||
87 | > | 92 | > |
88 | <h2 v-if="group.name" class="group-title"> | 93 | <h2 v-if="group.name" class="group-title"> |
89 | <i v-if="group.icon" :class="['fa-fw', group.icon]"></i> | 94 | <i v-if="group.icon" :class="['fa-fw', group.icon]"></i> |
95 | <div v-else-if="group.logo" class="group-logo media-left"> | ||
96 | <figure class="image is-48x48"> | ||
97 | <img :src="group.logo" :alt="`${group.name} logo`" /> | ||
98 | </figure> | ||
99 | </div> | ||
90 | {{ group.name }} | 100 | {{ group.name }} |
91 | </h2> | 101 | </h2> |
92 | <Service | 102 | <Service |
diff --git a/src/assets/app.scss b/src/assets/app.scss index d602170..48c60ae 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss | |||
@@ -345,3 +345,7 @@ body { | |||
345 | } | 345 | } |
346 | } | 346 | } |
347 | } | 347 | } |
348 | |||
349 | .group-logo { | ||
350 | float: left; | ||
351 | } \ No newline at end of file | ||