Skip to content
Closed
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
146 changes: 77 additions & 69 deletions app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,85 +164,93 @@ export default async function Home({ params }: { params: Promise<Params> }) {
/>
</section>

<WorksWith label={dict.home.worksWith} />
{/* Everything below the tool reads as an editorial column: narrower
than the (wide) workspace so line lengths and cards stay calm. */}
<div className="mx-auto flex w-full max-w-6xl flex-col gap-24 sm:gap-32">
<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"
>
<h2 id="what-is-evtx" className="eyebrow">
{dict.home.whatIsHeading}
</h2>
<p>
{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"
>
{dict.home.whatIsMore} →
</Link>
</p>
</section>
{/* "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"
>
<h2 id="what-is-evtx" className="eyebrow">
{dict.home.whatIsHeading}
</h2>
<p>
{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"
>
{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={
<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>
}
/>

<StatsBand dict={dict} />
<StatsBand dict={dict} />

<EvtxLocations dict={dict} locale={locale} />
<EvtxLocations dict={dict} locale={locale} />

{featured.length > 0 && (
<section
aria-labelledby="featured-heading"
className="flex flex-col gap-8"
>
<SectionHeading
id="featured-heading"
eyebrow="DFIR"
title={dict.home.featuredHeading}
/>
<ul className="grid gap-4 sm:grid-cols-2">
{featured.map((p) => (
<li key={p.slug}>
<Link
href={`/${locale}/blog/${p.slug}`}
className="surface surface-interactive group flex h-full flex-col gap-2 p-6"
>
<span className="flex items-start justify-between gap-3 font-medium text-ink-900 dark:text-ink-100">
{(p.frontmatter.title as string) ?? p.slug}
<span
aria-hidden="true"
className="text-uv-500 transition-transform group-hover:translate-x-1"
>
→
{featured.length > 0 && (
<section
aria-labelledby="featured-heading"
className="flex flex-col gap-8"
>
<SectionHeading
id="featured-heading"
eyebrow="DFIR"
title={dict.home.featuredHeading}
/>
<ul className="grid gap-4 sm:grid-cols-2">
{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-3 p-6 sm:p-7"
>
<span className="flex items-center justify-between gap-3">
<span className="font-mono text-[11px] tracking-[0.14em] text-uv-600 dark:text-uv-300">
{String(i + 1).padStart(2, "0")}
</span>
<span
aria-hidden="true"
className="flex size-7 items-center justify-center rounded-full border border-ink-200 text-ink-400 transition-all group-hover:translate-x-0.5 group-hover:border-uv-300 group-hover:bg-uv-50 group-hover:text-uv-600 dark:border-white/[0.08] dark:group-hover:border-uv-400/40 dark:group-hover:bg-uv-400/10 dark:group-hover:text-uv-300"
>
→
</span>
</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 className="font-heading text-lg leading-snug font-semibold text-ink-900 dark:text-ink-50">
{(p.frontmatter.title as string) ?? p.slug}
</span>
) : null}
</Link>
</li>
))}
</ul>
</section>
)}

<HomeSeo locale={locale} />
{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}
</Link>
</li>
))}
</ul>
</section>
)}

<HomeSeo locale={locale} />

<Faq dict={dict} />
<Faq dict={dict} />

<CtaBand dict={dict} />
<CtaBand dict={dict} />
</div>
</main>
</>
);
Expand Down
89 changes: 46 additions & 43 deletions components/EvtxUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
useSyncExternalStore,
type ReactNode,
} from "react";
import { Play } from "lucide-react";
import { track } from "@vercel/analytics";

import {
Expand Down Expand Up @@ -2604,18 +2605,15 @@ export function EvtxUploader({
)}

{!ready && (
<label
tabIndex={0}
role="button"
aria-label={t.home.dropArea}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
openFilePicker();
}
}}
// Clicking anywhere on the zone opens the picker (mouse convenience);
// keyboard and screen-reader users get the two real buttons inside,
// so there is no nested-interactive role="button" wrapper.
<div
id="dropzone"
className="edge-glow group relative flex scroll-mt-24 cursor-pointer flex-col items-center justify-center gap-3 overflow-hidden rounded-3xl px-4 py-12 text-center text-sm shadow-[0_40px_100px_-40px_rgb(123_76_255/0.6)] transition-[box-shadow,transform] hover:-translate-y-0.5 hover:shadow-[0_48px_120px_-40px_rgb(123_76_255/0.75)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-uv-500 sm:px-6 sm:py-14"
onClick={(e) => {
if (!(e.target as Element).closest("button")) openFilePicker();
}}
className="edge-glow group relative flex scroll-mt-24 cursor-pointer flex-col items-center justify-center gap-3 overflow-hidden rounded-3xl px-4 py-12 text-center text-sm shadow-[0_40px_100px_-40px_rgb(123_76_255/0.6)] transition-[box-shadow,transform] hover:-translate-y-0.5 hover:shadow-[0_48px_120px_-40px_rgb(123_76_255/0.75)] sm:px-6 sm:py-14"
>
<span
aria-hidden="true"
Expand All @@ -2628,11 +2626,27 @@ export function EvtxUploader({
{t.home.dropArea}
</span>
<span className="relative text-ink-500 dark:text-ink-400">{t.home.privacyNote}</span>
<span
aria-hidden="true"
className="relative mt-3 inline-flex items-center gap-2 rounded-xl bg-uv-600 px-5 py-2.5 text-sm font-semibold text-white shadow-[0_10px_30px_-10px_rgb(106_51_245/0.8),inset_0_1px_0_rgb(255_255_255/0.2)] transition group-hover:bg-uv-500 dark:bg-uv-500 dark:group-hover:bg-uv-400"
>
{t.home.heroCtaOpen}
<span className="relative mt-3 flex flex-col items-center gap-2.5 sm:flex-row">
<button
type="button"
onClick={openFilePicker}
className="inline-flex items-center gap-2 rounded-xl bg-uv-600 px-5 py-2.5 text-sm font-semibold text-white shadow-[0_10px_30px_-10px_rgb(106_51_245/0.8),inset_0_1px_0_rgb(255_255_255/0.2)] transition hover:bg-uv-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-uv-500 focus-visible:ring-offset-2 focus-visible:ring-offset-card dark:bg-uv-500 dark:hover:bg-uv-400"
>
{t.home.heroCtaOpen}
</button>
<button
type="button"
onClick={loadSamples}
disabled={loading != null || restoring}
title={t.home.sampleNote}
className="inline-flex items-center gap-2 rounded-xl border border-ink-200 bg-card px-5 py-2.5 text-sm font-semibold text-ink-800 shadow-[0_1px_2px_rgb(11_12_22/0.05)] transition hover:border-uv-300 hover:text-uv-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-uv-500 disabled:opacity-50 dark:border-white/10 dark:bg-white/[0.04] dark:text-ink-100 dark:hover:border-uv-400/40 dark:hover:text-uv-200"
>
<Play aria-hidden="true" className="size-3.5 fill-current text-uv-600 dark:text-uv-300" />
{t.home.sampleCta}
</button>
</span>
<span className="relative max-w-md text-xs text-balance text-ink-500 dark:text-ink-400">
{t.home.sampleNote}
</span>
<span aria-hidden="true" className="relative mt-2 flex flex-wrap justify-center gap-2 font-mono text-[11px] text-ink-400 dark:text-ink-500">
{["Security.evtx", "System.evtx", "Sysmon%4Operational.evtx"].map((n) => (
Expand All @@ -2641,37 +2655,26 @@ export function EvtxUploader({
</span>
))}
</span>
<input
ref={fileInputRef}
type="file"
accept=".evtx"
multiple
className="hidden"
onChange={(e) => {
const picked = Array.from(e.target.files ?? []);
// Reset so re-selecting the same file still fires onChange.
e.target.value = "";
if (picked.length) handleFiles(picked);
}}
/>
</label>
</div>
)}

{!ready && (
<div className="flex flex-col items-center justify-center gap-x-3 gap-y-2 text-center text-sm sm:flex-row">
<button
type="button"
onClick={loadSamples}
disabled={loading != null || restoring}
className="inline-flex items-center gap-2 rounded-xl border border-uv-300 bg-card px-4 py-2 font-semibold text-uv-700 transition hover:border-uv-500 hover:bg-uv-50 disabled:opacity-50 dark:border-uv-400/40 dark:text-uv-300 dark:hover:bg-uv-500/10"
>
<span aria-hidden="true">▶</span>
{t.home.sampleCta}
</button>
<span className="text-ink-500 dark:text-ink-400">{t.home.sampleNote}</span>
</div>
<input
ref={fileInputRef}
type="file"
accept=".evtx"
multiple
aria-label={t.home.dropArea}
className="hidden"
onChange={(e) => {
const picked = Array.from(e.target.files ?? []);
// Reset so re-selecting the same file still fires onChange.
e.target.value = "";
if (picked.length) handleFiles(picked);
}}
/>
)}


{!ready && (
<SavedSessionsList
dict={t}
Expand Down
48 changes: 34 additions & 14 deletions components/Faq.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,50 @@
import { Plus } from "lucide-react";

import type { Dict } from "@/src/dict/types";

// The FAQPage JSON-LD lives in the page-level @graph (lib/schema.ts), not
// here, so the entity is emitted once and connected to the WebPage node.
//
// Answers sit in native <details>: they stay in the server-rendered HTML
// (crawlable, find-in-page searchable) while the list reads as a compact
// accordion instead of a wall of text. The first item starts open.
export function Faq({ dict }: { dict: Dict }) {
const items = dict.faq.items;

return (
<section
aria-labelledby="faq-heading"
className="faq flex w-full max-w-3xl flex-col gap-5 pt-6"
className="faq grid gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.8fr)] lg:gap-16"
>
<h2 id="faq-heading" className="text-2xl text-ink-950 dark:text-ink-50">
{dict.faq.heading}
</h2>
<dl className="surface flex flex-col divide-y divide-ink-100 px-5 dark:divide-ink-800">
{items.map((item) => (
<div key={item.q} className="flex flex-col gap-1.5 py-4">
<dt className="font-medium text-ink-900 dark:text-ink-100">
{item.q}
</dt>
<dd className="text-sm leading-relaxed text-ink-600 dark:text-ink-400">
<div className="flex flex-col gap-3 lg:sticky lg:top-24 lg:self-start">
<span className="eyebrow">FAQ</span>
<h2
id="faq-heading"
className="text-3xl leading-tight tracking-[-0.02em] text-balance text-ink-950 sm:text-4xl dark:text-ink-50"
>
{dict.faq.heading}
</h2>
</div>
<div className="surface divide-y divide-ink-100 overflow-hidden dark:divide-white/[0.06]">
{items.map((item, i) => (
<details key={item.q} open={i === 0} className="group">
<summary className="flex cursor-pointer list-none items-start justify-between gap-4 px-5 py-4 transition-colors select-none hover:bg-ink-50/70 sm:px-6 dark:hover:bg-white/[0.02] [&::-webkit-details-marker]:hidden">
<span className="faq-q font-medium text-ink-900 dark:text-ink-100">
{item.q}
</span>
<span
aria-hidden="true"
className="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full border border-ink-200 text-ink-500 transition-[transform,color,border-color] duration-200 group-open:rotate-45 group-open:border-uv-300 group-open:text-uv-600 motion-reduce:transition-none dark:border-ink-700 dark:group-open:border-uv-400/40 dark:group-open:text-uv-300"
>
<Plus className="size-3.5" strokeWidth={2.2} />
</span>
</summary>
<p className="faq-a -mt-1 px-5 pr-14 pb-5 text-sm leading-relaxed text-ink-600 sm:px-6 sm:pr-16 dark:text-ink-400">
{item.a}
</dd>
</div>
</p>
</details>
))}
</dl>
</div>
</section>
);
}
Loading