diff --git a/src/App.jsx b/src/App.jsx
index 013f5ff..a24cf7f 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -46,7 +46,8 @@ import {
applyTheme,
fetchServerConfig,
calculateGridSquare,
- calculateSunTimes
+ calculateSunTimes,
+ getBandColor
} from './utils';
const App = () => {
@@ -701,6 +702,40 @@ const App = () => {
hoveredSpot={hoveredSpot}
hideOverlays={true}
/>
+ {/* Compact Band Legend */}
+
+ {[
+ { band: '160', color: '#ff6666' }, { band: '80', color: '#ff9966' },
+ { band: '40', color: '#ffcc66' }, { band: '30', color: '#99ff66' },
+ { band: '20', color: '#66ff99' }, { band: '17', color: '#66ffcc' },
+ { band: '15', color: '#66ccff' }, { band: '12', color: '#6699ff' },
+ { band: '10', color: '#9966ff' }, { band: '6', color: '#ff66ff' }
+ ].map(b => (
+ {b.band}
+ ))}
+
{/* DATA SIDEBAR */}
@@ -760,7 +795,7 @@ const App = () => {
style={{
padding: '3px 8px',
display: 'grid',
- gridTemplateColumns: '70px 1fr 42px',
+ gridTemplateColumns: '80px 1fr 52px',
gap: '4px',
borderBottom: '1px solid rgba(255,255,255,0.05)',
cursor: 'pointer',
@@ -770,9 +805,9 @@ const App = () => {
onMouseEnter={() => setHoveredSpot(spot)}
onMouseLeave={() => setHoveredSpot(null)}
>
- {parseFloat(spot.freq).toFixed(1)}
+ {parseFloat(spot.freq).toFixed(1)}
{spot.call}
- {spot.time || '--'}
+ {spot.time || '--'}
))}
@@ -966,7 +1001,7 @@ const App = () => {
/>
{
}}>
{deGrid} → {dxGrid} • Click map to set DX
+ {/* Compact Band Legend */}
+
+ {[
+ { band: '160', color: '#ff6666' }, { band: '80', color: '#ff9966' },
+ { band: '40', color: '#ffcc66' }, { band: '30', color: '#99ff66' },
+ { band: '20', color: '#66ff99' }, { band: '17', color: '#66ffcc' },
+ { band: '15', color: '#66ccff' }, { band: '12', color: '#6699ff' },
+ { band: '10', color: '#9966ff' }, { band: '6', color: '#ff66ff' }
+ ].map(b => (
+ {b.band}
+ ))}
+
{/* Compact DX Cluster */}
@@ -1000,7 +1069,7 @@ const App = () => {
style={{
padding: '3px 8px',
display: 'grid',
- gridTemplateColumns: '65px 1fr 38px',
+ gridTemplateColumns: '75px 1fr 50px',
gap: '4px',
borderBottom: '1px solid rgba(255,255,255,0.05)',
cursor: 'pointer',
@@ -1010,9 +1079,9 @@ const App = () => {
onMouseEnter={() => setHoveredSpot(spot)}
onMouseLeave={() => setHoveredSpot(null)}
>
- {parseFloat(spot.freq).toFixed(1)}
+ {parseFloat(spot.freq).toFixed(1)}
{spot.call}
- {spot.time || '--'}
+ {spot.time || '--'}
))}