Skip to content

Commit f5625d9

Browse files
committed
chore: make all locations the same colore
1 parent 3bd4c2e commit f5625d9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/templates/map.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn map(location_balances: &[(&Location, i64, i64)]) -> Markup {
1313

1414
div class="alert-brutal mb-8" {
1515
p class="text-sm font-bold" {
16-
"EXPLORE LOCATIONS AROUND YOU. GREEN MARKERS HAVE MORE SATS AVAILABLE, RED MARKERS ARE NEARLY EMPTY."
16+
"EXPLORE LOCATIONS AROUND YOU. TAP MARKERS TO SEE AVAILABLE SATS."
1717
}
1818
}
1919

@@ -59,15 +59,12 @@ pub fn map(location_balances: &[(&Location, i64, i64)]) -> Markup {
5959
const bounds = new maplibregl.LngLatBounds();
6060
6161
locations.forEach(loc => {{
62-
const satsPercent = loc.pool_sats > 0 ? (loc.available_sats / loc.pool_sats * 10) * 100 : 0;
63-
const color = satsPercent > 50 ? '#22c55e' : satsPercent > 20 ? '#eab308' : '#ef4444';
64-
6562
// Create custom marker element
6663
const el = document.createElement('div');
6764
el.style.width = '20px';
6865
el.style.height = '20px';
6966
el.style.borderRadius = '50%';
70-
el.style.backgroundColor = color;
67+
el.style.backgroundColor = '#F7931A';
7168
el.style.border = '2px solid #fff';
7269
el.style.cursor = 'pointer';
7370
el.style.boxShadow = '0 2px 4px rgba(0,0,0,0.3)';

0 commit comments

Comments
 (0)