2019-11-30 04:55:32 +00:00
|
|
|
<template>
|
2020-06-27 00:57:30 +00:00
|
|
|
<a
|
|
|
|
:href="`/network/${network.slug}`"
|
|
|
|
:title="network.name"
|
|
|
|
class="tile"
|
|
|
|
:class="{ sfw }"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${network.slug}/thumbs/network.png`"
|
|
|
|
:alt="network.name"
|
|
|
|
class="logo lazy"
|
|
|
|
>
|
|
|
|
</a>
|
2019-11-30 04:55:32 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-03-23 03:58:23 +00:00
|
|
|
function sfw() {
|
2020-06-27 00:57:30 +00:00
|
|
|
return this.$store.state.ui.sfw;
|
2020-03-23 03:58:23 +00:00
|
|
|
}
|
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
export default {
|
2020-06-27 00:57:30 +00:00
|
|
|
props: {
|
|
|
|
network: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
sfw,
|
|
|
|
},
|
2019-11-30 04:55:32 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.tile {
|
2020-02-20 01:35:23 +00:00
|
|
|
height: 6rem;
|
2020-03-23 03:58:23 +00:00
|
|
|
background: var(--profile);
|
2019-11-30 04:55:32 +00:00
|
|
|
display: flex;
|
2020-02-20 01:35:23 +00:00
|
|
|
flex-shrink: 0;
|
2020-06-27 00:57:30 +00:00
|
|
|
justify-content: center;
|
2019-11-30 04:55:32 +00:00
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
box-shadow: 0 0 3px rgba(0, 0, 0, .25);
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
2020-06-27 00:57:30 +00:00
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
2019-11-30 04:55:32 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2020-03-23 03:58:23 +00:00
|
|
|
color: var(--text);
|
2019-11-30 04:55:32 +00:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|