Spaces:
Sleeping
Sleeping
unknown commited on
Commit ·
438ebc5
1
Parent(s): f31e6ae
Improved UI
Browse files- Locator/templates/Locator/index.html +2 -2
- Locator/views.py +2 -2
- templates/base.html +1 -1
Locator/templates/Locator/index.html
CHANGED
|
@@ -234,7 +234,7 @@
|
|
| 234 |
<div class="locator-header">
|
| 235 |
<div style="display:inline-flex;align-items:center;gap:.5rem;background:var(--accent-dim);border:1px solid rgba(99,102,241,.25);border-radius:6px;padding:.25rem .75rem;font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#a5b4fc;margin-bottom:.875rem;">
|
| 236 |
<svg width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 0 1-2.827 0l-4.244-4.243a8 8 0 1 1 11.314 0z"/><path stroke-linecap="round" d="M15 11a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/></svg>
|
| 237 |
-
GPS
|
| 238 |
</div>
|
| 239 |
<h1>Sky Locator</h1>
|
| 240 |
<p>Find which constellations are visible above you right now</p>
|
|
@@ -265,7 +265,7 @@
|
|
| 265 |
</button>
|
| 266 |
<div class="loading-bar" id="loadingIndicator">
|
| 267 |
<div class="spin"></div>
|
| 268 |
-
<span>
|
| 269 |
</div>
|
| 270 |
<div class="response-box" id="constellationResponse"></div>
|
| 271 |
<div class="c-grid" id="constellationList"></div>
|
|
|
|
| 234 |
<div class="locator-header">
|
| 235 |
<div style="display:inline-flex;align-items:center;gap:.5rem;background:var(--accent-dim);border:1px solid rgba(99,102,241,.25);border-radius:6px;padding:.25rem .75rem;font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#a5b4fc;margin-bottom:.875rem;">
|
| 236 |
<svg width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 0 1-2.827 0l-4.244-4.243a8 8 0 1 1 11.314 0z"/><path stroke-linecap="round" d="M15 11a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/></svg>
|
| 237 |
+
GPS Sky Mapping
|
| 238 |
</div>
|
| 239 |
<h1>Sky Locator</h1>
|
| 240 |
<p>Find which constellations are visible above you right now</p>
|
|
|
|
| 265 |
</button>
|
| 266 |
<div class="loading-bar" id="loadingIndicator">
|
| 267 |
<div class="spin"></div>
|
| 268 |
+
<span>Mapping the sky above your location…</span>
|
| 269 |
</div>
|
| 270 |
<div class="response-box" id="constellationResponse"></div>
|
| 271 |
<div class="c-grid" id="constellationList"></div>
|
Locator/views.py
CHANGED
|
@@ -87,7 +87,7 @@ def find_constellations(request):
|
|
| 87 |
if not gemini_api_key:
|
| 88 |
return JsonResponse({
|
| 89 |
'status': 'error',
|
| 90 |
-
'message': '
|
| 91 |
})
|
| 92 |
|
| 93 |
gemini_client = google_genai.Client(api_key=gemini_api_key)
|
|
@@ -140,7 +140,7 @@ def find_constellations(request):
|
|
| 140 |
except Exception as e:
|
| 141 |
return JsonResponse({
|
| 142 |
'status': 'error',
|
| 143 |
-
'message':
|
| 144 |
})
|
| 145 |
|
| 146 |
except json.JSONDecodeError:
|
|
|
|
| 87 |
if not gemini_api_key:
|
| 88 |
return JsonResponse({
|
| 89 |
'status': 'error',
|
| 90 |
+
'message': 'Sky mapping service is not configured'
|
| 91 |
})
|
| 92 |
|
| 93 |
gemini_client = google_genai.Client(api_key=gemini_api_key)
|
|
|
|
| 140 |
except Exception as e:
|
| 141 |
return JsonResponse({
|
| 142 |
'status': 'error',
|
| 143 |
+
'message': 'Unable to map the sky right now. Please try again in a moment.'
|
| 144 |
})
|
| 145 |
|
| 146 |
except json.JSONDecodeError:
|
templates/base.html
CHANGED
|
@@ -203,7 +203,7 @@
|
|
| 203 |
<div class="footer-inner">
|
| 204 |
<div class="footer-bottom">
|
| 205 |
<span>© 2026 Constellar · Constellation Predictor</span>
|
| 206 |
-
<span>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
</footer>
|
|
|
|
| 203 |
<div class="footer-inner">
|
| 204 |
<div class="footer-bottom">
|
| 205 |
<span>© 2026 Constellar · Constellation Predictor</span>
|
| 206 |
+
<span>Find constellations above you</span>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
</footer>
|