Jared Norris před 8 roky
rodič
revize
aefa9ad1c6

+ 7
- 1
VueApp/src/App.vue Zobrazit soubor

@@ -61,9 +61,15 @@ export default {
61 61
 <style>
62 62
 @import '../node_modules/bootstrap/dist/css/bootstrap.css';
63 63
   .navbar {
64
-    background-color: #D0CFCF
64
+    background-color: #D0CFCF;
65
+    position: sticky;
65 66
   }
66 67
   .btn-margin {
67 68
     margin-top: 8px
68 69
   }
70
+  body {
71
+    background-image: url('../static/Mountains.png');
72
+    background-blend-mode: hard-light;
73
+    background-position: top;
74
+  }
69 75
 </style>

+ 8
- 16
VueApp/src/components/ElevationGraph.vue Zobrazit soubor

@@ -24,19 +24,11 @@
24 24
         elevationService: null,
25 25
         chartData: null,
26 26
         chartOptions: {
27
-          hAxis: {
28
-            title: 'Elevations'
29
-          },
30
-          vAxis: {
31
-            title: 'Feet'
32
-          },
33
-          legend: 'none',
34
-          bar: {
35
-            groupWidth: '100%'
36
-          },
37
-          chartArea: {
38
-            top: 20
39
-          }
27
+          backgroundColor: { fill: 'transparent' },
28
+          vAxis: { textStyle: { color: '#FFF' } },
29
+          bar: { groupWidth: '100%' },
30
+          chartArea: { top: 20 },
31
+          legend: 'none'
40 32
         }
41 33
       }
42 34
     },
@@ -59,10 +51,10 @@
59 51
           if (status === 'OK') {
60 52
             elevations.forEach((e, i) =>
61 53
               Math.abs(e.elevation - elevations[i + 1].elevation) > 1
62
-                ? this.chartData.push(['', e.elevation, '#CC001E'])
54
+                ? this.chartData.push(['', e.elevation, '#CAE9FF'])
63 55
                 : Math.abs(e.elevation - elevations[i + 1].elevation) > 0.5
64
-                  ? this.chartData.push(['', e.elevation, '#A00018'])
65
-                  : this.chartData.push(['', e.elevation, '#700010'])
56
+                  ? this.chartData.push(['', e.elevation, '#2E9FE1'])
57
+                  : this.chartData.push(['', e.elevation, '#004E64'])
66 58
             )
67 59
           }
68 60
         })

+ 1
- 2
VueApp/src/components/GoogleMap.vue Zobrazit soubor

@@ -16,7 +16,7 @@
16 16
       :center="center"
17 17
       :zoom="16"
18 18
       mapTypeId="terrain"
19
-      style="width: 100%;  height: 500px;"
19
+      style="width: 100%;  height: 600px;"
20 20
     ></gmap-map>
21 21
   </div>
22 22
 </template>
@@ -93,7 +93,6 @@
93 93
         this.listenForDirections()
94 94
       },
95 95
       listenForDirections () {
96
-        console.log('direction listener')
97 96
         this.directionsDisplay.addListener('directions_changed', () => {
98 97
           this.emitRoute()
99 98
         })

+ 3
- 3
VueApp/src/components/Home.vue Zobrazit soubor

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div>
2
+  <div class="text-center">
3 3
     <h1 class="welcome">Welcome!</h1>
4 4
     <h4 v-if="!authenticated">
5 5
         Please log in to continue.
@@ -19,9 +19,9 @@
19 19
   }
20 20
 </script>
21 21
 
22
-<style>
22
+<style scoped>
23 23
   a {
24
-    cursor: pointer;
24
+    cursor: pointer
25 25
   }
26 26
 </style>
27 27
 

+ 2
- 2
VueApp/src/components/Main.vue Zobrazit soubor

@@ -38,8 +38,8 @@
38 38
 <style scoped>
39 39
   body {
40 40
     display: grid;
41
-    grid-template-rows: 3fr 1fr;
42
-    grid-template-columns: 1fr 2fr 2fr 1fr;
41
+    grid-template-rows: 4fr 1fr;
42
+    grid-template-columns: 1fr minmax(100px, 3fr) minmax(100px, 3fr) 1fr;
43 43
     grid-template-areas:
44 44
       "map     map    map     map "
45 45
       "....   info    info    ....";

binární
VueApp/static/Mountains.png Zobrazit soubor


binární
VueApp/static/jlusk-mountains.jpg Zobrazit soubor