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/routes/any.vue

75 lines
2.0 KiB
Vue
Raw Normal View History

2020-09-13 13:15:44 -07:00
<template>
2020-11-29 02:03:01 -08:00
<div>
2020-09-13 13:15:44 -07:00
<h2>
<Icon v="tag"/>
<T>pronouns.intro</T>:
2020-09-13 13:15:44 -07:00
</h2>
<section>
<div class="alert alert-primary">
<h2 class="text-center mb-0">
<strong><T>pronouns.any.short</T></strong>
2020-09-13 13:15:44 -07:00
</h2>
<p class="h6 small text-center mb-0 mt-2">
<em>
<T>pronouns.any.description</T>
(<T>pronouns.any.options</T>)
2020-09-13 13:15:44 -07:00
</em>
</p>
</div>
</section>
<section>
<h2 class="h4">
<Icon v="file-signature"/>
<T>pronouns.examples</T>:
2020-09-13 13:15:44 -07:00
</h2>
<ul>
<li v-for="example in examples" class="my-1">
<Example :example="example" :pronoun="randomPronoun()" link/>
2020-09-13 13:15:44 -07:00
</li>
</ul>
</section>
<section>
<Share :title="`${$t('pronouns.intro')}: ${$t('pronouns.any.short')}`"/>
2020-09-13 13:15:44 -07:00
</section>
<Separator icon="info"/>
<section class="mb-0">
<h2 class="h4">
<Icon v="info-circle"/>
<T>home.whatisit</T>:
2020-09-13 13:15:44 -07:00
</h2>
<T>home.about</T>
2020-09-13 13:15:44 -07:00
<Homepage align="center"/>
</section>
</div>
</template>
<script>
import { examples, pronouns } from "~/src/data";
2020-09-23 12:29:55 -07:00
import { head } from "../src/helpers";
2020-09-13 13:15:44 -07:00
export default {
data() {
return {
examples: examples,
}
},
head() {
2020-09-23 12:29:55 -07:00
return head({
title: `${this.$t('pronouns.intro')}: ${this.$t('pronouns.any.short')}`,
banner: `api/banner/${this.$t('pronouns.any.short')}.png`,
2020-09-23 12:29:55 -07:00
});
2020-09-13 13:15:44 -07:00
},
methods: {
randomPronoun() {
const keys = Object.keys(pronouns);
return pronouns[keys[keys.length * Math.random() << 0]];
2020-09-13 13:15:44 -07:00
},
}
}
</script>