Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion app/[lang]/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default async function BlogPostPage({
</span>
)}
<span>
{post.readingTime} {dict.blog.readingTime}
{dict.blog.readingTime.replace("{n}", String(post.readingTime))}
</span>
</div>
{tags.length > 0 && (
Expand Down
10 changes: 7 additions & 3 deletions app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export async function generateMetadata({

export const viewport: Viewport = {
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#fcfcfe" },
{ media: "(prefers-color-scheme: dark)", color: "#0a0b14" },
{ media: "(prefers-color-scheme: light)", color: "#ffffff" },
{ media: "(prefers-color-scheme: dark)", color: "#0a0a0a" },
],
colorScheme: "light dark",
width: "device-width",
Expand Down Expand Up @@ -125,7 +125,11 @@ export default async function LangLayout({
Skip to content
</a>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
<SiteHeader locale={lang as Locale} dict={dict} />
<SiteHeader
locale={lang as Locale}
dict={dict}
ctaLabel={getDict(lang as Locale).home.heroCtaOpen}
/>
{/* Clip the hero's decorative glows/grids (wider than a phone) here,
not only on <body>: body overflow propagates to the viewport,
where it no longer shrinks the scrollable width. */}
Expand Down
222 changes: 135 additions & 87 deletions app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@ import Link from "next/link";
import type { Metadata } from "next";
import { notFound } from "next/navigation";

import { ArrowRight, ArrowUpRight } from "lucide-react";

import { CollectGuide } from "@/components/CollectGuide";
import { EvtxLocations } from "@/components/EvtxLocations";
import { EvtxUploader } from "@/components/EvtxUploader";
import { Faq } from "@/components/Faq";
import {
COL,
CtaBand,
FeatureGrid,
FlareLine,
REPO_URL,
SIGMA_COUNT,
SectionHeading,
StatsBand,
WorksWith,
} from "@/components/home/HomeSections";
import { ProductPreview } from "@/components/ProductPreview";
import { ProductShot } from "@/components/home/ProductShot";
import { HUNTS } from "@/lib/hunts";
import { HomeSeo } from "@/components/HomeSeo";
import { JsonLd } from "@/components/seo/json-ld";
import { blog, site } from "@/next-md-blog.config";
Expand Down Expand Up @@ -96,153 +102,195 @@ export default async function Home({ params }: { params: Promise<Params> }) {
offers: { "@type": "Offer", price: "0", priceCurrency: "USD" },
};

// "EVTX parser — Windows Event Log viewer…": brand part in ultraviolet.
// "EVTX parser — Windows Event Log viewer…": the brand set in the serif
// voice on its own line, the description in the sans below it.
const [headlineBrand, headlineRest] = dict.home.headline.includes(" — ")
? dict.home.headline.split(" — ", 2)
: [null, null];

const specs = [
`0 ${dict.home.statUploaded}`,
`${HUNTS.length} hunts`,
`${SIGMA_COUNT.toLocaleString("en-US")} Sigma rules`,
"Rust → WebAssembly",
];

return (
<>
<JsonLd data={homeGraph} />
<main
id="main-content"
className="mx-auto flex w-full max-w-6xl flex-1 flex-col gap-20 px-4 py-6 sm:gap-28 sm:px-6 sm:py-10 xl:max-w-[1400px] 2xl:max-w-[1600px]"
className="flex flex-1 flex-col gap-24 pb-8 sm:gap-36"
>
{/* Hero — the case file under an ultraviolet lamp. */}
<header className="relative isolate flex flex-col items-center gap-6 pt-4 text-center sm:pt-8">
<div
aria-hidden="true"
className="pointer-events-none absolute -top-40 left-1/2 -z-10 h-[640px] w-[1200px] -translate-x-1/2 bg-[radial-gradient(closest-side,rgb(123_76_255/0.16),transparent)] dark:bg-[radial-gradient(closest-side,rgb(123_76_255/0.32),transparent)]"
/>
<div
aria-hidden="true"
className="pointer-events-none absolute -top-24 left-1/2 -z-10 h-[620px] w-[1400px] -translate-x-1/2 bg-[linear-gradient(to_right,rgb(123_76_255/0.08)_1px,transparent_1px),linear-gradient(to_bottom,rgb(123_76_255/0.08)_1px,transparent_1px)] [mask-image:radial-gradient(ellipse_50%_60%_at_50%_30%,black,transparent)] bg-[size:48px_48px]"
/>
<a
href={REPO_URL}
className="inline-flex items-center gap-2 rounded-full border border-ink-200 bg-card/70 py-1 pr-3 pl-1.5 text-xs text-ink-600 shadow-sm backdrop-blur transition hover:border-uv-300 dark:border-ink-800 dark:text-ink-300 dark:hover:border-uv-400/40"
>
<span className="inline-flex items-center gap-1.5 rounded-full bg-glow-400/20 px-2 py-0.5 font-medium text-glow-800 dark:text-glow-300">
<span className="relative flex h-1.5 w-1.5">
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-glow-400 opacity-70 motion-reduce:hidden" />
<span className="relative inline-flex h-1.5 w-1.5 rounded-full bg-glow-500" />
</span>
DFIR
</span>
{dict.home.heroTag}
<span aria-hidden="true" className="text-ink-400">
→
</span>
</a>
<h1 className="text-gradient max-w-5xl text-[2.6rem] leading-[1.02] font-semibold tracking-[-0.03em] text-balance sm:text-6xl lg:text-7xl">
{headlineBrand ? (
<>
<span className="text-gradient-uv">{headlineBrand}</span>
<span className="text-ink-300 dark:text-ink-700"> — </span>
{headlineRest}
</>
) : (
dict.home.headline
)}
</h1>
<p className="max-w-2xl text-lg leading-relaxed text-ink-600 sm:text-xl dark:text-ink-400">
{dict.home.intro}
</p>
</header>
{/* Hero: a report-white (or black) page with a single flare on the
event baseline. */}
<div className="relative">
<div className="relative isolate">
<div
aria-hidden="true"
className="pointer-events-none absolute inset-x-0 -top-24 -z-10 h-[720px] bg-[linear-gradient(to_right,rgb(10_10_10/0.045)_1px,transparent_1px)] bg-[size:calc(100%/12)_100%] [mask-image:linear-gradient(to_bottom,black,transparent_85%)] dark:bg-[linear-gradient(to_right,rgb(255_255_255/0.045)_1px,transparent_1px)]"
/>
<header className={`${COL} flex flex-col gap-6 pt-8 sm:gap-7 sm:pt-12`}>
<a
href={REPO_URL}
className="group inline-flex w-fit items-center gap-2.5 rounded-full border border-ink-200 bg-background py-1 pr-3 pl-1 text-xs text-ink-600 transition-colors hover:border-ink-300 dark:border-white/10 dark:text-ink-400 dark:hover:border-white/20"
>
<span className="rounded-full bg-ink-950 px-2 py-0.5 font-mono text-[10px] font-medium tracking-wider text-white dark:bg-white dark:text-ink-950">
DFIR
</span>
{dict.home.heroTag}
<ArrowUpRight
aria-hidden="true"
className="size-3.5 text-ink-400 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"
/>
</a>
<h1 className="max-w-5xl text-[2.5rem] leading-[0.98] font-semibold tracking-[-0.045em] text-balance text-ink-950 sm:text-6xl lg:text-[4.5rem] dark:text-white">
{headlineBrand ? (
<>
<span className="font-serif block text-[1.08em] leading-[0.9] tracking-[-0.02em] text-uv-600 dark:text-uv-400">
{headlineBrand}
</span>
<span className="sr-only"> — </span>
<span className="text-gradient">{headlineRest}</span>
</>
) : (
dict.home.headline
)}
</h1>
{/* The drop zone right below is the primary action, so the hero
carries no duplicate CTA: intro on the left, specs on the right. */}
<div className="grid gap-5 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-end lg:gap-12">
<p className="max-w-xl text-base leading-relaxed text-ink-600 sm:text-lg dark:text-ink-400">
{dict.home.intro}
</p>
<ul className="flex flex-wrap gap-x-5 gap-y-2 font-mono text-xs text-ink-500 lg:justify-end lg:pb-1">
{specs.map((s) => (
<li key={s} className="flex items-center gap-2">
<span aria-hidden="true" className="h-1 w-1 bg-uv-500" />
{s}
</li>
))}
</ul>
</div>
</header>
<FlareLine className="mt-2 mb-5 h-14 text-ink-300 sm:h-20 dark:text-ink-700" />
</div>

{/* The tool is the hero's centrepiece: the drop zone is the main
call to action, directly under the headline. */}
<section
id="tool"
aria-label={dict.home.dropArea}
className="-mt-10 scroll-mt-24 sm:-mt-16"
>
<EvtxUploader
dict={dict}
locale={locale}
emptyStateAside={<CollectGuide dict={dict} locale={locale} />}
/>
</section>
{/* The tool itself, framed like evidence. */}
<section
id="tool"
aria-label={dict.home.dropArea}
className={`${COL} scroll-mt-24`}
>
<EvtxUploader
dict={dict}
locale={locale}
emptyStateAside={
<a
href="#collect"
className="group mx-auto inline-flex items-center gap-2 text-sm text-ink-600 transition-colors hover:text-ink-950 dark:text-ink-400 dark:hover:text-white"
>
{dict.collect.heading}
<ArrowRight
aria-hidden="true"
className="size-3.5 rotate-90 transition-transform group-hover:translate-y-0.5"
/>
</a>
}
/>
</section>
</div>

<WorksWith label={dict.home.worksWith} />

{/* "evtx" is a mostly-informational query and this page is the one
Google ranks for it, so answer "what is it" high on the page. */}
<section
aria-labelledby="what-is-evtx"
className="surface mx-auto -mt-8 flex w-full max-w-4xl flex-col gap-2 px-6 py-5 text-sm leading-relaxed text-ink-700 sm:-mt-12 dark:text-ink-300"
className={`${COL} grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] lg:gap-16`}
>
<h2 id="what-is-evtx" className="eyebrow">
<h2
id="what-is-evtx"
className="text-3xl leading-[1.08] tracking-[-0.035em] text-balance text-ink-950 sm:text-4xl dark:text-white"
>
{dict.home.whatIsHeading}
</h2>
<p>
<p className="text-base leading-relaxed text-ink-600 sm:text-lg dark:text-ink-400">
{dict.home.whatIsBody}{" "}
<Link
href={`/${locale}/blog/what-is-an-evtx-file`}
className="font-medium text-uv-700 underline decoration-uv-300 underline-offset-4 hover:decoration-uv-500 dark:text-uv-300 dark:decoration-uv-700"
className="font-medium text-ink-950 underline decoration-uv-500 decoration-2 underline-offset-4 transition-colors hover:text-uv-700 dark:text-white dark:hover:text-uv-300"
>
{dict.home.whatIsMore} →
</Link>
</p>
</section>

<FeatureGrid
dict={dict}
preview={
<div className="mx-auto hidden w-full max-w-5xl rounded-[1.25rem] border border-ink-200/70 bg-white/40 p-2 shadow-[0_50px_120px_-50px_rgb(106_51_245/0.55)] backdrop-blur sm:block dark:border-white/10 dark:bg-white/[0.03]">
<ProductPreview />
</div>
}
/>
<FeatureGrid dict={dict} preview={<ProductShot />} />

<StatsBand dict={dict} />
<div className={COL}>
<StatsBand dict={dict} />
</div>

<EvtxLocations dict={dict} locale={locale} />
<div className={`${COL} flex flex-col gap-16`}>
<EvtxLocations dict={dict} locale={locale} />
<div className="scroll-mt-24">
<CollectGuide dict={dict} locale={locale} />
</div>
</div>

{featured.length > 0 && (
<section
aria-labelledby="featured-heading"
className="flex flex-col gap-8"
className={`${COL} flex flex-col gap-10`}
>
<SectionHeading
id="featured-heading"
eyebrow="DFIR"
title={dict.home.featuredHeading}
/>
<ul className="grid gap-4 sm:grid-cols-2">
{featured.map((p) => (
<ul className="flex flex-col border-t border-ink-200 dark:border-white/[0.08]">
{featured.map((p, i) => (
<li key={p.slug}>
<Link
href={`/${locale}/blog/${p.slug}`}
className="surface surface-interactive group flex h-full flex-col gap-2 p-6"
className="group grid gap-2 border-b border-ink-200 py-6 transition-colors sm:grid-cols-[3rem_minmax(0,1fr)_minmax(0,1fr)_2rem] sm:gap-6 dark:border-white/[0.08]"
>
<span className="flex items-start justify-between gap-3 font-medium text-ink-900 dark:text-ink-100">
<span className="font-mono text-xs text-ink-400 sm:pt-1.5">
{String(i + 1).padStart(2, "0")}
</span>
<span className="text-lg font-semibold tracking-[-0.015em] text-ink-950 transition-colors group-hover:text-uv-700 dark:text-white dark:group-hover:text-uv-300">
{(p.frontmatter.title as string) ?? p.slug}
<span
aria-hidden="true"
className="text-uv-500 transition-transform group-hover:translate-x-1"
>
→
</span>
</span>
{p.frontmatter.description ? (
<span className="line-clamp-2 text-sm leading-relaxed text-ink-600 dark:text-ink-400">
{p.frontmatter.description as string}
</span>
) : null}
) : (
<span />
)}
<ArrowUpRight
aria-hidden="true"
className="hidden size-5 text-ink-400 transition-[color,transform] group-hover:translate-x-0.5 group-hover:-translate-y-0.5 group-hover:text-uv-600 sm:block dark:group-hover:text-uv-400"
/>
</Link>
</li>
))}
</ul>
</section>
)}

<HomeSeo locale={locale} />

<div className={COL}>
<HomeSeo locale={locale} />
</div>

<Faq dict={dict} />
<div className={COL}>
<Faq dict={dict} />
</div>

<CtaBand dict={dict} />
<div className={COL}>
<CtaBand dict={dict} />
</div>
</main>
</>
);
Expand Down
23 changes: 3 additions & 20 deletions app/apple-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,14 @@ export const contentType = "image/png";

// Same mark as app/icon.svg, full-bleed (iOS applies its own rounded mask).
const MARK = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<defs>
<radialGradient id="h" cx="0.3" cy="0.25" r="0.85">
<stop offset="0" stop-color="#7b4cff" stop-opacity="0.55"/>
<stop offset="1" stop-color="#7b4cff" stop-opacity="0"/>
</radialGradient>
<clipPath id="l"><circle cx="30" cy="30" r="14.5"/></clipPath>
</defs>
<rect width="64" height="64" fill="#0b0c16"/>
<rect width="64" height="64" fill="url(#h)"/>
<g clip-path="url(#l)">
<rect x="18.5" y="32" width="4.5" height="14" rx="1.3" fill="#d8dbe7" opacity="0.4"/>
<rect x="25" y="25" width="4.5" height="21" rx="1.3" fill="#d8dbe7" opacity="0.6"/>
<rect x="31.5" y="17" width="4.5" height="29" rx="1.3" fill="#bdf01e"/>
<rect x="38" y="27" width="4.5" height="19" rx="1.3" fill="#d8dbe7" opacity="0.5"/>
</g>
<circle cx="30" cy="30" r="16" fill="none" stroke="#9772ff" stroke-width="4"/>
<line x1="42" y1="42" x2="51" y2="51" stroke="#9772ff" stroke-width="5.5" stroke-linecap="round"/>
<rect width="64" height="64" fill="#7b4cff"/>
<path d="M12 40.5H23.8L28.9 20L34.8 45L38.4 33.8L40.8 40.5H52" fill="none" stroke="#ffffff" stroke-width="4.8" stroke-linecap="round" stroke-linejoin="round"/>
</svg>`;

export default function AppleIcon() {
const src = `data:image/svg+xml;base64,${Buffer.from(MARK).toString("base64")}`;
return new ImageResponse(
(
<img src={src} width={180} height={180} alt="" />
),
<img src={src} width={180} height={180} alt="" />,
size,
);
}
Loading