Refined network layout

This commit is contained in:
2020-01-05 03:02:02 +01:00
parent 44d48916ba
commit 746b9bf201
4 changed files with 40 additions and 8 deletions

View File

@@ -1,5 +1,18 @@
<template>
<ul class="nolist sites">
<a
v-if="network"
:href="network.url"
target="_blank"
rel="noopener noreferrer"
class="tile"
>
<img
:src="`/img/logos/${network.slug}/network.png`"
class="logo"
>
</a>
<li
v-for="site in sites"
:key="`site-${site.id}`"
@@ -17,6 +30,10 @@ export default {
SiteTile,
},
props: {
network: {
type: Object,
default: null,
},
sites: {
type: Array,
default: () => [],
@@ -49,4 +66,8 @@ export default {
grid-template-columns: repeat(2, .5fr);
}
}
.logo {
width: 15rem;
}
</style>