diff --git a/sample_interface/src/app/components/Header.tsx b/sample_interface/src/app/components/Header.tsx index 92601db7d..231c57b1b 100644 --- a/sample_interface/src/app/components/Header.tsx +++ b/sample_interface/src/app/components/Header.tsx @@ -35,80 +35,69 @@ export function Header() { }; return ( -
- {/* Logo (left) */} -
- TCK - RTU +
+ {/* Left side - all status items in one row */} +
+ {/* Date */} +
+ DATE: + {formatDate(currentTime)} +
+ + {/* Time */} +
+ TIME: + {formatTime(currentTime)} +
+ + {/* Station */} +
+ STATION: + {data.station.id} +
+ + {/* Comm */} +
+ {isOnline ? ( + <> + + {data.communication.percentage}% + + ) : ( + <> + + OFF + + )} +
+ + {/* Ver */} +
+ VER: + {data.station.version} +
+ + {/* Solar */} +
+ SOLAR: + {data.voltage.solar.toFixed(1)}V +
+ + {/* Battery */} +
+ BATTERY: + + {data.voltage.battery.toFixed(1)}V + + + {data.voltage.batteryStatus} + +
- {/* Right side - two rows */} -
- {/* Top row: LOGIN (rightmost) */} -
- -
- - {/* Bottom row: all other status items */} -
- {/* Time */} -
- Time: - {formatTime(currentTime)} -
- - {/* Date */} -
- Date: - {formatDate(currentTime)} -
- - {/* Station ID */} -
- Station: - {data.station.id} -
- - {/* Comm Status */} -
- {isOnline ? ( - <> - - - {data.communication.asu}ASU/{data.communication.dBm}dBm({data.communication.percentage}%) - - - ) : ( - <> - - OFFLINE - - )} -
- - {/* Version */} -
- Ver: - {data.station.version} -
- - {/* Solar Voltage */} -
- Solar: - {data.voltage.solar.toFixed(1)}V -
- - {/* Battery Voltage */} -
- Battery: - - {data.voltage.battery.toFixed(1)}V - - - {data.voltage.batteryStatus} - -
-
+ {/* Right side - LOGIN (two rows, rightmost) */} +
+
);