Mobile optimization: Compact header and navigation

- Responsive font sizes with clamp()
- Shorter navigation labels (Explorer, Upload, Console, Health, Pilot, Ready)
- Developer Mode -> Dev
- Flex wrap for mobile screens
- Smaller padding and gaps

Tested on pilot.landvex.com
This commit is contained in:
Bernt
2026-07-02 17:38:31 +00:00
parent 05ed037fe8
commit 430cb24ef0
+13 -12
View File
@@ -14,33 +14,34 @@ function App() {
return ( return (
<div style={{ fontFamily: 'system-ui, sans-serif', maxWidth: 1200, margin: '0 auto', padding: 20 }}> <div style={{ fontFamily: 'system-ui, sans-serif', maxWidth: 1200, margin: '0 auto', padding: 20 }}>
<header style={{ borderBottom: '2px solid #333', paddingBottom: 20, marginBottom: 20 }}> <header style={{ borderBottom: '2px solid #333', paddingBottom: 20, marginBottom: 20 }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap' }}>
<h1>LandveX {developerMode ? '(Developer Mode)' : ''}</h1> <h1 style={{ fontSize: 'clamp(1.2rem, 5vw, 2rem)', margin: 0 }}>LandveX {developerMode ? '(Dev)' : ''}</h1>
<button <button
onClick={() => setDeveloperMode(!developerMode)} onClick={() => setDeveloperMode(!developerMode)}
style={{ style={{
padding: '8px 16px', padding: '6px 12px',
background: developerMode ? '#ffd700' : '#f0f0f0', background: developerMode ? '#ffd700' : '#f0f0f0',
border: '1px solid #ccc', border: '1px solid #ccc',
borderRadius: 4, borderRadius: 4,
cursor: 'pointer', cursor: 'pointer',
fontSize: '0.8rem',
}} }}
> >
{developerMode ? '🔓 Developer' : '🔒 Normal'} {developerMode ? '🔓 Dev' : '🔒 Normal'}
</button> </button>
</div> </div>
<nav style={{ display: 'flex', gap: 20, marginTop: 10 }}> <nav style={{ display: 'flex', gap: 10, marginTop: 10, flexWrap: 'wrap', fontSize: '0.85rem' }}>
<Link to="/">Dataset Explorer</Link> <Link to="/">Explorer</Link>
<Link to="/upload">Mission Upload</Link> <Link to="/upload">Upload</Link>
<Link to="/console">Field Console</Link> <Link to="/console">Console</Link>
<Link to="/health">Health</Link> <Link to="/health">Health</Link>
<Link to="/pilot">Pilot 001</Link> <Link to="/pilot">Pilot</Link>
<Link to="/readiness">Readiness</Link> <Link to="/readiness">Ready</Link>
{developerMode && ( {developerMode && (
<> <>
<Link to="/datasets">Datasets</Link> <Link to="/datasets">Data</Link>
<Link to="/models">Models</Link> <Link to="/models">Models</Link>
<Link to="/training">Training</Link> <Link to="/training">Train</Link>
</> </>
)} )}
</nav> </nav>