Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const Header = ({
const touch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
const narrow = typeof window !== 'undefined' && window.innerWidth <= 1024;
if (touch && narrow) return <span className="ohc-mobile-badge">{window.innerWidth <= 768 ? '📱' : '📱 Tablet'}</span>;
if (touch) return <span className="ohc-mobile-badge">👆 Touch</span>;
return null;
})()}
<QRZToggle />
Expand All @@ -68,8 +67,8 @@ export const Header = ({
<span style={{ fontSize: '13px', color: 'var(--accent-cyan)', fontWeight: '600' }}>UTC</span>
<span style={{
fontSize: config.headerSize > 0.1 && config.headerSize <= 2
? `${24 * config.headerSize}px`
: "24px",
? `${24 * config.headerSize}px`
: "24px",
fontWeight: '700',
color: 'var(--accent-cyan)',
fontFamily: 'JetBrains Mono, Consolas, monospace',
Expand All @@ -87,8 +86,8 @@ export const Header = ({
<span style={{ fontSize: '13px', color: 'var(--accent-amber)', fontWeight: '600' }}>LOCAL</span>
<span style={{
fontSize: config.headerSize > 0.1 && config.headerSize <= 2
? `${24 * config.headerSize}px`
: "24px",
? `${24 * config.headerSize}px`
: "24px",
fontWeight: '700',
color: 'var(--accent-amber)',
fontFamily: 'JetBrains Mono, Consolas, monospace',
Expand All @@ -108,18 +107,20 @@ export const Header = ({
const windLabel = localWeather.data.windUnit || 'mph';
return (
<div title={`${localWeather.data.description} • Wind: ${localWeather.data.windSpeed} ${windLabel}`}>
<span style={{ marginRight: '3px',
<span style={{
marginRight: '3px',
fontSize: config.headerSize > 0.1 && config.headerSize <= 2
? `${12 * config.headerSize}px`
: "12px",
}}>
}}>
{localWeather.data.icon}
</span>
<span style={{ color: 'var(--accent-cyan)', fontWeight: '600',
<span style={{
color: 'var(--accent-cyan)', fontWeight: '600',
fontSize: config.headerSize > 0.1 && config.headerSize <= 2
? `${12 * config.headerSize}px`
: "12px",
}}>
}}>
{tempF}°F/{tempC}°C
</span>
</div>
Expand Down Expand Up @@ -149,11 +150,11 @@ export const Header = ({
)}
{bandConditions?.extras?.geomagField && (
<div>
<span style={{
<span style={{
fontSize: '10px',
color: bandConditions.extras.geomagField === 'QUIET' ? 'var(--accent-green)' :
bandConditions.extras.geomagField === 'ACTIVE' || bandConditions.extras.geomagField.includes('STORM') ? 'var(--accent-red)' :
'var(--accent-amber)',
color: bandConditions.extras.geomagField === 'QUIET' ? 'var(--accent-green)' :
bandConditions.extras.geomagField === 'ACTIVE' || bandConditions.extras.geomagField.includes('STORM') ? 'var(--accent-red)' :
'var(--accent-amber)',
fontWeight: '600'
}}>
{bandConditions.extras.geomagField}
Expand Down