2021-01-12 11:06:59 -08:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<Icon v="collective-logo.svg"/>
|
|
|
|
<T>contact.team.name</T>
|
|
|
|
</h2>
|
|
|
|
|
2021-01-22 14:54:24 -08:00
|
|
|
<figure class="float-end border rounded">
|
2021-01-12 11:06:59 -08:00
|
|
|
<img src="/img/collective-logo.svg" alt=""/>
|
|
|
|
<figcaption>
|
|
|
|
<p><T>contact.team.logo</T></p>
|
|
|
|
<p class="text-center bigger mb-0">
|
|
|
|
<Icon v="transgender-alt"/>
|
|
|
|
+
|
|
|
|
<Icon v="comment"/>
|
|
|
|
=
|
|
|
|
<Icon v="collective-logo.svg"/>
|
|
|
|
</p>
|
|
|
|
</figcaption>
|
|
|
|
</figure>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<T>contact.team.description</T>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section v-if="Object.keys(config.contact.blog).length">
|
|
|
|
<h3>
|
|
|
|
<Icon v="pen-nib"/>
|
|
|
|
<T>contact.team.blog</T>
|
|
|
|
</h3>
|
|
|
|
<ul>
|
|
|
|
<li v-for="(title, slug) in config.contact.blog" class="mb-2">
|
|
|
|
<nuxt-link :to="`/blog/${slug}`">
|
|
|
|
{{title}}
|
|
|
|
</nuxt-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<h3>
|
|
|
|
<Icon v="user-friends"/>
|
|
|
|
<T>contact.team.members</T>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<template v-for="(members, locale) in membersByLocale" v-if="members.length">
|
|
|
|
<h4 class="mt-4">
|
|
|
|
<template v-if="locale === ''">
|
|
|
|
<T>contact.team.upcoming</T>
|
|
|
|
</template>
|
|
|
|
<template v-else-if="locale === config.locale">
|
|
|
|
{{locales[locale].name}}
|
|
|
|
</template>
|
|
|
|
<a v-else :href="locales[locale].url">
|
|
|
|
{{locales[locale].name}}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
<ul class="list-unstyled member-list">
|
2021-01-21 09:56:08 -08:00
|
|
|
<li v-for="member in members" class="mb-3 d-flex">
|
2021-01-12 11:06:59 -08:00
|
|
|
<a :href="`https://pronouns.page/@${member.username}`">
|
|
|
|
<Avatar :user="member" dsize="4rem"/>
|
|
|
|
</a>
|
2021-01-22 14:54:24 -08:00
|
|
|
<span class="ms-2">
|
2021-01-12 11:06:59 -08:00
|
|
|
{{ member.teamName }}
|
|
|
|
<br/>
|
2021-01-22 14:54:24 -08:00
|
|
|
<a :href="`https://pronouns.page/@${member.username}`" class="badge bg-light text-dark border">
|
2021-01-12 11:06:59 -08:00
|
|
|
@{{member.username}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { head } from "../src/helpers";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
head() {
|
|
|
|
return head({
|
|
|
|
title: this.$t('contact.team.name'),
|
|
|
|
});
|
|
|
|
},
|
|
|
|
async asyncData({app}) {
|
|
|
|
return {
|
|
|
|
membersByLocale: await app.$axios.$get(`/admin/list`),
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "assets/variables";
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 18rem;
|
|
|
|
padding: $spacer;
|
|
|
|
> img {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
figcaption {
|
|
|
|
font-size: $small-font-size;
|
|
|
|
}
|
|
|
|
}
|
2021-01-21 09:56:08 -08:00
|
|
|
@include media-breakpoint-down('md', $grid-breakpoints) {
|
|
|
|
figure {
|
|
|
|
float: none !important;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
}
|
2021-01-12 11:06:59 -08:00
|
|
|
|
|
|
|
.bigger {
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up('md', $grid-breakpoints) {
|
|
|
|
.member-list {
|
|
|
|
column-count: 3;
|
|
|
|
column-width: 16rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|