style: make threat alert cards larger and more prominent

- Header: 10px → 14px with wider letter spacing
- Body text: 9px → 12px, max-width 160px → 260px
- Footer: 8px → 10px
- Card: min-width 120→200, border 1.5→2px, stronger glow
- Box width constant: 180→280 for collision avoidance
- Font: JetBrains Mono for consistency with terminal reskin
This commit is contained in:
anoracleofra-code
2026-03-26 20:58:50 -06:00
parent 5e40e8dd55
commit 5f4d52c288
2 changed files with 18 additions and 19 deletions
+17 -18
View File
@@ -375,19 +375,19 @@ export function ThreatMarkers({
style={{
opacity: isVisible ? 1.0 : 0.0,
pointerEvents: isVisible ? 'auto' : 'none',
backgroundColor: 'rgba(5, 5, 5, 0.95)',
border: `1.5px solid ${riskColor}`,
backgroundColor: 'rgba(5, 5, 5, 0.96)',
border: `2px solid ${riskColor}`,
borderRadius: '4px',
padding: '5px 16px 5px 8px',
padding: '8px 20px 8px 12px',
color: riskColor,
fontFamily: 'monospace',
fontSize: '9px',
fontFamily: "'JetBrains Mono', monospace",
fontSize: '12px',
fontWeight: 'bold',
textAlign: 'center',
boxShadow: `0 0 12px ${riskColor}60`,
boxShadow: `0 0 20px ${riskColor}80, 0 0 40px ${riskColor}30`,
zIndex: 10,
lineHeight: '1.2',
minWidth: '120px',
lineHeight: '1.3',
minWidth: '200px',
}}
>
{n.showLine && isVisible && (
@@ -419,13 +419,13 @@ export function ThreatMarkers({
}}
style={{
position: 'absolute',
top: '2px',
right: '4px',
top: '4px',
right: '6px',
background: 'transparent',
border: 'none',
cursor: 'pointer',
color: riskColor,
fontSize: '12px',
fontSize: '16px',
fontWeight: 'bold',
lineHeight: 1,
padding: '0 2px',
@@ -438,24 +438,23 @@ export function ThreatMarkers({
×
</button>
)}
<div style={{ fontSize: '10px', letterSpacing: '0.5px' }}>
<div style={{ fontSize: '14px', letterSpacing: '1.5px', textTransform: 'uppercase' as const }}>
!! ALERT LVL {score} !!
</div>
<div
style={{
color: '#fff',
fontSize: '9px',
marginTop: '2px',
maxWidth: '160px',
overflow: 'hidden',
textOverflow: 'ellipsis',
fontSize: '12px',
marginTop: '4px',
maxWidth: '260px',
lineHeight: '1.4',
}}
>
{n.title}
</div>
{count > 1 && (
<div
style={{ color: riskColor, opacity: 0.8, fontSize: '8px', marginTop: '2px' }}
style={{ color: riskColor, opacity: 0.9, fontSize: '10px', marginTop: '4px', letterSpacing: '0.5px' }}
>
[+{count - 1} ACTIVE THREATS IN AREA]
</div>
+1 -1
View File
@@ -17,5 +17,5 @@ export const NOMINATIM_DEBOUNCE_MS = 350;
export const INTERP_TICK_MS = 2000;
// ─── News/Alert Layout ──────────────────────────────────────────────────────
export const ALERT_BOX_WIDTH_PX = 180;
export const ALERT_BOX_WIDTH_PX = 280;
export const ALERT_MAX_OFFSET_PX = 350;