summaryrefslogtreecommitdiff
path: root/dashboard_website/templates/index.html
blob: 1e4a11359c9dad488b2f2a7e31653d4ad8223a0f (plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html style="height:100%">

<head>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.css') }}"
    integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
    crossorigin=""/>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/dashboard.css') }}"/>
    <script src="{{ url_for('static', filename='js/leaflet.js') }}"
    integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
    crossorigin=""></script>
    <script src="https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.js"></script>
    <script src="{{ url_for('static', filename='js/dashboard.js') }}"></script>
    <script>
        var homebase = JSON.parse('{{ homebase | tojson | safe}}');
        var bikes = JSON.parse('{{ bikes | tojson | safe}}');
        var clues = JSON.parse('{{ clues | tojson | safe}}');
    </script>
</head>

<body style="height:100%">
    <style>
        #map { height: 100%; }
        * {
        box-sizing: border-box;
        }
        html{
            padding:0;
            margin: 0;
            height:100%;
        }

        body{
            padding:0;
            margin: 0;
            height:100%;
        }
        .page-container {
      
          display: flex;
               
      
          background-color: black;
          height: 100%;
          gap: 5px;
          height:100%;
          padding:10px;
      
        }
        .page-container > div{
          padding: 8px;
        }
      
      
        .left-column { 
          /* flex:0.75 1 auto; */
          flex-grow:0;
          flex-basis:75em;
          display: flex;
          flex-direction: column;
          gap: 5px;
        }
        .left-column > div{
          background: black;
          border: 3px double lightgray;
          padding: 0px;
        }
        .page-title { 
            /* flex:0.2 1 auto; */
            flex-grow:0.03;
            display: flex;
            align-items: center;
        }    
        .map-frame { 
            /* flex:0.2 1 auto; */
            flex-grow:1.0;
        }     
        .route-controls { 
            /* flex:0.6 1 auto; */
            flex-grow:0.15;
            display: flex;
            flex-direction: column;
        }
                  
        .right-column { 
          /* flex:0.25 1 auto; */
          flex-grow:0;
          flex-basis:25em;
          display: flex;
          flex-direction: column;
          gap: 5px;
        }
        .right-column > div{
          background: black;
          border: 3px double lightgray;
          padding: 0px;
        }
        .clue-stats { 
            /* flex:0.2 1 auto; */
            flex-grow:0.2;
            display: flex;
            flex-direction: column;
        }    
        .bike-teams { 
            /* flex:0.2 1 auto; */
            flex-grow:0.2;
            display: flex;
            flex-direction: column;
        }     
        .add-clue { 
            /* flex:0.6 1 auto; */
            flex-grow:0.6;
            display: flex;
            flex-direction: column;
        }
                  
        .leaflet-popup-content {
            color: black;
        }
        .leaflet-control-layers-overlays > label > span > span {
            color: black;
        }
        input {
            color: black;
        }
        button {
            color: black;
        }
      
      </style>
      
      <div class="page-container">
         
        <div class="left-column">
            <div class="page-title">
                <h1 style="color:white;margin: 0px;margin-left:15px">CLUBHOUSE HQ</h1>
            </div>
            <div class="map-frame">
                <div id="map"></div>
            </div>
            <div class="route-controls">
                <span style="margin:-1px;margin-left:5px;margin-top:5px;">ROUTE CONTROLS</span>
                <hr style="width:100%;padding:0px;">
            </div>
        </div>
        <div class="right-column">
            <div class="clue-stats">
                <span style="margin:-1px;margin-left:5px;margin-top:5px;">CLUE STATS</span>
                <hr style="width:100%;padding:0px;">
            </div>
            <div class="bike-teams">
                <span style="margin:-1px;margin-left:5px;margin-top:5px;">BIKE TEAMS</span>
                <hr style="width:100%;padding:0px;">
            </div>
            <div class="add-clue">
                <span style="margin:-1px;margin-left:5px;margin-top:5px;">ADD CLUE</span>
                <hr style="width:100%;padding:0px;">
                <div style="margin:5px;display:flex;flex-direction:row"> <span>Clue Name: </span> <input type="input" id="new_clue_name" style="flex:1;" placeholder="e.g., C34"/></div>
                <div style="margin:5px;display:flex;flex-direction:row"> <span>Clue Information: </span> <input type="input" id="new_clue_info" style="flex:1;" placeholder="e.g., Savenor's Butcher"/></div>
                <div style="margin:5px;display:flex;flex-direction:row"> <span>Longitude: </span> <input type="input" id="new_clue_longitude" style="flex:1;" placeholder="e.g., -71.0688746"/></div>
                <div style="margin:5px;display:flex;flex-direction:row"> <span>Latitude: </span> <input type="input" id="new_clue_latitude" style="flex:1;" placeholder="e.g., 40.3587273"/></div>
                <div id="previewmap" style="height:70%; margin:5px;"></div>
                <div style="margin:5px;display:flex;flex-direction:row; justify-content: center;"> <button>Submit</button> <button>Clear</button></div>
            </div>
        </div>
      
      </div>
</body>

</html>