Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

ui: all app backgrounds to pure black

MoneyLisadedccc7fbe47
diff --git a/frontend/index.html b/frontend/index.html
index f109834..c309fa8 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -17,7 +17,7 @@
/* EN: Global reset + dark base theme.
FR: Reset global + thème sombre de base. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
- body { background: #0f172a; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; overflow: hidden; }
+ body { background: #000000; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; overflow: hidden; }
</style>
</head>
<body>
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index d81461d..f8db3e8 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -140,7 +140,7 @@ export default function App() {
/>
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}>
- <div style={{ flex: 1, position: 'relative', overflow: 'hidden', background: '#0f172a' }}>
+ <div style={{ flex: 1, position: 'relative', overflow: 'hidden', background: '#000000' }}>
{view === 'graph' && (
/* EN: Aurora backdrop behind the graph — orange/pink ribbons,
fine film grain (0.35), full intensity like the demo.
@@ -278,7 +278,7 @@ function ExportButton({ nodes, edges, lanDevices, alerts }) {
button={
<button style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 20, padding: '5px 14px',
cursor: 'pointer', color: '#64748b',
fontSize: 11, fontWeight: 600, transition: 'all 0.15s',
@@ -291,11 +291,11 @@ function ExportButton({ nodes, edges, lanDevices, alerts }) {
{(close) => items.map(({ label, action }) => (
<button key={label} onClick={() => { action(); close() }} style={{
display: 'block', width: '100%', textAlign: 'left',
- background: 'none', border: 'none', borderBottom: '1px solid #0f172a',
+ background: 'none', border: 'none', borderBottom: '1px solid #000000',
padding: '9px 14px', color: '#e2e8f0',
fontSize: 11, cursor: 'pointer',
}}
- onMouseEnter={e => e.target.style.background = '#334155'}
+ onMouseEnter={e => e.target.style.background = '#2a2a2a'}
onMouseLeave={e => e.target.style.background = 'none'}>
{label}
</button>
@@ -371,8 +371,8 @@ function ProcessFilter({ excluded, onChange, nodes }) {
button={
<button style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: active ? '#3b1f2b' : '#1e293b',
- border: `1px solid ${active ? '#f87171' : '#334155'}`,
+ background: active ? '#3b1f2b' : '#0f0f0f',
+ border: `1px solid ${active ? '#f87171' : '#2a2a2a'}`,
borderRadius: 20, padding: '5px 14px',
cursor: 'pointer', color: active ? '#fca5a5' : '#64748b',
fontSize: 11, fontWeight: 600, transition: 'all 0.15s',
@@ -422,7 +422,7 @@ function ProcessFilter({ excluded, onChange, nodes }) {
{active && (
<button onClick={() => onChange([])} style={{
marginTop: 8, width: '100%', background: 'none',
- border: '1px solid #334155', borderRadius: 6,
+ border: '1px solid #2a2a2a', borderRadius: 6,
padding: '4px 0', color: '#64748b', fontSize: 10,
cursor: 'pointer',
}}>
@@ -462,8 +462,8 @@ function PortFilter({ ports, onUpdate }) {
button={
<button style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: active ? '#1e3a5f' : '#1e293b',
- border: `1px solid ${active ? '#3b82f6' : '#334155'}`,
+ background: active ? '#1c1c1c' : '#0f0f0f',
+ border: `1px solid ${active ? '#3b82f6' : '#2a2a2a'}`,
borderRadius: 20, padding: '5px 14px',
cursor: 'pointer', color: active ? '#93c5fd' : '#64748b',
fontSize: 11, fontWeight: 600, transition: 'all 0.15s',
@@ -487,7 +487,7 @@ function PortFilter({ ports, onUpdate }) {
{ports.map(p => (
<span key={p} style={{
display: 'flex', alignItems: 'center', gap: 4,
- background: '#0f172a', border: '1px solid #3b82f6',
+ background: '#000000', border: '1px solid #3b82f6',
borderRadius: 12, padding: '2px 8px',
fontSize: 11, color: '#93c5fd',
}}>
@@ -507,8 +507,8 @@ function PortFilter({ ports, onUpdate }) {
onChange={e => { setInput(e.target.value); setError(false) }}
placeholder={t('port_placeholder')}
style={{
- flex: 1, background: '#0f172a',
- border: `1px solid ${error ? '#ef4444' : '#334155'}`,
+ flex: 1, background: '#000000',
+ border: `1px solid ${error ? '#ef4444' : '#2a2a2a'}`,
borderRadius: 6, padding: '5px 8px',
color: '#e2e8f0', fontSize: 11, outline: 'none',
}}
@@ -524,7 +524,7 @@ function PortFilter({ ports, onUpdate }) {
{active && (
<button onClick={() => onUpdate([])} style={{
marginTop: 10, width: '100%', background: 'none',
- border: '1px solid #334155', borderRadius: 6,
+ border: '1px solid #2a2a2a', borderRadius: 6,
padding: '4px 0', color: '#64748b', fontSize: 10,
cursor: 'pointer',
}}>
@@ -572,8 +572,8 @@ function IPWhitelist({ ips, onUpdate }) {
button={
<button style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: active ? '#153824' : '#1e293b',
- border: `1px solid ${active ? '#22c55e' : '#334155'}`,
+ background: active ? '#153824' : '#0f0f0f',
+ border: `1px solid ${active ? '#22c55e' : '#2a2a2a'}`,
borderRadius: 20, padding: '5px 14px',
cursor: 'pointer', color: active ? '#86efac' : '#64748b',
fontSize: 11, fontWeight: 600, transition: 'all 0.15s',
@@ -597,7 +597,7 @@ function IPWhitelist({ ips, onUpdate }) {
{ips.map(ip => (
<span key={ip} style={{
display: 'flex', alignItems: 'center', justifyContent: 'space-between',
- background: '#0f172a', border: '1px solid #22c55e',
+ background: '#000000', border: '1px solid #22c55e',
borderRadius: 6, padding: '3px 8px',
fontSize: 11, color: '#86efac', fontFamily: 'monospace',
}}>
@@ -617,8 +617,8 @@ function IPWhitelist({ ips, onUpdate }) {
onChange={e => { setInput(e.target.value); setError(false) }}
placeholder={t('ip_placeholder')}
style={{
- flex: 1, background: '#0f172a',
- border: `1px solid ${error ? '#ef4444' : '#334155'}`,
+ flex: 1, background: '#000000',
+ border: `1px solid ${error ? '#ef4444' : '#2a2a2a'}`,
borderRadius: 6, padding: '5px 8px',
color: '#e2e8f0', fontSize: 11, outline: 'none',
}}
@@ -634,7 +634,7 @@ function IPWhitelist({ ips, onUpdate }) {
{active && (
<button onClick={() => onUpdate([])} style={{
marginTop: 10, width: '100%', background: 'none',
- border: '1px solid #334155', borderRadius: 6,
+ border: '1px solid #2a2a2a', borderRadius: 6,
padding: '4px 0', color: '#64748b', fontSize: 10,
cursor: 'pointer',
}}>
@@ -665,8 +665,8 @@ function CaptureToggle({ capturing, onToggle }) {
return (
<button onClick={handleClick} disabled={loading} style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: capturing ? '#1e293b' : '#166534',
- border: `1px solid ${capturing ? '#334155' : '#16a34a'}`,
+ background: capturing ? '#0f0f0f' : '#166534',
+ border: `1px solid ${capturing ? '#2a2a2a' : '#16a34a'}`,
borderRadius: 20, padding: '5px 14px',
cursor: loading ? 'wait' : 'pointer',
color: capturing ? '#f87171' : '#4ade80',
@@ -686,8 +686,8 @@ function LangToggle() {
const { lang, setLang } = useT()
return (
<div style={{
- display: 'flex', background: '#1e293b',
- border: '1px solid #334155', borderRadius: 20, overflow: 'hidden',
+ display: 'flex', background: '#0f0f0f',
+ border: '1px solid #2a2a2a', borderRadius: 20, overflow: 'hidden',
}}>
{['en', 'fr'].map(l => (
<button key={l} onClick={() => setLang(l)} style={{
@@ -715,8 +715,8 @@ function ViewToggle({ view, onChange }) {
]
return (
<div style={{
- display: 'flex', background: '#1e293b',
- border: '1px solid #334155', borderRadius: 20, overflow: 'hidden',
+ display: 'flex', background: '#0f0f0f',
+ border: '1px solid #2a2a2a', borderRadius: 20, overflow: 'hidden',
}}>
{items.map(({ id, Icon, label }) => (
<button key={id} onClick={() => onChange(id)} style={{
@@ -747,14 +747,14 @@ function StatusBadge({ status, lanCount }) {
}
return (
<div style={{
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 20, padding: '5px 14px',
display: 'flex', alignItems: 'center', gap: 8,
}}>
<div style={{ width: 7, height: 7, borderRadius: '50%', background: colors[status] || '#94a3b8' }} />
<span style={{ fontSize: 11, color: '#e2e8f0' }}>{labels[status] || status}</span>
{lanCount > 0 && (
- <span style={{ fontSize: 11, color: '#f97316', borderLeft: '1px solid #334155', paddingLeft: 8 }}>
+ <span style={{ fontSize: 11, color: '#f97316', borderLeft: '1px solid #2a2a2a', paddingLeft: 8 }}>
{t('lan_devices', lanCount)}
</span>
)}
@@ -781,7 +781,7 @@ function Legend() {
return (
<div style={{
position: 'absolute', bottom: 16, right: 16,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 8, padding: '10px 14px',
}}>
{items.map(({ Icon, color, label }) => (
@@ -794,7 +794,7 @@ function Legend() {
newcomer "seen" from "actually exchanging data".
FR: Sémantique des arêtes — la distinction pointillés/plein dit au
néophyte « vu » versus « échange réel de données ». */}
- <div style={{ borderTop: '1px solid #334155', marginTop: 6, paddingTop: 6 }}>
+ <div style={{ borderTop: '1px solid #2a2a2a', marginTop: 6, paddingTop: 6 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4 }}>
<span style={{ width: 14, borderTop: '2px solid #64748b', flexShrink: 0 }} />
<span style={{ fontSize: 9, color: '#64748b' }}>{t('legend_edge_solid')}</span>
@@ -811,7 +811,7 @@ function Legend() {
le verdict de sûreté d'un coup d'œil : vert = connu et calme,
orange/rouge pulsant = à regarder. Correspond à
paintAlertRings dans ForceGraph. */}
- <div style={{ borderTop: '1px solid #334155', marginTop: 6, paddingTop: 6 }}>
+ <div style={{ borderTop: '1px solid #2a2a2a', marginTop: 6, paddingTop: 6 }}>
{[
{ color: '#22c55e', label: t('legend_ring_safe') },
{ color: '#f59e0b', label: t('legend_ring_warn') },
diff --git a/frontend/src/components/AlertPanel.jsx b/frontend/src/components/AlertPanel.jsx
index 9a20b1d..47b90ed 100644
--- a/frontend/src/components/AlertPanel.jsx
+++ b/frontend/src/components/AlertPanel.jsx
@@ -45,8 +45,8 @@ const TYPE_ICONS = {
export function AlertBell({ unread, onClick }) {
return (
<button onClick={onClick} style={{
- position: 'relative', background: '#1e293b',
- border: '1px solid #334155', borderRadius: 20,
+ position: 'relative', background: '#0f0f0f',
+ border: '1px solid #2a2a2a', borderRadius: 20,
padding: '5px 14px', cursor: 'pointer',
display: 'flex', alignItems: 'center', gap: 6,
color: unread > 0 ? '#f59e0b' : '#64748b',
@@ -95,14 +95,14 @@ export function AlertPanel({ alerts, onClose, onIgnore }) {
<div style={{
position: 'absolute', top: 56, right: 16, zIndex: 200,
width: 380, maxHeight: 'calc(100vh - 80px)',
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 12, overflow: 'hidden',
boxShadow: '0 8px 40px rgba(0,0,0,0.6)',
display: 'flex', flexDirection: 'column',
}}>
{/* EN: Header with severity counters / FR: En-tête avec compteurs de sévérité */}
<div style={{
- padding: '14px 18px', borderBottom: '1px solid #334155',
+ padding: '14px 18px', borderBottom: '1px solid #2a2a2a',
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
}}>
<div>
@@ -159,7 +159,7 @@ function AlertRow({ alert, onIgnore }) {
return (
<div style={{
- padding: '10px 18px', borderBottom: '1px solid #1e293b',
+ padding: '10px 18px', borderBottom: '1px solid #0f0f0f',
borderLeft: `3px solid ${sev.color}`, background: sev.bg,
}}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start', gap: 8 }}>
@@ -180,7 +180,7 @@ function AlertRow({ alert, onIgnore }) {
)}
{!alert._grouped && onIgnore && (
<button onClick={() => onIgnore(alert)} style={{
- marginTop: 5, background: 'none', border: '1px solid #334155',
+ marginTop: 5, background: 'none', border: '1px solid #2a2a2a',
borderRadius: 4, padding: '2px 8px', fontSize: 9,
color: '#64748b', cursor: 'pointer',
}}>
@@ -281,7 +281,7 @@ function Toast({ alert, index, dying }) {
return (
<div style={{
- background: '#1e293b', border: `1px solid ${sev.color}44`,
+ background: '#0f0f0f', border: `1px solid ${sev.color}44`,
borderLeft: `3px solid ${sev.color}`,
borderRadius: 6, padding: '5px 10px',
display: 'flex', alignItems: 'center', gap: 8,
diff --git a/frontend/src/components/AppsView.jsx b/frontend/src/components/AppsView.jsx
index 8dca9cb..744ebd1 100644
--- a/frontend/src/components/AppsView.jsx
+++ b/frontend/src/components/AppsView.jsx
@@ -79,14 +79,14 @@ export default function AppsView({ nodes }) {
<Fragment key={app.name}>
<tr
onClick={() => setExpanded(expanded === app.name ? null : app.name)}
- style={{ cursor: 'pointer', borderTop: '1px solid #1e293b' }}
+ style={{ cursor: 'pointer', borderTop: '1px solid #0f0f0f' }}
>
<td style={{ padding: '8px', color: '#e2e8f0', fontFamily: 'monospace' }}>{app.name}</td>
<td style={{ padding: '8px', textAlign: 'right', color: '#94a3b8' }}>{app.destinations.length}</td>
<td style={{ padding: '8px', textAlign: 'right', color: '#94a3b8' }}>{app.packets}</td>
<td style={{ padding: '8px' }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
- <div style={{ flex: 1, height: 6, background: '#0f172a', borderRadius: 3, overflow: 'hidden' }}>
+ <div style={{ flex: 1, height: 6, background: '#000000', borderRadius: 3, overflow: 'hidden' }}>
<div style={{ width: `${(app.bytes / maxBytes) * 100}%`, height: '100%', background: '#3b82f6' }} />
</div>
<span style={{ color: '#94a3b8', minWidth: 60, textAlign: 'right' }}>{fmtBytes(app.bytes)}</span>
@@ -95,7 +95,7 @@ export default function AppsView({ nodes }) {
</tr>
{expanded === app.name && (
<tr>
- <td colSpan={4} style={{ padding: '8px 8px 16px 24px', background: '#0f172a' }}>
+ <td colSpan={4} style={{ padding: '8px 8px 16px 24px', background: '#000000' }}>
<div style={{ fontSize: 10, color: '#64748b', marginBottom: 6 }}>{t('apps_top_dest')}</div>
{app.destinations.slice(0, 5).map(d => (
<div key={d.ip} style={{ display: 'flex', justifyContent: 'space-between', fontSize: 11, color: '#94a3b8', padding: '2px 0' }}>
diff --git a/frontend/src/components/BandwidthChart.jsx b/frontend/src/components/BandwidthChart.jsx
index 191499b..4aef13e 100644
--- a/frontend/src/components/BandwidthChart.jsx
+++ b/frontend/src/components/BandwidthChart.jsx
@@ -57,7 +57,7 @@ export default function BandwidthChart({ data }) {
svg.append('text')
.attr('x', W - 2).attr('y', 11)
.attr('text-anchor', 'end')
- .attr('fill', current > 0 ? '#3b82f6' : '#334155')
+ .attr('fill', current > 0 ? '#3b82f6' : '#2a2a2a')
.attr('font-size', 9).attr('font-weight', 700)
.text(fmtBps(current))
}, [data])
diff --git a/frontend/src/components/Dropdown.jsx b/frontend/src/components/Dropdown.jsx
index 4c4589b..f46cad2 100644
--- a/frontend/src/components/Dropdown.jsx
+++ b/frontend/src/components/Dropdown.jsx
@@ -56,7 +56,7 @@ export default function Dropdown({ button, children, panelStyle }) {
{open && (
<div style={{
position: 'absolute', top: '110%', right: 0, zIndex: 100,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 10, minWidth: 180,
boxShadow: '0 8px 24px rgba(0,0,0,0.4)',
...panelStyle,
diff --git a/frontend/src/components/Onboarding.jsx b/frontend/src/components/Onboarding.jsx
index 85e9065..bcae66b 100644
--- a/frontend/src/components/Onboarding.jsx
+++ b/frontend/src/components/Onboarding.jsx
@@ -33,7 +33,7 @@ export default function Onboarding({ onDone }) {
display: 'flex', alignItems: 'center', justifyContent: 'center',
}}>
<div style={{
- width: 440, background: '#1e293b', border: '1px solid #334155',
+ width: 440, background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 14, padding: '28px 28px 20px',
boxShadow: '0 20px 60px rgba(0,0,0,0.7)',
}}>
diff --git a/frontend/src/components/PrivacyScore.jsx b/frontend/src/components/PrivacyScore.jsx
index 3653062..63d1902 100644
--- a/frontend/src/components/PrivacyScore.jsx
+++ b/frontend/src/components/PrivacyScore.jsx
@@ -41,7 +41,7 @@ export default function PrivacyScore({ score, grade, color, labelKey, factors })
const badCount = factors.filter(f => f.bad).length
return (
- <div style={{ padding: '14px 20px', borderBottom: '1px solid #334155' }}>
+ <div style={{ padding: '14px 20px', borderBottom: '1px solid #2a2a2a' }}>
<div style={{ fontSize: 10, color: '#64748b', textTransform: 'uppercase', letterSpacing: 1, marginBottom: 10 }}>
{t('privacy_title')}
</div>
@@ -51,7 +51,7 @@ export default function PrivacyScore({ score, grade, color, labelKey, factors })
FR: Donut — longueur d'arc proportionnelle au score. */}
<div style={{ flexShrink: 0 }}>
<svg width={84} height={84}>
- <circle cx={42} cy={42} r={R} fill="none" stroke="#1e3a5f" strokeWidth={STROKE} />
+ <circle cx={42} cy={42} r={R} fill="none" stroke="#1c1c1c" strokeWidth={STROKE} />
<circle
cx={42} cy={42} r={R}
fill="none" stroke={color} strokeWidth={STROKE}
@@ -115,7 +115,7 @@ export default function PrivacyScore({ score, grade, color, labelKey, factors })
position: 'absolute', left: `${score}%`, top: '50%',
transform: 'translate(-50%, -50%)',
width: 10, height: 10, borderRadius: '50%',
- background: color, border: '2px solid #0f172a',
+ background: color, border: '2px solid #000000',
boxShadow: `0 0 6px ${color}`,
transition: 'left 0.6s ease',
}} />
diff --git a/frontend/src/components/SearchBar.jsx b/frontend/src/components/SearchBar.jsx
index 6e61421..c7aa42c 100644
--- a/frontend/src/components/SearchBar.jsx
+++ b/frontend/src/components/SearchBar.jsx
@@ -34,7 +34,7 @@ export default function SearchBar({ filter, onChange }) {
}))
return (
- <div style={{ padding: '8px 12px', borderBottom: '1px solid #334155' }}>
+ <div style={{ padding: '8px 12px', borderBottom: '1px solid #2a2a2a' }}>
{/* EN: Text field / FR: Champ texte */}
<div style={{ position: 'relative', marginBottom: 7 }}>
<Search size={11} style={{
@@ -47,7 +47,7 @@ export default function SearchBar({ filter, onChange }) {
placeholder={t('search_placeholder')}
style={{
width: '100%', boxSizing: 'border-box',
- background: '#0f172a', border: '1px solid #334155',
+ background: '#000000', border: '1px solid #2a2a2a',
borderRadius: 6, padding: '5px 26px 5px 26px',
color: '#e2e8f0', fontSize: 11, outline: 'none',
}}
@@ -67,7 +67,7 @@ export default function SearchBar({ filter, onChange }) {
{categories.map(c => (
<button key={c.id} onClick={() => onChange({ ...filter, category: c.id })} style={{
background: category === c.id ? c.color + '22' : 'transparent',
- border: `1px solid ${category === c.id ? c.color : '#334155'}`,
+ border: `1px solid ${category === c.id ? c.color : '#2a2a2a'}`,
borderRadius: 10, padding: '2px 8px',
fontSize: 9, fontWeight: 600,
color: category === c.id ? c.color : '#64748b',
diff --git a/frontend/src/components/Settings.jsx b/frontend/src/components/Settings.jsx
index 051d12f..126b288 100644
--- a/frontend/src/components/Settings.jsx
+++ b/frontend/src/components/Settings.jsx
@@ -21,7 +21,7 @@ export function SettingsButton({ onClick }) {
return (
<button onClick={onClick} aria-label="Settings / Réglages" style={{
display: 'flex', alignItems: 'center', gap: 6,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 20, padding: '5px 14px',
cursor: 'pointer', color: '#64748b',
fontSize: 11, fontWeight: 600,
@@ -102,7 +102,7 @@ export function SettingsPanel({ onClose, lang, setLang }) {
URL.revokeObjectURL(a.href)
}
- const row = { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px 0', borderBottom: '1px solid #0f172a' }
+ const row = { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px 0', borderBottom: '1px solid #000000' }
const label = { fontSize: 12, color: '#e2e8f0', fontWeight: 600 }
const hint = { fontSize: 10, color: '#64748b', marginTop: 2 }
@@ -110,15 +110,15 @@ export function SettingsPanel({ onClose, lang, setLang }) {
<div role="dialog" aria-label="Settings / Réglages" style={{
position: 'absolute', top: 56, right: 16, zIndex: 200,
width: 380, maxHeight: 'calc(100vh - 80px)',
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 12, overflow: 'hidden auto',
boxShadow: '0 8px 40px rgba(0,0,0,0.6)',
display: 'flex', flexDirection: 'column',
}}>
<div style={{
- padding: '14px 18px', borderBottom: '1px solid #334155',
+ padding: '14px 18px', borderBottom: '1px solid #2a2a2a',
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
- position: 'sticky', top: 0, background: '#1e293b', zIndex: 1,
+ position: 'sticky', top: 0, background: '#0f0f0f', zIndex: 1,
}}>
<span style={{ fontWeight: 700, fontSize: 13, color: '#f1f5f9' }}>{t('settings_title')}</span>
<div style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
@@ -136,8 +136,8 @@ export function SettingsPanel({ onClose, lang, setLang }) {
<div style={{ display: 'flex', gap: 4 }}>
{['en', 'fr'].map(l => (
<button key={l} onClick={() => { setLang(l); save('language', l) }} style={{
- background: lang === l ? '#3b82f6' : '#0f172a',
- border: '1px solid #334155', borderRadius: 6,
+ background: lang === l ? '#3b82f6' : '#000000',
+ border: '1px solid #2a2a2a', borderRadius: 6,
color: lang === l ? '#fff' : '#64748b',
padding: '4px 12px', fontSize: 11, cursor: 'pointer',
textTransform: 'uppercase', fontWeight: 600,
@@ -155,7 +155,7 @@ export function SettingsPanel({ onClose, lang, setLang }) {
<select
value={retention}
onChange={e => { const v = +e.target.value; setRetention(v); save('retention_hours', v) }}
- style={{ background: '#0f172a', border: '1px solid #334155', borderRadius: 6, color: '#e2e8f0', padding: '4px 8px', fontSize: 11 }}
+ style={{ background: '#000000', border: '1px solid #2a2a2a', borderRadius: 6, color: '#e2e8f0', padding: '4px 8px', fontSize: 11 }}
>
{[6, 12, 24, 48, 72, 168].map(h => <option key={h} value={h}>{h}h</option>)}
</select>
@@ -172,8 +172,8 @@ export function SettingsPanel({ onClose, lang, setLang }) {
role="switch" aria-checked={autoLaunch}
style={{
width: 36, height: 20, borderRadius: 10, border: 'none',
- background: autoLaunch ? '#3b82f6' : '#0f172a',
- outline: '1px solid #334155', cursor: 'pointer',
+ background: autoLaunch ? '#3b82f6' : '#000000',
+ outline: '1px solid #2a2a2a', cursor: 'pointer',
position: 'relative', flexShrink: 0,
}}>
<div style={{
@@ -195,7 +195,7 @@ export function SettingsPanel({ onClose, lang, setLang }) {
</div>
<button onClick={downloadGeo} style={{
marginTop: 8, display: 'flex', alignItems: 'center', gap: 6,
- background: '#0f172a', border: '1px solid #3b82f6', borderRadius: 6,
+ background: '#000000', border: '1px solid #3b82f6', borderRadius: 6,
color: '#93c5fd', padding: '6px 12px', fontSize: 11, cursor: 'pointer',
}}>
<Download size={11} /> {t('geo_download_btn')}
@@ -213,7 +213,7 @@ export function SettingsPanel({ onClose, lang, setLang }) {
<div style={{ display: 'flex', gap: 6 }}>
{window.snitch?.openLogs && (
<button onClick={openLogs} aria-label={t('diag_open_logs')} style={{
- background: '#0f172a', border: '1px solid #334155', borderRadius: 6,
+ background: '#000000', border: '1px solid #2a2a2a', borderRadius: 6,
color: '#94a3b8', padding: '5px 10px', fontSize: 11, cursor: 'pointer',
display: 'flex', alignItems: 'center', gap: 4,
}}>
@@ -221,7 +221,7 @@ export function SettingsPanel({ onClose, lang, setLang }) {
</button>
)}
<button onClick={exportDiagnostics} style={{
- background: '#0f172a', border: '1px solid #334155', borderRadius: 6,
+ background: '#000000', border: '1px solid #2a2a2a', borderRadius: 6,
color: '#94a3b8', padding: '5px 10px', fontSize: 11, cursor: 'pointer',
}}>
{t('diag_export')}
diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx
index 636beb3..275eae0 100644
--- a/frontend/src/components/Sidebar.jsx
+++ b/frontend/src/components/Sidebar.jsx
@@ -89,12 +89,12 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
return (
<div style={{
- width: 300, height: '100vh', background: '#1e293b',
- borderRight: '1px solid #334155', display: 'flex',
+ width: 300, height: '100vh', background: '#0f0f0f',
+ borderRight: '1px solid #2a2a2a', display: 'flex',
flexDirection: 'column', overflow: 'hidden',
}}>
{/* EN: Brand + live bandwidth / FR: Marque + débit en direct */}
- <div style={{ padding: '14px 20px 8px', borderBottom: '1px solid #334155' }}>
+ <div style={{ padding: '14px 20px 8px', borderBottom: '1px solid #2a2a2a' }}>
<div style={{ marginBottom: 6 }}>
<div style={{ display: 'flex', alignItems: 'baseline', gap: 7, marginBottom: 2 }}>
<span style={{ fontSize: 9, fontFamily: 'monospace', color: '#f7b016', letterSpacing: 3, fontWeight: 600 }}>NET</span>
@@ -106,7 +106,7 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
</div>
{/* EN: Quick counters / FR: Compteurs rapides */}
- <div style={{ padding: '10px 20px', borderBottom: '1px solid #334155' }}>
+ <div style={{ padding: '10px 20px', borderBottom: '1px solid #2a2a2a' }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<Stat label={t('stat_lan')} value={devList.length} color="#f97316" />
<Stat label={t('stat_ext')} value={extNodes.length} />
@@ -126,7 +126,7 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
{/* EN: Detail card for the clicked node. / FR: Fiche détail du nœud cliqué. */}
{selected && (
- <div style={{ padding: '12px 20px', borderBottom: '1px solid #334155', background: '#0f172a' }}>
+ <div style={{ padding: '12px 20px', borderBottom: '1px solid #2a2a2a', background: '#000000' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 6 }}>
<span style={{ fontSize: 12, fontWeight: 600, color: '#f1f5f9' }}>
{nodeName(selected, t)}
@@ -159,7 +159,7 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
</div>
{/* EN: Recent packet feed / FR: Flux de paquets récents */}
- <div style={{ borderTop: '1px solid #334155', maxHeight: 160, overflowY: 'auto' }}>
+ <div style={{ borderTop: '1px solid #2a2a2a', maxHeight: 160, overflowY: 'auto' }}>
<SectionTitle label={t('section_packets')} />
{packets.slice(0, 25).map((p, i) => <PacketRow key={i} packet={p} />)}
</div>
@@ -170,7 +170,7 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
/** EN: Sticky list section header. / FR: En-tête de section de liste collant. */
function SectionTitle({ label }) {
return (
- <div style={{ padding: '5px 20px', fontSize: 10, color: '#64748b', textTransform: 'uppercase', letterSpacing: 1, background: '#1e293b', position: 'sticky', top: 0 }}>
+ <div style={{ padding: '5px 20px', fontSize: 10, color: '#64748b', textTransform: 'uppercase', letterSpacing: 1, background: '#0f0f0f', position: 'sticky', top: 0 }}>
{label}
</div>
)
@@ -188,11 +188,11 @@ function Stat({ label, value, color }) {
/** EN: Small explanatory note in the detail card — muted box, coloured
* left border. / FR: Petite note explicative dans la fiche détail —
* cadre discret, bordure gauche colorée. */
-function Hint({ children, accent = '#334155' }) {
+function Hint({ children, accent = '#2a2a2a' }) {
return (
<div style={{
marginTop: 8, padding: '6px 8px', fontSize: 9, lineHeight: 1.5,
- color: '#64748b', background: '#1e293b', borderRadius: 6,
+ color: '#64748b', background: '#0f0f0f', borderRadius: 6,
borderLeft: `2px solid ${accent}`,
}}>
{children}
@@ -207,7 +207,7 @@ function DeviceRow({ device }) {
return (
<div style={{
padding: '7px 20px', display: 'flex', alignItems: 'center', gap: 8,
- borderBottom: '1px solid #1e293b',
+ borderBottom: '1px solid #0f0f0f',
opacity: device.online === false ? 0.45 : 1,
}}>
<Icon size={16} color={device.color} />
@@ -237,7 +237,7 @@ function DeviceRow({ device }) {
function NodeRow({ node }) {
const { t } = useT()
return (
- <div style={{ padding: '6px 20px', display: 'flex', alignItems: 'center', gap: 8, borderBottom: '1px solid #1e293b' }}>
+ <div style={{ padding: '6px 20px', display: 'flex', alignItems: 'center', gap: 8, borderBottom: '1px solid #0f0f0f' }}>
<div style={{ width: 7, height: 7, borderRadius: '50%', background: CATEGORY_COLORS[node.category] || '#94a3b8', flexShrink: 0 }} />
<div style={{ flex: 1, minWidth: 0 }}>
<div style={{ fontSize: 11, color: '#e2e8f0', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
diff --git a/frontend/src/components/Timeline.jsx b/frontend/src/components/Timeline.jsx
index c06c3c3..6bcc683 100644
--- a/frontend/src/components/Timeline.jsx
+++ b/frontend/src/components/Timeline.jsx
@@ -86,7 +86,7 @@ export default function Timeline() {
// EN: Horizontal grid lines. / FR: Lignes de grille horizontales.
g.append('g').attr('class', 'grid')
.call(d3.axisLeft(y).ticks(3).tickSize(-innerW).tickFormat(''))
- .selectAll('line').attr('stroke', '#1e3a5f').attr('stroke-dasharray', '3,3')
+ .selectAll('line').attr('stroke', '#1c1c1c').attr('stroke-dasharray', '3,3')
g.select('.grid .domain').remove()
// EN: Bars — amber when the minute produced alerts, blue otherwise.
@@ -130,12 +130,12 @@ export default function Timeline() {
.call(xAxis)
.selectAll('text')
.attr('fill', '#475569').attr('font-size', 9)
- g.selectAll('.domain, .tick line').attr('stroke', '#334155')
+ g.selectAll('.domain, .tick line').attr('stroke', '#2a2a2a')
g.append('g')
.call(d3.axisLeft(y).ticks(3).tickFormat(d => d > 999 ? `${(d / 1000).toFixed(0)}k` : d))
.selectAll('text').attr('fill', '#475569').attr('font-size', 9)
- g.select('.domain').attr('stroke', '#334155')
+ g.select('.domain').attr('stroke', '#2a2a2a')
}
const totalPkts = data.reduce((a, d) => a + d.packets, 0)
@@ -145,8 +145,8 @@ export default function Timeline() {
return (
<div style={{
height: expanded ? EXPANDED_H : COLLAPSED_H,
- background: '#0f172a',
- borderTop: '1px solid #1e3a5f',
+ background: '#000000',
+ borderTop: '1px solid #1c1c1c',
transition: 'height 0.2s ease',
overflow: 'hidden',
flexShrink: 0,
@@ -159,7 +159,7 @@ export default function Timeline() {
style={{
height: COLLAPSED_H, display: 'flex', alignItems: 'center',
padding: '0 16px', gap: 20, cursor: 'pointer',
- borderBottom: expanded ? '1px solid #1e3a5f' : 'none',
+ borderBottom: expanded ? '1px solid #1c1c1c' : 'none',
}}
>
<span style={{ fontSize: 10, fontWeight: 700, color: '#64748b', textTransform: 'uppercase', letterSpacing: 1 }}>
@@ -179,8 +179,8 @@ export default function Timeline() {
key={m}
onClick={e => { e.stopPropagation(); setRange(m) }}
style={{
- background: range === m ? '#1e3a5f' : 'transparent',
- border: '1px solid #1e3a5f', borderRadius: 4,
+ background: range === m ? '#1c1c1c' : 'transparent',
+ border: '1px solid #1c1c1c', borderRadius: 4,
color: range === m ? '#93c5fd' : '#475569',
fontSize: 9, padding: '2px 7px', cursor: 'pointer',
}}
@@ -209,7 +209,7 @@ export default function Timeline() {
{tooltip && (
<div style={{
position: 'fixed', left: tooltip.x + 12, top: tooltip.y - 60,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 6, padding: '6px 10px', fontSize: 10,
color: '#e2e8f0', pointerEvents: 'none', zIndex: 500,
}}>
diff --git a/frontend/src/graph/ForceGraph.jsx b/frontend/src/graph/ForceGraph.jsx
index e61343c..fe9cae7 100644
--- a/frontend/src/graph/ForceGraph.jsx
+++ b/frontend/src/graph/ForceGraph.jsx
@@ -214,7 +214,7 @@ export default function ForceGraph({ nodes, edges, lanDevices, alertedNodes = ne
.attr('r', radius)
.attr('fill', d => d.color || '#475569')
.attr('fill-opacity', d => d.online === false ? 0.35 : 0.85)
- .attr('stroke', d => d.online === false ? '#475569' : '#1e293b')
+ .attr('stroke', d => d.online === false ? '#475569' : '#0f0f0f')
.attr('stroke-width', d => d.category === 'lan_device' ? 2.5 : 1.5)
.attr('stroke-dasharray', d => d.online === false ? '4,3' : null)
diff --git a/frontend/src/map/MapView.jsx b/frontend/src/map/MapView.jsx
index 18e3ac2..c2c8657 100644
--- a/frontend/src/map/MapView.jsx
+++ b/frontend/src/map/MapView.jsx
@@ -229,7 +229,7 @@ export default function MapView({ nodes, onNodeClick }) {
.datum(d3.geoGraticule()())
.attr('d', geoPath)
.attr('fill', 'none')
- .attr('stroke', '#1e3a5f')
+ .attr('stroke', '#1c1c1c')
.attr('stroke-width', 0.3)
const countries = topojson.feature(topo, topo.objects.countries)
@@ -238,7 +238,7 @@ export default function MapView({ nodes, onNodeClick }) {
.data(countries.features)
.join('path')
.attr('d', geoPath)
- .attr('fill', '#1e293b')
+ .attr('fill', '#0f0f0f')
.attr('stroke', '#2d4a6e')
.attr('stroke-width', 0.5)
@@ -247,7 +247,7 @@ export default function MapView({ nodes, onNodeClick }) {
.datum(topojson.mesh(topo, topo.objects.countries, (a, b) => a !== b))
.attr('d', geoPath)
.attr('fill', 'none')
- .attr('stroke', '#334155')
+ .attr('stroke', '#2a2a2a')
.attr('stroke-width', 0.3)
// EN: Layer order matters: arcs below dots.
@@ -403,7 +403,7 @@ export default function MapView({ nodes, onNodeClick }) {
{/* EN: Geolocated-host counter badge / FR: Badge compteur d'hôtes géolocalisés */}
<div style={{
position: 'absolute', top: 16, left: 16,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 8, padding: '8px 14px', fontSize: 10, color: '#64748b',
}}>
<span style={{ color: '#22c55e', fontWeight: 700 }}>{t('map_located', geoCount)}</span>
@@ -414,7 +414,7 @@ export default function MapView({ nodes, onNodeClick }) {
{tooltip && (
<div style={{
position: 'fixed', left: tooltip.x + 14, top: tooltip.y - 10, zIndex: 100,
- background: '#1e293b', border: '1px solid #334155',
+ background: '#0f0f0f', border: '1px solid #2a2a2a',
borderRadius: 8, padding: '8px 12px', pointerEvents: 'none',
boxShadow: '0 4px 20px rgba(0,0,0,0.5)',
}}>