|
@@ -3,7 +3,7 @@
|
|
|
<header class="mb-4">
|
|
<header class="mb-4">
|
|
|
<v-layout>
|
|
<v-layout>
|
|
|
<v-btn
|
|
<v-btn
|
|
|
- :to="{path: '/events', query: { theme: theme, hideTitle: hideTitle }}"
|
|
|
|
|
|
|
+ :to="{path: '/events', query: query}"
|
|
|
nuxt
|
|
nuxt
|
|
|
plain
|
|
plain
|
|
|
>
|
|
>
|
|
@@ -15,16 +15,15 @@
|
|
|
|
|
|
|
|
<v-container class="content">
|
|
<v-container class="content">
|
|
|
<v-row>
|
|
<v-row>
|
|
|
- <v-col cols="6" class="pr-6">
|
|
|
|
|
|
|
+ <v-col cols="12" sm="6" class="pr-6">
|
|
|
<img
|
|
<img
|
|
|
- v-if="publicEvent.imageId"
|
|
|
|
|
:src="publicEvent.imageId ? 'https://api.opentalent.fr/app.php/_internal/secure/files/' + publicEvent.imageId + '/raw' : '/images/event-default.jpg'"
|
|
:src="publicEvent.imageId ? 'https://api.opentalent.fr/app.php/_internal/secure/files/' + publicEvent.imageId + '/raw' : '/images/event-default.jpg'"
|
|
|
alt="banner"
|
|
alt="banner"
|
|
|
style="max-width: 100%"
|
|
style="max-width: 100%"
|
|
|
>
|
|
>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
- <v-col cols="6" class="pl-6">
|
|
|
|
|
- <v-container class="d-flex flex-column" style="min-height: 100%">
|
|
|
|
|
|
|
+ <v-col cols="12" sm="6" class="pl-6">
|
|
|
|
|
+ <div class="d-flex flex-column" style="min-height: 100%">
|
|
|
<v-row class="py-2">
|
|
<v-row class="py-2">
|
|
|
<h2>{{ publicEvent.name }}</h2>
|
|
<h2>{{ publicEvent.name }}</h2>
|
|
|
</v-row>
|
|
</v-row>
|
|
@@ -53,27 +52,31 @@
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
- <v-row class="py-2 flex">
|
|
|
|
|
- <h4 class="mt-2 mb-3">
|
|
|
|
|
|
|
+ <v-row v-if="publicEvent.description" class="py-2 flex d-flex flex-column">
|
|
|
|
|
+ <h4 class="mt-2 mb-3" style="height: fit-content;">
|
|
|
{{ $t('description') }}
|
|
{{ $t('description') }}
|
|
|
</h4>
|
|
</h4>
|
|
|
<p class="flex">
|
|
<p class="flex">
|
|
|
{{ publicEvent.description }}
|
|
{{ publicEvent.description }}
|
|
|
</p>
|
|
</p>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
- <v-row v-if="publicEvent.url" justify="end" class="py-2">
|
|
|
|
|
|
|
+ <div class="flex"></div>
|
|
|
|
|
+ <v-row v-if="publicEvent.url" justify="end" align-content="end" class="py-2">
|
|
|
<v-btn :href="publicEvent.url" target="_blank">{{ $t("more_to_know") }}</v-btn>
|
|
<v-btn :href="publicEvent.url" target="_blank">{{ $t("more_to_know") }}</v-btn>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
- </v-container>
|
|
|
|
|
|
|
+ </div>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
<v-row>
|
|
<v-row>
|
|
|
- <v-col cols="12">
|
|
|
|
|
|
|
+ <v-col
|
|
|
|
|
+ cols="12"
|
|
|
|
|
+ v-if="publicEvent.address.latitude && publicEvent.address.longitude"
|
|
|
|
|
+ >
|
|
|
<v-responsive width="100%" height="300px">
|
|
<v-responsive width="100%" height="300px">
|
|
|
<no-ssr>
|
|
<no-ssr>
|
|
|
<l-map
|
|
<l-map
|
|
|
id="map"
|
|
id="map"
|
|
|
- :zoom="13"
|
|
|
|
|
|
|
+ :zoom="16"
|
|
|
:center="[publicEvent.address.latitude, publicEvent.address.longitude]"
|
|
:center="[publicEvent.address.latitude, publicEvent.address.longitude]"
|
|
|
:options="{ scrollWheelZoom: false, zoomSnap: 0.25 }"
|
|
:options="{ scrollWheelZoom: false, zoomSnap: 0.25 }"
|
|
|
>
|
|
>
|
|
@@ -87,7 +90,7 @@
|
|
|
>
|
|
>
|
|
|
<l-popup>
|
|
<l-popup>
|
|
|
<b>{{ publicEvent.name }}</b><br>
|
|
<b>{{ publicEvent.name }}</b><br>
|
|
|
- <span v-if="publicEvent.mapAddress">
|
|
|
|
|
|
|
+ <span>
|
|
|
{{ publicEvent.address.postalCode }} {{ publicEvent.address.addressCity }}
|
|
{{ publicEvent.address.postalCode }} {{ publicEvent.address.addressCity }}
|
|
|
</span><br>
|
|
</span><br>
|
|
|
</l-popup>
|
|
</l-popup>
|
|
@@ -97,37 +100,45 @@
|
|
|
</v-responsive>
|
|
</v-responsive>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
- <v-row align-content="space-between">
|
|
|
|
|
- <v-col cols="2">
|
|
|
|
|
- </v-col>
|
|
|
|
|
|
|
+ <v-row>
|
|
|
<v-spacer />
|
|
<v-spacer />
|
|
|
- <v-col cols="5" class="d-flex flex-column align-end">
|
|
|
|
|
- <h5 class="ma-2">
|
|
|
|
|
- {{ $t('share') }}
|
|
|
|
|
- </h5>
|
|
|
|
|
- <div class="d-flex flex-row align-items-end flex-wrap">
|
|
|
|
|
- <ShareNetwork
|
|
|
|
|
- v-for="socialNetwork in socialNetworks"
|
|
|
|
|
- :key="socialNetwork.network"
|
|
|
|
|
- :network="socialNetwork.network"
|
|
|
|
|
- :url="localUrl"
|
|
|
|
|
- :title="publicEvent.name"
|
|
|
|
|
- :description="publicEvent.description"
|
|
|
|
|
- hashtags="opentalent,event"
|
|
|
|
|
- :media="publicEvent.imageId ? 'https://api.opentalent.fr/app.php/_internal/secure/files/' + publicEvent.imageId + '/raw' : '/images/event-default.jpg'"
|
|
|
|
|
- class="social-link"
|
|
|
|
|
- >
|
|
|
|
|
- <a
|
|
|
|
|
- :title="$t('share_on') + ' ' + socialNetwork.name"
|
|
|
|
|
- :style="{color: socialNetwork.color}"
|
|
|
|
|
- >
|
|
|
|
|
- <font-awesome-icon
|
|
|
|
|
- class="icon social-icon"
|
|
|
|
|
- :icon="socialNetwork.icon"
|
|
|
|
|
- />
|
|
|
|
|
- </a>
|
|
|
|
|
- </ShareNetwork>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <v-col cols="12" md="6" class="d-flex flex-column align-end">
|
|
|
|
|
+ <table>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <h5 class="ma-2">
|
|
|
|
|
+ {{ $t('share') }}
|
|
|
|
|
+ </h5>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <div class="d-flex flex-row align-items-start flex-wrap">
|
|
|
|
|
+ <ShareNetwork
|
|
|
|
|
+ v-for="socialNetwork in socialNetworks"
|
|
|
|
|
+ :key="socialNetwork.network"
|
|
|
|
|
+ :network="socialNetwork.network"
|
|
|
|
|
+ :url="localUrl"
|
|
|
|
|
+ :title="publicEvent.name"
|
|
|
|
|
+ :description="publicEvent.description"
|
|
|
|
|
+ hashtags="opentalent,event"
|
|
|
|
|
+ :media="publicEvent.imageId ? 'https://api.opentalent.fr/app.php/_internal/secure/files/' + publicEvent.imageId + '/raw' : '/images/event-default.jpg'"
|
|
|
|
|
+ class="social-link"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a
|
|
|
|
|
+ :title="$t('share_on') + ' ' + socialNetwork.name"
|
|
|
|
|
+ :style="{color: socialNetwork.color}"
|
|
|
|
|
+ >
|
|
|
|
|
+ <font-awesome-icon
|
|
|
|
|
+ class="icon social-icon"
|
|
|
|
|
+ :icon="socialNetwork.icon"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </ShareNetwork>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
</v-container>
|
|
</v-container>
|
|
@@ -146,7 +157,7 @@ export default Vue.extend({
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
theme: this.$route.query.theme ?? 'orange',
|
|
theme: this.$route.query.theme ?? 'orange',
|
|
|
- hideTitle: this.$route.query.hideTitle === 'true',
|
|
|
|
|
|
|
+ organization: this.$route.query.organization ?? null,
|
|
|
dateUtils: new DatesUtils(this.$dateFns, this.$t, this.$i18n),
|
|
dateUtils: new DatesUtils(this.$dateFns, this.$t, this.$i18n),
|
|
|
localUrl: location.href,
|
|
localUrl: location.href,
|
|
|
socialNetworks: [
|
|
socialNetworks: [
|
|
@@ -160,6 +171,15 @@ export default Vue.extend({
|
|
|
] // @see https://nicolasbeauvais.github.io/vue-social-sharing/?path=/story/vuesocialsharing--multiple-share-networks
|
|
] // @see https://nicolasbeauvais.github.io/vue-social-sharing/?path=/story/vuesocialsharing--multiple-share-networks
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ query () {
|
|
|
|
|
+ const q: any = { theme: this.theme }
|
|
|
|
|
+ if (this.organization !== null) {
|
|
|
|
|
+ q.organization = this.organization
|
|
|
|
|
+ }
|
|
|
|
|
+ return q
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
async asyncData ({
|
|
async asyncData ({
|
|
|
params, $axios
|
|
params, $axios
|
|
|
}): Promise<{ publicEvent: PublicEvent }> {
|
|
}): Promise<{ publicEvent: PublicEvent }> {
|
|
@@ -212,6 +232,13 @@ h4 {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+@media screen and (max-width: 600px) {
|
|
|
|
|
+ .content {
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ margin: 10px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.contact td {
|
|
.contact td {
|
|
|
padding: 6px 12px;
|
|
padding: 6px 12px;
|
|
|
}
|
|
}
|