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.

4.8 KB
Raw Blame
<!DOCTYPE html>
<!--
  Snitch — HTML shell.

  EN: Single entry point for the Vite/React app. The #root div is where React
      mounts; everything else lives in src/.
  FR: Point d'entrée unique de l'app Vite/React. Le div #root est l'endroit où
      React se monte ; tout le reste vit dans src/.
-->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" type="image/png" href="favicon.png" />
    <link rel="apple-touch-icon" href="logo-180.png" />
    <title>Snitch — Track every hidden flow. / Traquez chaque flux masqué.</title>
    <style>
      /* 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 { color: var(--text); font-family: 'Inter', system-ui, sans-serif; overflow: hidden; }

      /* EN: Pill scrollbars to match the bento cards — fully rounded thumb
         floating on a transparent track, inset by a transparent border so
         it reads as a soft capsule, not a hard-edged bar.
         FR: Barres de défilement « pilule » assorties aux cartes bento —
         curseur entièrement arrondi flottant sur piste transparente, rentré
         par une bordure transparente pour un rendu capsule douce. */
      * { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
      ::-webkit-scrollbar { width: 10px; height: 10px; }
      ::-webkit-scrollbar-track { background: transparent; }
      ::-webkit-scrollbar-thumb {
        background: var(--scrollbar);
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: padding-box;
      }
      ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-h); border: 2px solid transparent; background-clip: padding-box; }
      ::-webkit-scrollbar-corner { background: transparent; }

      /* EN: Design tokens — every component paints through these vars so the
         whole app flips theme by changing data-theme alone. Dark values are
         the authored palette; light values are hand-picked equivalents.
         FR: Tokens de design — chaque composant peint via ces vars, donc
         l'app entière bascule de thème en changeant data-theme seul. Les
         valeurs sombres sont la palette d'origine ; les claires sont des
         équivalents choisis à la main. */
      html[data-theme="dark"], :root {
        --bg: #000000;          --surface: #0f0f0f;     --surface-2: #1c1c1c;
        --border: #2a2a2a;      --scrollbar: #333333;   --scrollbar-h: #4a4a4a;
        --text: #e2e8f0;        --text-2: #cbd5e1;      --text-dim: #a4b4c6;
        --text-muted: #8494a8;  --text-faint: #6c7d94;
        --blue-text: #93c5fd;   --red-text: #fca5a5;    --green-text: #86efac;
        --warn-text: #fbbf24;
        --danger-bg: #2d1b1b;   --danger-active: #3b1f2b;
        --success-active: #153824;
        --warn-bg: #2d1a00;     --info-bg: #0c2340;
        --map-border: #2d4a6e;  --dot-stroke: #0a1628;
        --aurora-a: #fb923c;    --aurora-b: #f472b6;    --aurora-c: #e879f9;
      }
      html[data-theme="light"] {
        --bg: #eef1f5;          --surface: #ffffff;     --surface-2: #eef1f4;
        --border: #d9dee5;      --scrollbar: #b9c4cf;   --scrollbar-h: #8fa0ae;
        --text: #1e293b;        --text-2: #334155;      --text-dim: #51617a;
        --text-muted: #5f6f83;  --text-faint: #7c8ea4;
        --blue-text: #1d4ed8;   --red-text: #dc2626;    --green-text: #15803d;
        --warn-text: #b45309;
        --danger-bg: #fef2f2;   --danger-active: #fecdd3;
        --success-active: #dcfce7;
        --warn-bg: #fef3c7;     --info-bg: #dbeafe;
        --map-border: #93b8d8;  --dot-stroke: #dce9f5;
        --aurora-a: #fdba74;    --aurora-b: #f9a8d4;    --aurora-c: #f0abfc;
        color-scheme: light;
      }
      html[data-theme="dark"] { color-scheme: dark; }
      body { background: var(--bg); }
    </style>
    <script>
      /* EN: Resolve theme before first paint — saved choice wins, else the
         OS preference decides (dark is our authored default). No FOUC.
         FR: Résoudre le thème avant le premier rendu — le choix sauvegardé
         l'emporte, sinon la préférence OS décide (le sombre est notre défaut).
         Pas de flash de couleur. */
      (function () {
        var t = null;
        try { t = localStorage.getItem('snitch_theme'); } catch (e) {}
        if (t !== 'light' && t !== 'dark') {
          t = (window.matchMedia && matchMedia('(prefers-color-scheme: light)').matches)
            ? 'light' : 'dark';
        }
        document.documentElement.dataset.theme = t;
      })();
    </script>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.jsx"></script>
  </body>
</html>