Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat: add shot page

Steven Enamakelaa1f570b7930
diff --git a/app/src/shot.html b/app/src/shot.html
new file mode 100644
index 0000000000..81af02b849
--- /dev/null
+++ b/app/src/shot.html
@@ -0,0 +1,3 @@
+<!doctype html>
+<html><head><meta charset="utf-8"/><title>probe</title></head>
+<body><div id="root"></div><script type="module" src="/shot.tsx"></script></body></html>
diff --git a/app/src/shot.tsx b/app/src/shot.tsx
new file mode 100644
index 0000000000..60dc24e789
--- /dev/null
+++ b/app/src/shot.tsx
@@ -0,0 +1,32 @@
+import { createRoot } from 'react-dom/client';
+import './index.css';
+
+if (new URLSearchParams(location.search).has('dark')) {
+ document.documentElement.classList.add('dark');
+}
+
+// Each row: a class whose colour SHOULD differ between themes, and one that
+// should not, both with and without an opacity modifier (which is what
+// compiles to color-mix(in oklab, …) under Tailwind v4).
+const PROBES = [
+ 'text-content',
+ 'text-content/80',
+ 'text-content-muted',
+ 'text-content-muted/80',
+ 'bg-surface',
+ 'bg-surface/80',
+ 'text-primary-300',
+ 'text-primary-300/80',
+ 'text-primary-700/80',
+ 'border-content-faint/35',
+];
+
+createRoot(document.getElementById('root')!).render(
+ <div className="bg-surface p-2">
+ {PROBES.map(c => (
+ <div key={c} data-probe={c} className={`border ${c}`}>
+ {c}
+ </div>
+ ))}
+ </div>
+);