2020-10-28 08:22:29 -07:00
|
|
|
<template>
|
2020-12-11 11:37:04 -08:00
|
|
|
<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>
|
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>
|
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
return { mainLinks };
|
|
|
|
}
|
2020-10-28 08:22:29 -07:00
|
|
|
}
|
|
|
|
</script>
|