-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathGalleryFooter.vue
73 lines (72 loc) · 2.15 KB
/
GalleryFooter.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
<div id="footer" class="w-full flex flex-col justify-end flex-wrap align-bottom self-end text-center py-5 px-0 text-3xs" v-if="footerData">
<!--
Footer Vertically shares space with the content.
The height of the footer is always the natural height
of its child elements
-->
<div id="home_socials" class="w-full" style="display: none" v-if="footerData.footer_show_social_media">
<a
v-if="footerData.sm_facebook_url !== ''"
:href="footerData.sm_facebook_url"
class="socialicons"
id="facebook"
target="_blank"
rel="noopener"
></a>
<a
v-if="footerData.sm_flickr_url !== ''"
:href="footerData.sm_flickr_url"
class="socialicons"
id="flickr"
target="_blank"
rel="noopener"
></a>
<a
v-if="footerData.sm_twitter_url !== ''"
:href="footerData.sm_twitter_url"
class="socialicons"
id="twitter"
target="_blank"
rel="noopener"
></a>
<a
v-if="footerData.sm_instagram_url !== ''"
:href="footerData.sm_instagram_url"
class="socialicons"
id="instagram"
target="_blank"
rel="noopener"
></a>
<a
v-if="footerData.sm_youtube_url !== ''"
:href="footerData.sm_youtube_url"
class="socialicons"
id="youtube"
target="_blank"
rel="noopener"
></a>
</div>
<p v-if="footerData.copyright !== ''" class="home_copyright w-full uppercase text-muted-color leading-6 font-normal">
{{ footerData.copyright }}
</p>
<p
v-if="footerData.footer_additional_text !== ''"
class="personal_text w-full text-muted-color leading-6 font-normal"
v-html="footerData.footer_additional_text"
></p>
<p class="hosted_by w-full uppercase text-muted-color leading-6 font-normal">
<a rel="noopener noreferrer" target="_blank" href="https://LycheeOrg.github.io" tabindex="-1" class="underline">{{
$t("lychee.HOSTED_WITH_LYCHEE")
}}</a>
</p>
</div>
</template>
<script setup lang="ts">
import InitService from "@/services/init-service";
import { ref } from "vue";
const footerData = ref<App.Http.Resources.GalleryConfigs.FooterConfig | undefined>(undefined);
InitService.fetchFooter().then((data) => {
footerData.value = data.data;
});
</script>