mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-01-13 09:28:38 +01:00
add option to use logo instead of icons in groups
This commit is contained in:
parent
cc7ff88552
commit
42477020cf
10
src/App.vue
10
src/App.vue
@ -62,6 +62,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
|
||||
@ -85,6 +90,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