add option to use logo instead of icons in groups

This commit is contained in:
Gaëtan Caillaut 2021-03-06 13:56:44 +01:00
parent cc7ff88552
commit 42477020cf
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -345,3 +345,7 @@ body {
}
}
}
.group-logo {
float: left;
}