2019-11-30 04:55:32 +00:00
|
|
|
<template>
|
|
|
|
<div class="networks">
|
|
|
|
<Network
|
|
|
|
v-for="network in networks"
|
|
|
|
:key="`network-${network.id}`"
|
|
|
|
:network="network"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Network from '../tile/network.vue';
|
|
|
|
|
|
|
|
async function mounted() {
|
|
|
|
this.networks = await this.$store.dispatch('fetchNetworks');
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Network,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
networks: [],
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-01-06 04:19:38 +00:00
|
|
|
@import 'theme';
|
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
.networks {
|
|
|
|
display: grid;
|
2019-12-04 20:58:08 +00:00
|
|
|
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
|
2019-11-30 04:55:32 +00:00
|
|
|
grid-gap: 1rem;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
2020-01-06 04:19:38 +00:00
|
|
|
|
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.networks {
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
</style>
|