aletrn commited on
Commit
d9091d5
·
1 Parent(s): 893b5e2

[style] update footer style, add button to close the footer

Browse files
static/src/components/PageFooter.vue CHANGED
@@ -1,16 +1,34 @@
1
  <template>
2
  <!-- style 'z-index: 1001' here is needed to avoid override from leafletjs css -->
3
- <footer class="fixed bottom-0 w-full bg-gray-200 pl-2 font-light text-xs" style="z-index: 9999;">
4
- <p>
5
- <span><PageFooterHyperlink path="/">SamGIS</PageFooterHyperlink>: An inference machine learning POC applied to GIS thanks to
6
- <PageFooterHyperlink path="https://github.com/vietanhdev/samexporter/">SAM Exporter</PageFooterHyperlink>
7
- and inspired by
8
- <PageFooterHyperlink path="https://samgeo.gishub.org/">Segment Geospatial</PageFooterHyperlink>
9
- </span>
10
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </footer>
12
  </template>
13
 
14
  <script setup lang="ts">
 
15
  import PageFooterHyperlink from "@/components/PageFooterHyperlink.vue";
 
 
16
  </script>
 
1
  <template>
2
  <!-- style 'z-index: 1001' here is needed to avoid override from leafletjs css -->
3
+ <footer class="fixed bottom-0 w-full bg-gray-200 pl-4 font-light text-xs" style="z-index: 9999;" v-if="showFooterRef">
4
+ <div class="relative flex">
5
+ <div class="w-full">
6
+ <p class="">Trouble on scrolling this page? Open the
7
+ <PageFooterHyperlink path="https://aletrn-samgis.hf.space">direct URL space</PageFooterHyperlink>
8
+ as a new tab.
9
+ </p>
10
+ <p class="">
11
+ <span><PageFooterHyperlink path="/">SamGIS</PageFooterHyperlink>: An inference machine learning POC applied to GIS thanks to
12
+ <PageFooterHyperlink path="https://github.com/vietanhdev/samexporter/">SAM Exporter</PageFooterHyperlink>
13
+ and inspired by
14
+ <PageFooterHyperlink path="https://samgeo.gishub.org/">Segment Geospatial</PageFooterHyperlink>
15
+ </span>
16
+ </p>
17
+ </div>
18
+ <div>
19
+ <button
20
+ aria-label="Close"
21
+ class="shrink-0 rounded-lg bg-black/10 p-2 transition hover:bg-black/20"
22
+ @click="showFooterRef = !showFooterRef"
23
+ >x</button>
24
+ </div>
25
+ </div>
26
  </footer>
27
  </template>
28
 
29
  <script setup lang="ts">
30
+ import {ref} from 'vue'
31
  import PageFooterHyperlink from "@/components/PageFooterHyperlink.vue";
32
+
33
+ const showFooterRef = ref(true)
34
  </script>