This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/Authors.vue

68 lines
2.7 KiB
Vue
Raw Normal View History

2020-09-23 12:16:56 -07:00
<template>
<ul :class="{'list-unstyled': !expanded}">
<li v-for="author in authors">
{{ author.name }}
(<nuxt-link :to="author.pronounsLink">{{ author.pronouns }}</nuxt-link>,
<a v-if="author.website" :href="author.website" target="_blank" rel="noopener"><Icon v="globe"/></a>
<a v-if="author.twitter" :href="'https://twitter.com/' + author.twitter" target="_blank" rel="noopener"><Icon v="twitter" set="b"/></a>
<a v-if="author.mail" :href="'mailto:' + author.mail" target="_blank" rel="noopener"><Icon v="envelope"/></a>)
<template v-for="(link, area, index) in author.areas">
2020-09-23 14:00:01 -07:00
<Spaceless>
<nuxt-link v-if="link && link.indexOf('/') === 0" :to="link">{{ area }}</nuxt-link>
<a v-else-if="link" :href="link" target="_blank" rel="noopener">{{ area }}</a>
<span v-else>{{ area }}</span>
<span v-if="index < Object.keys(author.areas).length - 1">, </span>
</Spaceless>
2020-09-23 12:16:56 -07:00
</template>
</li>
</ul>
</template>
<script>
export default {
props: {
expanded: { type: Boolean }
},
data() {
return {
authors: [
{
name: 'Andrea',
pronouns: 'onu',
pronounsLink: '/onu',
website: 'https://avris.it',
twitter: 'AvrisIT',
mail: 'andrea@avris.it',
areas: {
kod: 'https://gitlab.com/Avris/Zaimki',
język: null,
},
},
{
name: 'Paweł Dembowski',
pronouns: 'on',
pronounsLink: '/on',
twitter: 'VaultAusir',
mail: 'pawel.dembowski@gmail.com',
areas: {
język: null,
literatura: '/literatura',
},
},
{
name: 'Zuzanna Sybilla Grzybowska',
pronouns: 'ona/ono',
pronounsLink: '/ona&ono/jej',
twitter: 'mykofanes',
mail: 'zuzannagrzybowska@protonmail.com',
areas: {
neutratywy: '/neutratywy',
},
},
],
};
},
}
</script>