2020-10-28 08:22:29 -07:00
|
|
|
<template>
|
2020-12-11 11:37:04 -08:00
|
|
|
<div>
|
2022-05-07 13:16:44 -07:00
|
|
|
<UkraineBanner class="mb-4"/>
|
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>
|
2021-09-16 00:11:56 -07:00
|
|
|
|
|
|
|
<CalendarBanner v-if="!$te('home.welcome')" link/>
|
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">
|
2021-08-06 05:23:12 -07:00
|
|
|
<LanguageVersions/>
|
2021-08-06 04:30:58 -07:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6">
|
2021-08-06 05:23:12 -07:00
|
|
|
<Socials/>
|
2021-08-06 04:30:58 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-05 02:58:37 -07:00
|
|
|
</section>
|
|
|
|
|
2022-01-19 14:46:28 -08:00
|
|
|
<template v-if="posts.length">
|
|
|
|
<Separator icon="pen-nib" class="mb-5"/>
|
|
|
|
<section>
|
|
|
|
<BlogEntriesList :posts="posts"/>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
2021-12-25 15:46:05 -08:00
|
|
|
<Separator icon="heart"/>
|
2021-09-05 02:58:37 -07:00
|
|
|
<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,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-01-19 14:46:28 -08:00
|
|
|
return {
|
|
|
|
mainLinks,
|
|
|
|
posts: [],
|
|
|
|
};
|
|
|
|
},
|
|
|
|
async mounted() {
|
2022-01-21 01:51:51 -08:00
|
|
|
if (this.config.blog && this.config.blog.shortcuts) {
|
|
|
|
this.posts = await this.$axios.$get(`/blog?shortcuts`);
|
|
|
|
}
|
2022-01-19 14:46:28 -08:00
|
|
|
},
|
2020-10-28 08:22:29 -07:00
|
|
|
}
|
|
|
|
</script>
|