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

79 lines
3.0 KiB
Vue
Raw Normal View History

2020-09-23 12:16:56 -07:00
<template>
<ul :class="{'list-unstyled': !expanded}">
2020-09-24 14:08:13 -07:00
<li v-for="author in authors" class="mb-2">
2020-09-23 12:16:56 -07:00
{{ author.name }}
2020-09-24 14:08:13 -07:00
(<nuxt-link :to="author.pronounsLink">{{ author.pronouns }}</nuxt-link>)
2020-09-23 12:16:56 -07:00
<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>
2020-09-24 14:08:13 -07:00
<br/>
<a v-if="author.website" :href="author.website" target="_blank" rel="noopener" class="badge badge-light border">
<Icon v="globe"/>
Blog
</a>
<a v-if="author.twitter" :href="'https://twitter.com/' + author.twitter" target="_blank" rel="noopener" class="badge badge-light border">
<Icon v="twitter" set="b"/>
Twitter
</a>
<a v-if="author.mail" :href="'mailto:' + author.mail" target="_blank" rel="noopener" class="badge badge-light border">
<Icon v="envelope"/>
Email
</a>
2020-09-23 12:16:56 -07:00
</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',
2020-09-24 14:08:13 -07:00
pronouns: 'on/ona/ono',
pronounsLink: '/on&ona&ono',
2020-09-23 12:16:56 -07:00
twitter: 'mykofanes',
mail: 'zuzannagrzybowska@protonmail.com',
areas: {
neutratywy: '/neutratywy',
2020-09-24 14:08:13 -07:00
'social media': null,
2020-09-23 12:16:56 -07:00
},
},
],
};
},
}
</script>