forked from potsda.mn/mobilizon
parent
045c0a8521
commit
2d982abc78
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<b-navbar
|
<b-navbar
|
||||||
id="navbar"
|
id="navbar"
|
||||||
type="is-secondary"
|
type="is-bleuvert"
|
||||||
wrapper-class="container"
|
wrapper-class="container"
|
||||||
:active.sync="mobileNavbarActive"
|
:active.sync="mobileNavbarActive"
|
||||||
>
|
>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot="start">
|
<template slot="start">
|
||||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
||||||
$t("Filter")
|
$t("Explore")
|
||||||
}}</b-navbar-item>
|
}}</b-navbar-item>
|
||||||
<b-navbar-item
|
<b-navbar-item
|
||||||
v-if="currentActor.id && currentUser.isLoggedIn"
|
v-if="currentActor.id && currentUser.isLoggedIn"
|
||||||
|
@ -344,7 +344,7 @@ nav {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
background: $secondary;
|
background: #1d1d1d;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.icon.is-medium {
|
span.icon.is-medium {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
v-if="config.registrationsOpen"
|
v-if="config.registrationsOpen"
|
||||||
>{{ $t("Create an account") }}</b-button
|
>{{ $t("Create an account") }}</b-button
|
||||||
>
|
>
|
||||||
<!-- We don't invite to find other instances yet chnage for commit-->
|
<!-- We don't invite to find other instances yet -->
|
||||||
<!-- <b-button v-else type="is-link" tag="a" href="https://joinmastodon.org">{{ $t('Find an instance') }}</b-button> -->
|
<!-- <b-button v-else type="is-link" tag="a" href="https://joinmastodon.org">{{ $t('Find an instance') }}</b-button> -->
|
||||||
<b-button
|
<b-button
|
||||||
type="is-text"
|
type="is-text"
|
||||||
|
@ -51,26 +51,18 @@
|
||||||
>
|
>
|
||||||
<section class="events-recent">
|
<section class="events-recent">
|
||||||
<h2 class="title">
|
<h2 class="title">
|
||||||
{{ $t("Upcoming events") }}
|
{{ $t("Last published events") }}
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<i18n tag="span" path="On {instance} and other federated instances">
|
<i18n tag="span" path="On {instance} and other federated instances">
|
||||||
<b slot="instance">{{ config.name }}</b>
|
<b slot="instance">{{ config.name }}</b>
|
||||||
</i18n>
|
</i18n>
|
||||||
</p>
|
</p>
|
||||||
<div v-if="events.elements.length > 0">
|
<div v-if="this.events.total > 0">
|
||||||
<multi-card class="my-4" :events="events.elements" />
|
<multi-card :events="events.elements.slice(0, 6)" />
|
||||||
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
|
||||||
<b-pagination
|
|
||||||
:total="events.total"
|
|
||||||
v-model="featuredEventPage"
|
|
||||||
:per-page="EVENT_PAGE_LIMIT"
|
|
||||||
>
|
|
||||||
</b-pagination>
|
|
||||||
</div>
|
|
||||||
<span class="view-all">
|
<span class="view-all">
|
||||||
<router-link :to="{ name: RouteName.SEARCH }"
|
<router-link :to="{ name: RouteName.SEARCH }"
|
||||||
>{{ $t("Filter") }} >></router-link
|
>{{ $t("View everything") }} >></router-link
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,104 +71,6 @@
|
||||||
}}</b-message>
|
}}</b-message>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div id="picture" v-if="config && (!currentUser.id || !currentActor.id)">
|
|
||||||
<div class="picture-container">
|
|
||||||
<picture>
|
|
||||||
<source
|
|
||||||
media="(max-width: 799px)"
|
|
||||||
srcset="/img/pics/homepage-480w.webp"
|
|
||||||
type="image/webp"
|
|
||||||
/>
|
|
||||||
<source
|
|
||||||
media="(max-width: 799px)"
|
|
||||||
srcset="/img/pics/homepage-480w.jpg"
|
|
||||||
type="image/jpeg"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<source
|
|
||||||
media="(max-width: 1024px)"
|
|
||||||
srcset="/img/pics/homepage-1024w.webp"
|
|
||||||
type="image/webp"
|
|
||||||
/>
|
|
||||||
<source
|
|
||||||
media="(max-width: 1024px)"
|
|
||||||
srcset="/img/pics/homepage-1024w.jpg"
|
|
||||||
type="image/jpeg"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<source
|
|
||||||
media="(max-width: 1920px)"
|
|
||||||
srcset="/img/pics/homepage-1920w.webp"
|
|
||||||
type="image/webp"
|
|
||||||
/>
|
|
||||||
<source
|
|
||||||
media="(max-width: 1920px)"
|
|
||||||
srcset="/img/pics/homepage-1920w.jpg"
|
|
||||||
type="image/jpeg"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<source
|
|
||||||
media="(min-width: 1921px)"
|
|
||||||
srcset="/img/pics/homepage.webp"
|
|
||||||
type="image/webp"
|
|
||||||
/>
|
|
||||||
<source
|
|
||||||
media="(min-width: 1921px)"
|
|
||||||
srcset="/img/pics/homepage.jpg"
|
|
||||||
type="image/jpeg"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<img
|
|
||||||
src="/img/pics/homepage-1024w.jpg"
|
|
||||||
width="3840"
|
|
||||||
height="2719"
|
|
||||||
alt=""
|
|
||||||
loading="lazy"
|
|
||||||
/>
|
|
||||||
</picture>
|
|
||||||
</div>
|
|
||||||
<div class="container section">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column">
|
|
||||||
<h3 class="title">{{ $t("A practical tool") }}</h3>
|
|
||||||
<p
|
|
||||||
v-html="
|
|
||||||
$t(
|
|
||||||
'Mobilizon is a tool that helps you <b>find, create and organise events</b>.'
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<h3 class="title">{{ $t("An ethical alternative") }}</h3>
|
|
||||||
<p
|
|
||||||
v-html="
|
|
||||||
$t(
|
|
||||||
'Ethical alternative to Facebook events, groups and pages, Mobilizon is a <b>tool designed to serve you</b>. Period.'
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<h3 class="title">{{ $t("A federated software") }}</h3>
|
|
||||||
<p
|
|
||||||
v-html="
|
|
||||||
$t(
|
|
||||||
'Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.'
|
|
||||||
)
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="buttons">
|
|
||||||
<a
|
|
||||||
class="button is-primary is-large"
|
|
||||||
href="https://joinmobilizon.org"
|
|
||||||
>{{ $t("Learn more about Mobilizon") }}</a
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container section" v-if="config && loggedUserSettings">
|
<div class="container section" v-if="config && loggedUserSettings">
|
||||||
<section v-if="currentActor.id && (welcomeBack || newRegisteredUser)">
|
<section v-if="currentActor.id && (welcomeBack || newRegisteredUser)">
|
||||||
<b-message type="is-info" v-if="welcomeBack">{{
|
<b-message type="is-info" v-if="welcomeBack">{{
|
||||||
|
@ -297,7 +191,7 @@
|
||||||
/>
|
/>
|
||||||
<section class="events-recent">
|
<section class="events-recent">
|
||||||
<h2 class="title">
|
<h2 class="title">
|
||||||
{{ $t("Upcoming events") }}
|
{{ $t("Last published events") }}
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<i18n tag="span" path="On {instance} and other federated instances">
|
<i18n tag="span" path="On {instance} and other federated instances">
|
||||||
|
@ -306,10 +200,10 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div v-if="events.total > 0">
|
<div v-if="events.total > 0">
|
||||||
<multi-card :events="events.elements" />
|
<multi-card :events="events.elements.slice(0, 8)" />
|
||||||
<span class="view-all">
|
<span class="view-all">
|
||||||
<router-link :to="{ name: RouteName.SEARCH }"
|
<router-link :to="{ name: RouteName.SEARCH }"
|
||||||
>{{ $t("Filter") }} >></router-link
|
>{{ $t("View everything") }} >></router-link
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -353,16 +247,13 @@ import { IConfig } from "../types/config.model";
|
||||||
import { IFollowedGroupEvent } from "../types/followedGroupEvent.model";
|
import { IFollowedGroupEvent } from "../types/followedGroupEvent.model";
|
||||||
import Subtitle from "../components/Utils/Subtitle.vue";
|
import Subtitle from "../components/Utils/Subtitle.vue";
|
||||||
|
|
||||||
const EVENT_PAGE_LIMIT = 99;
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
apollo: {
|
apollo: {
|
||||||
events: {
|
events: {
|
||||||
query: FETCH_EVENTS,
|
query: FETCH_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
orderBy: EventSortField.BEGINS_ON,
|
orderBy: EventSortField.INSERTED_AT,
|
||||||
direction: SortDirection.ASC,
|
direction: SortDirection.DESC,
|
||||||
limit: EVENT_PAGE_LIMIT,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
currentActor: {
|
currentActor: {
|
||||||
|
@ -674,7 +565,6 @@ section.hero {
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
opacity: 0.3;
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
background: url("../../public/img/pics/homepage_background-1024w.png");
|
background: url("../../public/img/pics/homepage_background-1024w.png");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="section container">
|
<div class="section container">
|
||||||
<!-- <h1 class="title">{{ $t("Explore") }}</h1> -->
|
<h1 class="title">{{ $t("Explore") }}</h1>
|
||||||
<section v-if="tag">
|
<section v-if="tag">
|
||||||
<i18n path="Events tagged with {tag}">
|
<i18n path="Events tagged with {tag}">
|
||||||
<b-tag slot="tag" type="is-light">{{ $t("#{tag}", { tag }) }}</b-tag>
|
<b-tag slot="tag" type="is-light">{{ $t("#{tag}", { tag }) }}</b-tag>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
v-if="!canSearchEvents && !canSearchGroups"
|
v-if="!canSearchEvents && !canSearchGroups"
|
||||||
>
|
>
|
||||||
<b-loading :active.sync="$apollo.loading"></b-loading>
|
<b-loading :active.sync="$apollo.loading"></b-loading>
|
||||||
<!-- <h2 class="title">{{ $t("Featured events") }}</h2> -->
|
<h2 class="title">{{ $t("Featured events") }}</h2>
|
||||||
<div v-if="events.elements.length > 0">
|
<div v-if="events.elements.length > 0">
|
||||||
<multi-card class="my-4" :events="events.elements" />
|
<multi-card class="my-4" :events="events.elements" />
|
||||||
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
<div class="pagination" v-if="events.total > EVENT_PAGE_LIMIT">
|
||||||
|
@ -255,9 +255,9 @@ interface ISearchTimeOption {
|
||||||
end?: Date | null;
|
end?: Date | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const EVENT_PAGE_LIMIT = 99;
|
const EVENT_PAGE_LIMIT = 12;
|
||||||
|
|
||||||
const GROUP_PAGE_LIMIT = 99;
|
const GROUP_PAGE_LIMIT = 12;
|
||||||
|
|
||||||
const DEFAULT_RADIUS = 25; // value to set if radius is null but location set
|
const DEFAULT_RADIUS = 25; // value to set if radius is null but location set
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue