diff --git a/geocaches.json b/geocaches.json index b0f638b..02f53ed 100644 --- a/geocaches.json +++ b/geocaches.json @@ -23,70 +23,6 @@ "createdAt": 1767115055219, "alerted": true }, - { - "id": "gc_1767127362829_hbnrs61u2", - "lat": 30.527765731982754, - "lng": -97.83747911453248, - "messages": [ - { - "author": "Dr. Poopinshitz", - "text": "Home is where you poop", - "timestamp": 1767127384562 - }, - { - "author": "Riker", - "text": "I poop here too", - "timestamp": 1767132954284 - }, - { - "author": "Sulu", - "text": "I poop outside weirdos.", - "timestamp": 1767132973928 - }, - { - "author": "Ibby Dibby", - "text": "CAN I EAT IT?", - "timestamp": 1767133040824 - }, - { - "author": "Riker", - "text": "Stupid little cousin ibby dibby...", - "timestamp": 1767133204544 - }, - { - "author": "Presley", - "text": "BARK! god damnit BARK!", - "timestamp": 1767199495387 - }, - { - "author": "test", - "text": "test", - "timestamp": 1767199518737 - }, - { - "author": "ji", - "text": "ji", - "timestamp": 1767200126654 - }, - { - "author": "noice", - "text": "noice", - "timestamp": 1767200152466 - }, - { - "author": "noice 2", - "text": "ceecac", - "timestamp": 1767200173936 - }, - { - "author": "ear", - "text": "aer", - "timestamp": 1767200335702 - } - ], - "createdAt": 1767127362829, - "alerted": true - }, { "id": "gc_1767133043404_9zkbxphry", "lat": 30.52230723615832, @@ -126,6 +62,26 @@ "timestamp": 1767201911761 } ], - "createdAt": 1767201872423 + "createdAt": 1767201872423, + "alerted": false, + "color": "#000000", + "visibilityDistance": 6 + }, + { + "id": "gc_1767206407844_pajkdohom", + "lat": 30.527761111163603, + "lng": -97.83752202987671, + "title": "RikerWuzHurr", + "icon": "dog", + "color": "#000000", + "visibilityDistance": 10, + "messages": [ + { + "author": "Riker", + "text": "wuz hurr!", + "timestamp": 1767206476888 + } + ], + "createdAt": 1767206407844 } ] \ No newline at end of file diff --git a/index.html b/index.html index 8091f3a..b82b963 100644 --- a/index.html +++ b/index.html @@ -691,57 +691,178 @@ z-index: 998; } - /* Admin Panel Styles */ + /* Admin Panel Styles - Mobile First */ .admin-setting-group { padding: 15px 10px; } .admin-input-row { display: flex; - align-items: center; - margin-bottom: 12px; - gap: 10px; + flex-direction: column; + margin-bottom: 20px; + gap: 8px; } .admin-input-row label { - flex: 0 0 180px; - color: #ddd; - font-size: 13px; - font-weight: 500; + color: #FFA726; + font-size: 14px; + font-weight: 600; letter-spacing: 0.3px; + margin-bottom: 4px; } - .admin-input-row input[type="number"] { - width: 80px; - padding: 6px 8px; + .admin-input-wrapper { + display: flex; + align-items: center; + gap: 10px; + } + .admin-input-row input[type="number"], + .admin-input-row input[type="range"] { + flex: 1; + min-height: 44px; + padding: 10px 12px; background: #2a2a2a; color: white; - border: 1px solid #444; - border-radius: 4px; - font-size: 13px; + border: 2px solid #444; + border-radius: 8px; + font-size: 16px; text-align: center; + -webkit-appearance: none; } - .admin-input-row input[type="number"]:focus { + .admin-input-row input[type="checkbox"] { + width: 24px; + height: 24px; + cursor: pointer; + } + .admin-input-row input[type="number"]:focus, + .admin-input-row input[type="range"]:focus { outline: none; border-color: #4CAF50; background: #333; + box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); } .admin-input-row .unit { - color: #999; - font-size: 12px; - font-style: italic; - min-width: 50px; + color: #aaa; + font-size: 14px; + white-space: nowrap; + min-width: 60px; + text-align: right; + } + .admin-range-value { + background: #333; + color: #FFA726; + padding: 8px 12px; + border-radius: 6px; + font-weight: bold; + min-width: 60px; + text-align: center; + border: 1px solid #555; + } + /* Desktop layout */ + @media (min-width: 768px) { + .admin-input-row { + flex-direction: row; + align-items: center; + } + .admin-input-row label { + flex: 0 0 200px; + margin-bottom: 0; + } + .admin-input-row input[type="number"], + .admin-input-row input[type="range"] { + flex: 0 0 auto; + width: 120px; + } } .admin-button-group { - padding: 15px 10px; + padding: 20px 10px; display: flex; - gap: 10px; - flex-wrap: wrap; + flex-direction: column; + gap: 12px; } .admin-button-group button { - flex: 1; - min-width: 140px; - font-size: 13px; - padding: 10px; + min-height: 48px; + padding: 12px 20px; + background: #4CAF50; + color: white; + border: none; + border-radius: 8px; + cursor: pointer; + font-size: 15px; + font-weight: 600; + transition: all 0.2s; + box-shadow: 0 2px 4px rgba(0,0,0,0.2); letter-spacing: 0.5px; } + .admin-button-group button:active { + transform: translateY(1px); + box-shadow: 0 1px 2px rgba(0,0,0,0.2); + } + .admin-button-group button:hover { + background: #45a049; + box-shadow: 0 4px 8px rgba(0,0,0,0.3); + } + .admin-button-group button.danger { + background: #f44336; + } + .admin-button-group button.danger:hover { + background: #da190b; + } + @media (min-width: 768px) { + .admin-button-group { + flex-direction: row; + flex-wrap: wrap; + } + .admin-button-group button { + min-height: 40px; + flex: 1; + min-width: 140px; + } + } + /* Save indicator */ + .admin-save-indicator { + position: fixed; + top: 70px; + right: 20px; + background: #4CAF50; + color: white; + padding: 10px 20px; + border-radius: 20px; + box-shadow: 0 2px 8px rgba(0,0,0,0.3); + opacity: 0; + transform: translateY(-10px); + transition: all 0.3s; + z-index: 10000; + pointer-events: none; + } + .admin-save-indicator.show { + opacity: 1; + transform: translateY(0); + } + /* Collapsible sections */ + .section.collapsible .section-title { + cursor: pointer; + user-select: none; + position: relative; + padding-right: 30px; + } + .section.collapsible .section-title:after { + content: '▼'; + position: absolute; + right: 10px; + top: 50%; + transform: translateY(-50%); + transition: transform 0.3s; + color: #FFA726; + } + .section.collapsed .section-title:after { + transform: translateY(-50%) rotate(-90deg); + } + .section-content { + max-height: 1000px; + overflow: hidden; + transition: max-height 0.3s ease; + } + .section.collapsed .section-content { + max-height: 0; + } @keyframes slideUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } @@ -907,14 +1028,19 @@
-
+
Geocache Settings
-
-
- - - meters -
+
+
+
+ +
+ + 5 + meters +
+ +
@@ -1032,6 +1158,9 @@
+ +
Settings Saved ✓
+