traxxx/assets/components/tile/site.vue

64 lines
1.0 KiB
Vue
Raw Normal View History

<template>
<a
:href="`/site/${site.slug}`"
class="tile"
>
<object
:data="`/img/logos/${site.network.slug}/${site.slug}.png`"
type="image/png"
class="logo"
>{{ site.name }}</object>
</a>
</template>
<script>
export default {
props: {
site: {
type: Object,
default: null,
},
},
};
</script>
<style lang="scss" scoped>
@import 'theme';
.tile {
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: .5rem 1rem;
border-radius: .25rem;
box-shadow: 0 0 3px rgba(0, 0, 0, .25);
height: 100%;
text-align: center;
}
.link {
text-decoration: none;
}
.logo {
color: $text;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 3rem;
object-fit: contain;
font-size: 1rem;
font-weight: bold;
}
.title {
color: $text;
height: 100%;
display: flex;
align-items: center;
margin: 0;
}
</style>