File size: 2,615 Bytes
1ac84c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html>
<head>
    <title>Admin Panel - LLM GeoGuessr</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <style>
        h1 {
            color: var(--dark-color);
            text-align: center;
        }
        #controls {
            width: 90%;
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: space-around;
            flex-wrap: wrap;
        }
        #controls h2 {
            display: none; /* Title is obvious from context */
        }
        #controls .control-item {
            margin: 5px 10px;
        }
        #controls .control-item p {
            margin: 0;
            font-size: 0.9rem;
            color: #555;
        }
        #controls .control-item label {
            margin-right: 5px;
        }
        #controls .control-item select,
        #controls .control-item button {
            width: 100%;
            padding: 10px;
            box-sizing: border-box; /* Ensures padding is included in the width */
        }
        #map {
            height: 75vh;
            margin: 0 auto;
            width: calc(100% - 40px);
            border-radius: var(--border-radius);
        }
    </style>
</head>
<body>
    <h1>Admin Panel</h1>
    <div id="controls">
        <div class="control-item">
            <p>Select "Draw" then use the rectangle tool on the map.</p>
        </div>
        <div class="control-item">
            <button id="new-zone-btn">Draw New Zone</button>
        </div>
        <div class="control-item">
            <label for="difficulty-select">Difficulty:</label>
            <select id="difficulty-select">
                <option value="easy">Easy</option>
                <option value="medium">Medium</option>
                <option value="hard">Hard</option>
            </select>
        </div>
        <div class="control-item">
            <button id="save-zone" disabled>Save Zone</button>
        </div>
    </div>
    <div id="status-message-container" style="text-align: center; margin-bottom: 10px;">
         <p id="status-message"></p>
    </div>
    <div id="map"></div>
    <script src="{{ url_for('static', filename='admin.js') }}"></script>
    <script async defer src="https://maps.googleapis.com/maps/api/js?key={{ google_maps_api_key }}&libraries=drawing&callback=initAdminMap"></script>
</body>
</html>