2020-01-05 00:08:38 +00:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
v-if="site"
|
|
|
|
class="content site"
|
|
|
|
>
|
|
|
|
<FilterBar :fetch-releases="fetchSite" />
|
|
|
|
|
2020-01-05 01:50:55 +00:00
|
|
|
<div class="header">
|
|
|
|
<a
|
2020-01-11 04:31:04 +00:00
|
|
|
v-tooltip.bottom="site.url && `Go to ${site.url}`"
|
2020-01-05 01:50:55 +00:00
|
|
|
:href="site.url"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-01-05 02:27:26 +00:00
|
|
|
class="link link-site"
|
2020-01-05 01:50:55 +00:00
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${site.network.slug}/${site.slug}.png`"
|
|
|
|
:title="site.name"
|
|
|
|
:alt="site.name"
|
2020-01-05 02:27:26 +00:00
|
|
|
class="logo logo-site"
|
2020-01-05 00:08:38 +00:00
|
|
|
>
|
2020-01-05 01:50:55 +00:00
|
|
|
</a>
|
|
|
|
|
2020-01-13 22:45:09 +00:00
|
|
|
<ul class="tags nolist">
|
|
|
|
<li
|
|
|
|
v-for="tag in site.tags"
|
|
|
|
:key="`tag-${tag.slug}`"
|
|
|
|
class="tag"
|
|
|
|
>{{ tag.name }}</li>
|
|
|
|
</ul>
|
|
|
|
|
2020-01-05 02:27:26 +00:00
|
|
|
<a
|
|
|
|
v-tooltip.bottom="`Go to ${site.network.name} overview`"
|
|
|
|
:href="`/network/${site.network.slug}`"
|
|
|
|
class="link link-network"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${site.network.slug}/network.png`"
|
|
|
|
:title="site.network.name"
|
|
|
|
:alt="site.network.name"
|
|
|
|
class="logo logo-network"
|
|
|
|
>
|
|
|
|
</a>
|
2020-01-05 01:50:55 +00:00
|
|
|
</div>
|
2020-01-05 00:08:38 +00:00
|
|
|
|
2020-01-05 01:50:55 +00:00
|
|
|
<div class="content-inner">
|
|
|
|
<Releases :releases="releases" />
|
2020-01-05 00:08:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import FilterBar from '../header/filter-bar.vue';
|
|
|
|
import Releases from '../releases/releases.vue';
|
|
|
|
|
|
|
|
async function fetchSite() {
|
|
|
|
this.site = await this.$store.dispatch('fetchSites', { siteSlug: this.$route.params.siteSlug });
|
|
|
|
this.releases = this.site.releases;
|
|
|
|
}
|
|
|
|
|
|
|
|
async function mounted() {
|
|
|
|
await this.fetchSite();
|
|
|
|
|
|
|
|
this.pageTitle = this.site.name;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
FilterBar,
|
|
|
|
Releases,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
site: null,
|
|
|
|
releases: null,
|
|
|
|
pageTitle: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
methods: {
|
|
|
|
fetchSite,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.header {
|
2020-01-05 01:50:55 +00:00
|
|
|
background: $profile;
|
2020-01-05 02:27:26 +00:00
|
|
|
color: $text-contrast;
|
2020-01-05 00:08:38 +00:00
|
|
|
display: flex;
|
2020-01-05 01:50:55 +00:00
|
|
|
align-items: center;
|
2020-01-05 00:08:38 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2020-01-05 02:27:26 +00:00
|
|
|
.link {
|
2020-01-05 01:50:55 +00:00
|
|
|
padding: 1rem;
|
2020-01-05 00:08:38 +00:00
|
|
|
}
|
|
|
|
|
2020-01-05 02:27:26 +00:00
|
|
|
.link-site {
|
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
justify-content: flex-start;
|
2020-01-06 20:49:37 +00:00
|
|
|
|
|
|
|
.logo {
|
|
|
|
object-position: 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.link-network {
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
object-position: 100% 0;
|
|
|
|
}
|
2020-01-05 00:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
2020-01-05 02:27:26 +00:00
|
|
|
width: 100%;
|
|
|
|
max-width: 15rem;
|
|
|
|
max-height: 5rem;
|
2020-01-05 00:08:38 +00:00
|
|
|
object-fit: contain;
|
2020-01-05 02:27:26 +00:00
|
|
|
filter: $logo-highlight;
|
2020-01-05 00:08:38 +00:00
|
|
|
}
|
|
|
|
|
2020-01-13 22:45:09 +00:00
|
|
|
.tag {
|
|
|
|
background: $shadow;
|
|
|
|
padding: .5rem;
|
|
|
|
margin: 0 .5rem .5rem 0;
|
|
|
|
}
|
|
|
|
|
2020-01-05 02:27:26 +00:00
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.link {
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
}
|
2020-01-05 00:08:38 +00:00
|
|
|
|
2020-01-05 02:27:26 +00:00
|
|
|
.logo {
|
|
|
|
max-height: 2.5rem;
|
|
|
|
}
|
2020-01-13 22:45:09 +00:00
|
|
|
|
|
|
|
.tags {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-01-05 00:08:38 +00:00
|
|
|
}
|
|
|
|
</style>
|