mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-26 08:38:56 +01:00
Merge pull request #196 from GaaH/use-logo-in-groups
Use logo in groups
This commit is contained in:
commit
66eace9e95
@ -104,6 +104,8 @@ links:
|
||||
services:
|
||||
- name: "Application"
|
||||
icon: "fas fa-code-branch"
|
||||
# A path to an image can also be provided. Note that icon take precedence if both icon and logo are set.
|
||||
# logo: "path/to/logo"
|
||||
items:
|
||||
- name: "Awesome app"
|
||||
logo: "assets/tools/sample.png"
|
||||
|
10
src/App.vue
10
src/App.vue
@ -64,6 +64,11 @@
|
||||
<template v-for="group in services">
|
||||
<h2 v-if="group.name" class="column is-full group-title">
|
||||
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
|
||||
<div v-else-if="group.logo" class="group-logo media-left">
|
||||
<figure class="image is-48x48">
|
||||
<img :src="group.logo" :alt="`${group.name} logo`" />
|
||||
</figure>
|
||||
</div>
|
||||
{{ group.name }}
|
||||
</h2>
|
||||
<Service
|
||||
@ -87,6 +92,11 @@
|
||||
>
|
||||
<h2 v-if="group.name" class="group-title">
|
||||
<i v-if="group.icon" :class="['fa-fw', group.icon]"></i>
|
||||
<div v-else-if="group.logo" class="group-logo media-left">
|
||||
<figure class="image is-48x48">
|
||||
<img :src="group.logo" :alt="`${group.name} logo`" />
|
||||
</figure>
|
||||
</div>
|
||||
{{ group.name }}
|
||||
</h2>
|
||||
<Service
|
||||
|
@ -345,3 +345,7 @@ body {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.group-logo {
|
||||
float: left;
|
||||
}
|
Loading…
Reference in New Issue
Block a user