2020-09-29 10:11:46 -07:00
|
|
|
<template>
|
2020-11-29 02:03:01 -08:00
|
|
|
<div>
|
2020-09-29 10:11:46 -07:00
|
|
|
<h2>
|
|
|
|
<Icon v="user-friends"/>
|
|
|
|
<T>people.headerLonger</T>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<T>people.intro</T>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<ul class="list-group">
|
|
|
|
<li v-for="person in people" class="list-group-item">
|
|
|
|
<h3 class="h4">
|
|
|
|
<strong>
|
|
|
|
{{person.name}}
|
|
|
|
</strong>
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
{{person.description}}
|
|
|
|
</p>
|
|
|
|
<ul class="mb-2">
|
|
|
|
<li v-for="(pronouns, locale) in person.pronouns">
|
|
|
|
<T>people.languages.{{locale}}</T>:
|
|
|
|
<ul class="list-inline d-inline">
|
|
|
|
<li v-for="pronoun in pronouns" class="list-inline-item">
|
2020-11-15 00:02:28 -08:00
|
|
|
<LocaleLink :link="'/' + pronoun.link" :locale="locale">
|
2020-09-29 10:11:46 -07:00
|
|
|
<strong>{{pronoun.display}}</strong>
|
2020-11-15 00:02:28 -08:00
|
|
|
</LocaleLink>
|
2020-09-29 10:11:46 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-12-04 13:09:57 -08:00
|
|
|
<!-- TODO <SourceList v-if="person.sources.length" :names="person.sources"/> -->
|
2020-09-29 10:11:46 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ScrollButton/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { people } from "~/src/data";
|
|
|
|
import { head } from "../src/helpers";
|
2020-12-04 13:09:57 -08:00
|
|
|
import {SourceLibrary} from "../src/classes";
|
2020-09-29 10:11:46 -07:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
people,
|
|
|
|
}
|
|
|
|
},
|
2020-12-04 13:09:57 -08:00
|
|
|
async asyncData({app}) {
|
|
|
|
return {
|
|
|
|
sources: await app.$axios.$get(`/sources`),
|
|
|
|
}
|
|
|
|
},
|
2020-09-29 10:11:46 -07:00
|
|
|
head() {
|
|
|
|
return head({
|
2020-09-30 12:59:41 -07:00
|
|
|
title: this.$t('people.headerLonger'),
|
|
|
|
description: this.$t('people.description'),
|
2020-09-29 10:11:46 -07:00
|
|
|
});
|
|
|
|
},
|
2020-12-04 13:09:57 -08:00
|
|
|
computed: {
|
|
|
|
sourceLibrary() {
|
|
|
|
return new SourceLibrary(this.sources);
|
|
|
|
},
|
|
|
|
},
|
2020-09-29 10:11:46 -07:00
|
|
|
}
|
|
|
|
</script>
|