2019-11-10 03:20:22 +00:00
|
|
|
<template>
|
|
|
|
<a
|
|
|
|
:href="`/site/${site.slug}`"
|
2019-11-12 00:22:20 +00:00
|
|
|
:title="site.name"
|
2019-11-10 03:20:22 +00:00
|
|
|
class="tile"
|
|
|
|
>
|
2019-11-10 03:47:41 +00:00
|
|
|
<object
|
|
|
|
:data="`/img/logos/${site.network.slug}/${site.slug}.png`"
|
|
|
|
type="image/png"
|
|
|
|
class="logo"
|
|
|
|
>{{ site.name }}</object>
|
2019-11-10 03:20:22 +00:00
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
site: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.tile {
|
2019-11-14 04:13:38 +00:00
|
|
|
background: $background;
|
2019-11-10 03:20:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
2019-11-11 04:18:28 +00:00
|
|
|
padding: .5rem 1rem;
|
2019-11-10 03:20:22 +00:00
|
|
|
border-radius: .25rem;
|
|
|
|
box-shadow: 0 0 3px rgba(0, 0, 0, .25);
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
width: 100%;
|
2019-11-12 00:22:20 +00:00
|
|
|
height: 5rem;
|
|
|
|
color: $text;
|
2019-11-10 03:47:41 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2019-11-10 03:20:22 +00:00
|
|
|
object-fit: contain;
|
2019-11-10 03:47:41 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: bold;
|
2019-11-30 04:55:32 +00:00
|
|
|
filter: drop-shadow(0 0 1px $shadow);
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
color: $text;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|