aletrn commited on
Commit
6457f07
·
1 Parent(s): 64e17cf

[feat] add navbar with blog, samgis presentation, samgis docs

Browse files
static/src/App.vue CHANGED
@@ -1,5 +1,5 @@
1
  <template>
2
- <PageLayout page-title="Inference map page">
3
  <div>
4
  <div id="map-container-md">
5
  <PredictionMap
 
1
  <template>
2
+ <PageLayout pageTitle="SamGIS - Inference map page">
3
  <div>
4
  <div id="map-container-md">
5
  <PredictionMap
static/src/components/NavBar/MobileNavBar.vue ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <template>
2
+ <div class="bg-gray-200 items-center h-8">
3
+ <TabComponent description="About SamGIS" href="https://trinca.tornidor.com/projects/samgis-segment-anything-applied-to-GIS" />
4
+ <TabComponent description="My blog" href="https://trinca.tornidor.com/" />
5
+ <TabComponent description="SamGIS docs" href="https://docs.trinca.tornidor.com/" />
6
+ </div>
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+
11
+ import TabComponent from '@/components/NavBar/TabComponent.vue'
12
+ </script>
static/src/components/NavBar/NavBar.vue ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <template>
2
+ <div class="fixed top-2 right-5 mr-2 items-center">
3
+ <TabComponent description="About SamGIS" href="https://trinca.tornidor.com/projects/samgis-segment-anything-applied-to-GIS" />
4
+ <TabComponent description="My blog" href="https://trinca.tornidor.com/" />
5
+ <TabComponent description="SamGIS docs" href="https://docs.trinca.tornidor.com/" />
6
+ </div>
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+
11
+ import TabComponent from '@/components/NavBar/TabComponent.vue'
12
+ </script>
static/src/components/NavBar/TabComponent.vue ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <template>
2
+ <h2>
3
+ <a :href="props.href"
4
+ class="bg-white border-2 no-underline pl-2 pr-2 p-1
5
+ landscape:border-gray-300 landscape:font-semibold landscape:text-lg"
6
+ >{{ props.description }}</a>
7
+ </h2>
8
+ </template>
9
+
10
+ <script setup lang="ts">
11
+ const props = defineProps<{
12
+ href: string,
13
+ description: string,
14
+ }>()
15
+ </script>
static/src/components/PageLayout.vue CHANGED
@@ -1,8 +1,10 @@
1
  <template>
2
  <div class="relative min-h-screen lg:flex">
3
- <!-- Sidebar -->
 
 
4
 
5
- <main id="content" class="flex-1 z-1 pb-12 ml-[3.3rem] lg:ml-0 mr-4 overflow-y-auto md:pl-1 lg:h-screen">
6
  <header class="hidden items-center justify-between h-10 ml-2 landscape:md:flex portrait:sd:flex portrait:md:h-12 bg-gray-200 border-b">
7
  <h2 class="hidden sd:text-sm ml-2 md:block md:text-2xl">{{ props.pageTitle }}</h2>
8
  </header>
@@ -21,6 +23,8 @@
21
 
22
  <script setup lang="ts">
23
  import Footer from "@/components/PageFooter.vue"
 
 
24
 
25
  const props = defineProps<{
26
  pageTitle: string
 
1
  <template>
2
  <div class="relative min-h-screen lg:flex">
3
+ <!-- Menubar -->
4
+ <NavBar class="hidden portrait:sd:hidden portrait:md:flex landscape:flex" style="z-index: 9999;"/>
5
+ <MobileNavBar class="flex portrait:sd:flex portrait:md:hidden landscape:hidden" style="z-index: 9999;"/>
6
 
7
+ <main id="content" class="flex-1 z-1 lg:ml-0 mr-4 overflow-y-auto md:pl-1 lg:h-screen">
8
  <header class="hidden items-center justify-between h-10 ml-2 landscape:md:flex portrait:sd:flex portrait:md:h-12 bg-gray-200 border-b">
9
  <h2 class="hidden sd:text-sm ml-2 md:block md:text-2xl">{{ props.pageTitle }}</h2>
10
  </header>
 
23
 
24
  <script setup lang="ts">
25
  import Footer from "@/components/PageFooter.vue"
26
+ import NavBar from '@/components/NavBar/NavBar.vue'
27
+ import MobileNavBar from '@/components/NavBar/MobileNavBar.vue'
28
 
29
  const props = defineProps<{
30
  pageTitle: string
static/src/components/PagePredictionMap.vue CHANGED
@@ -1,10 +1,10 @@
1
  <template>
2
  <div class="h-auto">
3
 
4
- <div class="grid grid-cols-1 2xl:grid-cols-5 lg:gap-1 lg:border-r">
5
 
6
  <div class="lg:border-r lg:col-span-3">
7
- <div id="id-map-cont" class="ml-2 mt-2 md:ml-4 md:mr-4">
8
  <p class="hidden lg:block">{{ description }}</p>
9
  <div class="w-full md:pt-1 md:pb-1 lg:hidden portrait:xl:hidden">
10
  <ButtonMapSendRequest
 
1
  <template>
2
  <div class="h-auto">
3
 
4
+ <div class="grid grid-cols-1 2xl:grid-cols-5 lg:gap-1 lg:border-r ml-2 mt-2 md:ml-4 md:mr-4">
5
 
6
  <div class="lg:border-r lg:col-span-3">
7
+ <div id="id-map-cont" class="">
8
  <p class="hidden lg:block">{{ description }}</p>
9
  <div class="w-full md:pt-1 md:pb-1 lg:hidden portrait:xl:hidden">
10
  <ButtonMapSendRequest