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/homepage.vue

105 lines
2.6 KiB
Vue
Raw Normal View History

2020-10-28 08:22:29 -07:00
<template>
<div>
2021-09-05 02:58:37 -07:00
<template v-if="$te('home.welcome')">
<section>
<h2>
<T>home.welcome</T>
</h2>
2020-10-28 08:22:29 -07:00
2021-09-05 02:58:37 -07:00
<p>
<T>home.intro</T>
</p>
<div class="row">
<div v-for="{icon, header, route} in mainLinks" class="col-12 col-lg my-4 text-center">
<nuxt-link :to="`/${route}`">
<p>
<Icon :v="icon" size="3"/>
</p>
<p class="h4">
<Spelling :text="$t(header)"/>
</p>
</nuxt-link>
</div>
</div>
2021-04-04 18:05:03 -07:00
2021-09-05 02:58:37 -07:00
<CalendarBanner link/>
</section>
2021-06-15 08:24:25 -07:00
2021-09-05 02:58:37 -07:00
<section>
<Share/>
</section>
2020-10-28 08:22:29 -07:00
2021-09-05 02:58:37 -07:00
<Separator icon="info-circle"/>
</template>
2021-08-14 01:42:49 -07:00
2020-10-28 08:22:29 -07:00
<section>
2021-09-05 02:58:37 -07:00
<h2>
<T>home.why</T>
</h2>
<T>home.about</T>
2020-10-28 08:22:29 -07:00
</section>
2021-07-24 05:55:24 -07:00
<Separator icon="fist-raised"/>
<Mission/>
2020-10-28 08:22:29 -07:00
<Separator icon="bookmark"/>
<section>
2021-08-06 04:30:58 -07:00
<div class="row">
<div class="col-12 col-md-6">
<LanguageVersions/>
2021-08-06 04:30:58 -07:00
</div>
<div class="col-12 col-md-6">
<Socials/>
2021-08-06 04:30:58 -07:00
</div>
</div>
2021-09-05 02:58:37 -07:00
</section>
<Separator icon="people-carry"/>
<section>
2021-01-27 05:24:25 -08:00
<Support/>
2020-10-28 08:22:29 -07:00
</section>
</div>
</template>
<script>
2021-08-14 01:42:49 -07:00
import { mapState } from "vuex";
2020-10-28 08:22:29 -07:00
export default {
computed: {
2021-04-04 18:05:03 -07:00
...mapState([
'user',
]),
2020-10-28 08:22:29 -07:00
},
2021-09-05 02:58:37 -07:00
data() {
const mainLinks = [];
if (this.config.pronouns.enabled) {
mainLinks.push({
icon: 'tags',
header: 'pronouns.headerLong',
route: this.config.pronouns.route,
})
}
if (this.config.nouns.enabled) {
mainLinks.push({
icon: 'book',
header: 'nouns.headerLong',
route: this.config.nouns.route,
})
}
if (this.config.user.enabled) {
mainLinks.push({
icon: 'id-card',
header: 'profile.bannerButton',
route: this.config.user.route,
})
}
return { mainLinks };
}
2020-10-28 08:22:29 -07:00
}
</script>