-
-
+
);
diff --git a/components/site-header.tsx b/components/site-header.tsx
index e6caf22..b1d3eb8 100644
--- a/components/site-header.tsx
+++ b/components/site-header.tsx
@@ -4,6 +4,7 @@ import { Logo } from "./Logo";
import { GitHubMark } from "./GitHubMark";
import { LocaleSwitcher } from "./locale-switcher";
import { ThemeToggle } from "./theme-toggle";
+import { MobileNav } from "./mobile-nav";
import type { Locale } from "@/lib/i18n";
import { getEventsDict } from "@/src/dict/events";
@@ -13,46 +14,63 @@ type Dict = {
};
const NAV_LINK =
- "rounded-md px-2.5 py-1.5 text-ink-600 transition-colors hover:bg-ink-100/70 hover:text-ink-950 dark:text-ink-400 dark:hover:bg-white/[0.05] dark:hover:text-ink-50";
+ "rounded-full px-3 py-1.5 text-ink-600 transition-colors hover:text-ink-950 dark:text-ink-400 dark:hover:text-white";
-export function SiteHeader({ locale, dict }: { locale: Locale; dict: Dict }) {
+/**
+ * Floating command bar: a hairline pill that sits over the page instead of
+ * a full-width bar, so the hero reads edge to edge underneath it.
+ */
+export function SiteHeader({
+ locale,
+ dict,
+ ctaLabel,
+}: {
+ locale: Locale;
+ dict: Dict;
+ ctaLabel: string;
+}) {
+ const links = [
+ { href: `/${locale}/events`, label: getEventsDict(locale).navShort },
+ { href: `/${locale}/blog`, label: dict.nav.blog },
+ { href: `/${locale}/search`, label: dict.nav.search },
+ ];
return (
-
-
-
+
+
+
-
+
-
-
- {dict.nav.home}
-
-
- {dict.nav.blog}
-
-
- {getEventsDict(locale).navShort}
-
-
- {dict.nav.search}
-
+
+ {links.map((l) => (
+
+ {l.label}
+
+ ))}
-
diff --git a/components/viewer/SigmaView.tsx b/components/viewer/SigmaView.tsx
index 3c95b33..e28d01b 100644
--- a/components/viewer/SigmaView.tsx
+++ b/components/viewer/SigmaView.tsx
@@ -27,14 +27,14 @@ export type SigmaStatus =
// Level badge / dot colours, most to least severe.
export const SIGMA_LEVEL_DOT: Record
= {
critical: "bg-red-600 dark:bg-red-500",
- high: "bg-orange-500 dark:bg-orange-400",
+ high: "bg-amber-500 dark:bg-amber-400",
medium: "bg-amber-400 dark:bg-amber-300",
low: "bg-sky-500 dark:bg-sky-400",
informational: "bg-ink-400",
};
const LEVEL_TEXT: Record = {
critical: "text-red-700 dark:text-red-400",
- high: "text-orange-700 dark:text-orange-300",
+ high: "text-amber-700 dark:text-amber-300",
medium: "text-amber-700 dark:text-amber-300",
low: "text-sky-700 dark:text-sky-300",
informational: "text-ink-500",
diff --git a/components/viewer/columns.tsx b/components/viewer/columns.tsx
index 2b8c7f0..bdb5742 100644
--- a/components/viewer/columns.tsx
+++ b/components/viewer/columns.tsx
@@ -113,7 +113,7 @@ export function useColumnLayout(order: string[]) {
const t = `#${EVENTS_TABLE_ID}`;
const rules: string[] = [
`${t}{--pin-bg:#fcfcfe;--pin-head:#f5f6fa}`,
- `.dark ${t}{--pin-bg:#0a0b14;--pin-head:#171a29}`,
+ `.dark ${t}{--pin-bg:#0a0a0a;--pin-head:#171a29}`,
];
for (const [col, w] of Object.entries(layout.widths)) {
if (!order.includes(col)) continue;
diff --git a/lib/fonts.ts b/lib/fonts.ts
index 5705dcf..0567b79 100644
--- a/lib/fonts.ts
+++ b/lib/fonts.ts
@@ -1,27 +1,28 @@
-import { IBM_Plex_Mono, IBM_Plex_Sans, IBM_Plex_Sans_Condensed } from "next/font/google";
+import { Instrument_Serif, Inter, JetBrains_Mono } from "next/font/google";
-// IBM Plex: technical, highly legible in dense tables, with the terse voice
-// of a lab report. Sans for the UI, Mono for event data, Condensed for
-// headings. Self-hosted by next/font at build time (no runtime requests).
-export const plexSans = IBM_Plex_Sans({
- variable: "--font-plex-sans",
+// "Flare" type system. Inter carries the UI and headings (set tight, with
+// its single-storey "a" and flat-top "1" alternates for a technical voice),
+// Instrument Serif italic is the editorial accent used once per hero, and
+// JetBrains Mono renders event data. Self-hosted by next/font at build time.
+export const inter = Inter({
+ variable: "--font-inter",
subsets: ["latin"],
- weight: ["400", "500", "600", "700"],
display: "swap",
});
-export const plexMono = IBM_Plex_Mono({
- variable: "--font-plex-mono",
+export const instrumentSerif = Instrument_Serif({
+ variable: "--font-instrument",
subsets: ["latin"],
- weight: ["400", "500", "600"],
+ weight: "400",
+ style: ["italic", "normal"],
display: "swap",
});
-export const plexCondensed = IBM_Plex_Sans_Condensed({
- variable: "--font-plex-condensed",
+export const jetbrainsMono = JetBrains_Mono({
+ variable: "--font-jetbrains",
subsets: ["latin"],
- weight: ["500", "600", "700"],
+ weight: ["400", "500", "600"],
display: "swap",
});
-export const fontVariables = `${plexSans.variable} ${plexMono.variable} ${plexCondensed.variable}`;
+export const fontVariables = `${inter.variable} ${instrumentSerif.variable} ${jetbrainsMono.variable}`;
diff --git a/lib/og-template.tsx b/lib/og-template.tsx
index 6deb2af..66b67de 100644
--- a/lib/og-template.tsx
+++ b/lib/og-template.tsx
@@ -9,56 +9,80 @@ import type { Locale } from "@/src/dict/locales";
export const ogSize = { width: 1200, height: 630 };
export const ogContentType = "image/png";
-// "Alternate Light Source" palette (see app/globals.css).
-const INK = "#0a0b14";
-const INK_TEXT = "#e8e9f2";
-const INK_MUTED = "#9ca1ba";
-const INK_FAINT = "#666c88";
-const UV = "#9772ff";
-const GLOW = "#bdf01e";
+// "Flare" palette (see app/globals.css).
+const BG = "#0a0a0a";
+const TEXT = "#ededed";
+const MUTED = "#a1a1a1";
+const FAINT = "#5c5c5c";
+const FLARE = "#7b4cff";
+const FLARE_SOFT = "#9772ff";
-// Plex fonts bundled in assets/fonts (OFL) — read from disk, never fetched,
-// so images render offline too (Docker / air-gapped builds).
+// Fonts bundled in assets/fonts (OFL) — read from disk, never fetched, so
+// images render offline too (Docker / air-gapped builds).
let fontsPromise: Promise[1]>["fonts"]> | null =
null;
function loadFonts() {
const read = (file: string) => readFile(join(process.cwd(), "assets/fonts", file));
fontsPromise ??= Promise.all([
- read("IBMPlexSans-Regular.woff"),
- read("IBMPlexSans-SemiBold.woff"),
- read("IBMPlexMono-Regular.woff"),
- read("IBMPlexMono-SemiBold.woff"),
- read("IBMPlexSansCondensed-Bold.woff"),
- ]).then(([sans, sansSemi, mono, monoSemi, condensed]) => [
- { name: "Plex Sans", data: sans, weight: 400 as const, style: "normal" as const },
- { name: "Plex Sans", data: sansSemi, weight: 600 as const, style: "normal" as const },
- { name: "Plex Mono", data: mono, weight: 400 as const, style: "normal" as const },
- { name: "Plex Mono", data: monoSemi, weight: 600 as const, style: "normal" as const },
- { name: "Plex Condensed", data: condensed, weight: 700 as const, style: "normal" as const },
+ read("Inter-Regular.woff"),
+ read("Inter-SemiBold.woff"),
+ read("Inter-Bold.woff"),
+ read("InstrumentSerif-Italic.woff"),
+ read("JetBrainsMono-Regular.woff"),
+ read("JetBrainsMono-Medium.woff"),
+ ]).then(([reg, semi, bold, serif, mono, monoMed]) => [
+ { name: "Inter", data: reg, weight: 400 as const, style: "normal" as const },
+ { name: "Inter", data: semi, weight: 600 as const, style: "normal" as const },
+ { name: "Inter", data: bold, weight: 700 as const, style: "normal" as const },
+ { name: "Instrument Serif", data: serif, weight: 400 as const, style: "italic" as const },
+ { name: "JetBrains Mono", data: mono, weight: 400 as const, style: "normal" as const },
+ { name: "JetBrains Mono", data: monoMed, weight: 500 as const, style: "normal" as const },
]);
return fontsPromise;
}
-// The brand mark (lens over an event histogram), transparent background.
-const MARK = `
-
-
-
-
-
-
-
-
-
- `;
-const MARK_SRC = `data:image/svg+xml;base64,${Buffer.from(MARK).toString("base64")}`;
+const svgSrc = (svg: string) => `data:image/svg+xml;base64,${Buffer.from(svg).toString("base64")}`;
-// A few plausible log lines; the last one "fluoresces" under the lamp.
-const ROWS = [
- { t: "03:51:52.591", id: "4624", text: "Successful logon · jim.tomato · Interactive", hit: false },
- { t: "03:52:07.113", id: "4672", text: "Special privileges assigned · admin", hit: false },
- { t: "03:52:31.842", id: "4104", text: "Script block · IEX (New-Object Net.WebClient).Download…", hit: true },
-];
+// Brand mark: event baseline with one spike, on an ultraviolet tile.
+const MARK_SRC = svgSrc(`
+
+
+ `);
+
+// Backdrop: 12 faint column rules, a flare glow on the spike, and the event
+// baseline with its ruler running across the bottom. Drawn as one SVG
+// because Satori's CSS gradients are limited.
+const cols = Array.from({ length: 11 }, (_, i) => {
+ const x = ((i + 1) * 1200) / 12;
+ return ` `;
+}).join("");
+const ticks = Array.from({ length: 151 }, (_, i) => {
+ const x = i * 8;
+ const major = i % 8 === 0;
+ return ` `;
+}).join("");
+const BACKDROP = svgSrc(`
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${cols}
+
+
+
+
+
+ ${ticks}
+ `);
function Frame({ children, footer }: { children: React.ReactNode; footer: React.ReactNode }) {
return (
@@ -69,101 +93,95 @@ function Frame({ children, footer }: { children: React.ReactNode; footer: React.
height: "100%",
display: "flex",
flexDirection: "column",
- justifyContent: "space-between",
- background: INK,
- backgroundImage:
- "radial-gradient(780px 520px at 92% -8%, rgba(123,76,255,0.42), transparent 62%), radial-gradient(600px 420px at -6% 112%, rgba(123,76,255,0.14), transparent 60%)",
- padding: "60px 68px 54px",
- color: INK_TEXT,
- fontFamily: "Plex Sans",
+ background: BG,
+ padding: "56px 72px 0",
+ color: TEXT,
+ fontFamily: "Inter",
}}
>
- {/* faint log-line rules — the case file under the lamp */}
-
+ {/* Rendered to PNG by Satori, not the browser: next/image doesn't apply. */}
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
{/* brand */}
- {/* Rendered to PNG by Satori, not the browser: next/image doesn't apply. */}
{/* eslint-disable-next-line @next/next/no-img-element */}
-
-
-
evtx
-
parser
+
+
+ EVTX
+ parser
-
- {children}
- {footer}
+
+ {children}
+
+
{footer}
);
}
-function EventStrip() {
+function Tags({ items }: { items: string[] }) {
return (
-
- {ROWS.map((r) => (
-
+ {items.map((t, i) => (
+
- {r.t}
- {r.id}
- {r.text}
-
+ {i === 0 ?
: null}
+ {t}
+
))}
);
}
-/** Site-wide card: name + tagline + the glowing event strip. */
+/** Site-wide card: the brand line in the serif, the promise in the sans. */
export async function renderOg(locale: Locale) {
const dict = getDict(locale);
+ const [brand, rest] = dict.home.headline.includes(" — ")
+ ? dict.home.headline.split(" — ", 2)
+ : [null, dict.home.headline];
return new ImageResponse(
(
-
}>
-
+
}>
+
+ {brand ? (
+
+ {brand}
+
+ ) : null}
48 ? 64 : 76,
+ lineHeight: 1.02,
+ letterSpacing: "-0.045em",
}}
>
- {dict.home.headline}
-
-
- {dict.meta.description}
+ {rest}
@@ -181,46 +199,24 @@ export async function renderPostOg(opts: {
}) {
const { title, description, locale, minutes } = opts;
const titleSize = title.length > 70 ? 54 : title.length > 45 ? 64 : 74;
+ const tags = ["DFIR guide", ...(minutes ? [`${minutes} min read`] : []), locale.toUpperCase()];
return new ImageResponse(
(
-
}>
+
-
-
- DFIR · Windows Event Logs
-
- {minutes ? {minutes} min read : null}
- {locale.toUpperCase()}
-
- }
- >
-
-
{title}
{description ? (
-
- {description.length > 170 ? `${description.slice(0, 167)}…` : description}
+
+ {description.length > 150 ? `${description.slice(0, 147)}…` : description}
) : null}
@@ -230,7 +226,7 @@ export async function renderPostOg(opts: {
);
}
-/** Event ID encyclopedia card: the ID large, channel, title and summary. */
+/** Event ID encyclopedia card: the ID large in the serif, then the title. */
export async function renderEventOg(opts: {
id: number;
channel: string;
@@ -239,61 +235,47 @@ export async function renderEventOg(opts: {
locale: Locale;
}) {
const { id, channel, title, summary, locale } = opts;
- const titleSize = title.length > 60 ? 50 : title.length > 40 ? 58 : 66;
+ const titleSize = title.length > 60 ? 46 : title.length > 40 ? 54 : 62;
return new ImageResponse(
(
-
}>
+
-
-
- Event ID encyclopedia
+ EventID
+ 4 ? 120 : 150,
+ lineHeight: 0.9,
+ color: FLARE_SOFT,
+ letterSpacing: "-0.02em",
+ }}
+ >
+ {id}
- {channel}
- {locale.toUpperCase()}
- }
- >
-
4 ? 112 : 150,
- letterSpacing: "-0.04em",
- color: GLOW,
- lineHeight: 1,
+ fontSize: titleSize,
+ lineHeight: 1.05,
+ letterSpacing: "-0.035em",
}}
>
- {id}
+ {title}
-
-
- {title}
-
-
- {summary.length > 150 ? `${summary.slice(0, 147)}…` : summary}
-
+
+ {summary.length > 130 ? `${summary.slice(0, 127)}…` : summary}
diff --git a/lib/schema.ts b/lib/schema.ts
index bfe19e4..7bf8e01 100644
--- a/lib/schema.ts
+++ b/lib/schema.ts
@@ -316,7 +316,7 @@ export function homeGraph(locale: Locale, dict: Dict) {
name: dict.meta.title,
description: dict.meta.description,
locale,
- speakableSelectors: [".faq dt", ".faq dd"],
+ speakableSelectors: [".faq .faq-q", ".faq .faq-a"],
}),
softwareApplicationNode(locale, dict, url),
faqPageNode(url, dict.faq.items),
diff --git a/public/grain.svg b/public/grain.svg
deleted file mode 100644
index ac6a8f4..0000000
--- a/public/grain.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/src/dict/de.ts b/src/dict/de.ts
index 9a659fa..3b97d75 100644
--- a/src/dict/de.ts
+++ b/src/dict/de.ts
@@ -13,10 +13,10 @@ export const de: Dict = {
intro:
"Ziehe ein Windows .evtx-Ereignisprotokoll hierher. Die Analyse läuft komplett im Browser über WebAssembly — es wird nichts hochgeladen.",
featuredHeading: "Ausgewählte Guides",
- dropArea: ".evtx hier ablegen oder klicken zum Auswählen",
+ dropArea: "Eine oder mehrere .evtx-Dateien hier ablegen",
privacyNote: "Die Dateien bleiben auf deinem Gerät. Reine Client-Analyse.",
heroTag: "Open Source · läuft zu 100 % im Browser",
- heroCtaOpen: ".evtx-Datei öffnen",
+ heroCtaOpen: ".evtx-Dateien öffnen",
heroCtaGithub: "Auf GitHub ansehen",
footerTagline: "Windows-Ereignisprotokoll-Forensik, komplett im Browser.",
statHunts: "integrierte Hunting-Regeln",
diff --git a/src/dict/en.ts b/src/dict/en.ts
index 0da8759..e854415 100644
--- a/src/dict/en.ts
+++ b/src/dict/en.ts
@@ -13,10 +13,10 @@ export const en: Dict = {
intro:
"Drop a Windows .evtx event log. Parsing runs entirely in your browser via WebAssembly — nothing is uploaded.",
featuredHeading: "Featured guides",
- dropArea: "Drop .evtx here or click to choose",
+ dropArea: "Drop one or more .evtx files here",
privacyNote: "Files stay on your device. Pure client-side parsing.",
heroTag: "Open source · runs 100% in your browser",
- heroCtaOpen: "Open a .evtx file",
+ heroCtaOpen: "Open .evtx files",
heroCtaGithub: "View on GitHub",
footerTagline: "Windows Event Log forensics, entirely in your browser.",
statHunts: "built-in hunt rules",
diff --git a/src/dict/es.ts b/src/dict/es.ts
index 3d941cc..649fff6 100644
--- a/src/dict/es.ts
+++ b/src/dict/es.ts
@@ -13,10 +13,10 @@ export const es: Dict = {
intro:
"Suelta un registro de eventos .evtx de Windows. El análisis se ejecuta en tu navegador mediante WebAssembly — no se sube nada.",
featuredHeading: "Guías destacadas",
- dropArea: "Suelta un .evtx aquí o haz clic para elegir",
+ dropArea: "Suelta aquí uno o varios archivos .evtx",
privacyNote: "Los archivos se quedan en tu dispositivo. Análisis 100 % en el cliente.",
heroTag: "Código abierto · 100 % en tu navegador",
- heroCtaOpen: "Abrir un archivo .evtx",
+ heroCtaOpen: "Abrir archivos .evtx",
heroCtaGithub: "Ver en GitHub",
footerTagline: "Análisis forense de registros de Windows, íntegramente en tu navegador.",
statHunts: "reglas de hunting integradas",
diff --git a/src/dict/fr.ts b/src/dict/fr.ts
index be85698..5b00bca 100644
--- a/src/dict/fr.ts
+++ b/src/dict/fr.ts
@@ -13,10 +13,10 @@ export const fr: Dict = {
intro:
"Déposez un journal d'événements Windows .evtx. L'analyse s'exécute entièrement dans votre navigateur via WebAssembly — rien n'est téléversé.",
featuredHeading: "Guides en vedette",
- dropArea: "Déposez un .evtx ici ou cliquez pour choisir",
+ dropArea: "Déposez un ou plusieurs fichiers .evtx ici",
privacyNote: "Les fichiers restent sur votre appareil. Analyse 100 % côté client.",
heroTag: "Open source · 100 % dans votre navigateur",
- heroCtaOpen: "Ouvrir un fichier .evtx",
+ heroCtaOpen: "Ouvrir des fichiers .evtx",
heroCtaGithub: "Voir sur GitHub",
footerTagline: "L'analyse forensique des journaux Windows, entièrement dans votre navigateur.",
statHunts: "règles de chasse intégrées",
diff --git a/src/dict/it.ts b/src/dict/it.ts
index 28857f9..3bd089d 100644
--- a/src/dict/it.ts
+++ b/src/dict/it.ts
@@ -13,10 +13,10 @@ export const it: Dict = {
intro:
"Trascina un log eventi .evtx di Windows. L'analisi viene eseguita interamente nel browser via WebAssembly — non viene caricato nulla.",
featuredHeading: "Guide in evidenza",
- dropArea: "Trascina un .evtx qui o clicca per sceglierne uno",
+ dropArea: "Trascina qui uno o più file .evtx",
privacyNote: "I file restano sul tuo dispositivo. Analisi 100 % lato client.",
heroTag: "Open source · 100% nel tuo browser",
- heroCtaOpen: "Apri un file .evtx",
+ heroCtaOpen: "Apri file .evtx",
heroCtaGithub: "Vedi su GitHub",
footerTagline: "Analisi forense dei log eventi di Windows, interamente nel browser.",
statHunts: "regole di hunting integrate",
diff --git a/src/dict/ja.ts b/src/dict/ja.ts
index 7c26088..b22fbb4 100644
--- a/src/dict/ja.ts
+++ b/src/dict/ja.ts
@@ -13,10 +13,10 @@ export const ja: Dict = {
intro:
"Windows の .evtx イベントログをドロップしてください。解析は WebAssembly でブラウザ内のみで実行され、アップロードは一切ありません。",
featuredHeading: "おすすめガイド",
- dropArea: "ここに .evtx をドロップ、またはクリックで選択",
+ dropArea: "1つ以上の .evtx ファイルをここにドロップ",
privacyNote: "ファイルは端末内にとどまります。完全クライアントサイド処理です。",
heroTag: "オープンソース · 100% ブラウザ内で動作",
- heroCtaOpen: ".evtx ファイルを開く",
+ heroCtaOpen: ".evtx ファイルを開く(複数可)",
heroCtaGithub: "GitHub で見る",
footerTagline: "Windows イベントログのフォレンジックを、すべてブラウザ内で。",
statHunts: "個の組み込みハントルール",
diff --git a/src/dict/pt.ts b/src/dict/pt.ts
index 8a05228..a602d1f 100644
--- a/src/dict/pt.ts
+++ b/src/dict/pt.ts
@@ -13,10 +13,10 @@ export const pt: Dict = {
intro:
"Solte um log de eventos .evtx do Windows. A análise roda inteiramente no navegador via WebAssembly — nada é enviado.",
featuredHeading: "Guias em destaque",
- dropArea: "Solte o .evtx aqui ou clique para escolher",
+ dropArea: "Solte um ou mais arquivos .evtx aqui",
privacyNote: "Os arquivos ficam no seu dispositivo. Análise 100 % no cliente.",
heroTag: "Código aberto · 100% no seu navegador",
- heroCtaOpen: "Abrir um arquivo .evtx",
+ heroCtaOpen: "Abrir arquivos .evtx",
heroCtaGithub: "Ver no GitHub",
footerTagline: "Forense de logs de eventos do Windows, inteiramente no seu navegador.",
statHunts: "regras de hunting integradas",
diff --git a/src/dict/zh.ts b/src/dict/zh.ts
index 1aa95ee..b383bae 100644
--- a/src/dict/zh.ts
+++ b/src/dict/zh.ts
@@ -13,10 +13,10 @@ export const zh: Dict = {
intro:
"将一个 Windows .evtx 事件日志拖入。解析全部在浏览器中通过 WebAssembly 完成 — 不会上传任何内容。",
featuredHeading: "精选指南",
- dropArea: "拖放 .evtx 到此处,或点击选择",
+ dropArea: "拖放一个或多个 .evtx 文件到此处",
privacyNote: "文件留在你的设备上,完全客户端解析。",
heroTag: "开源 · 100% 在浏览器中运行",
- heroCtaOpen: "打开 .evtx 文件",
+ heroCtaOpen: "打开 .evtx 文件(可多选)",
heroCtaGithub: "在 GitHub 上查看",
footerTagline: "Windows 事件日志取证,完全在浏览器中完成。",
statHunts: "条内置狩猎规则",