import type { Challenge } from '../challenge/registry.ts'; import { html } from './html.ts'; import { badge, layout } from './layout.ts'; type Box = { x: number; y: number; width: number; height: number }; export function renderChallenge(challenge: Challenge, box: Box | undefined): string { const body = html`
${badge(challenge.platform, challenge.platformLabel)}
wants you to prove you are a person

Solve it here and the post loads. Drag on the picture exactly as you would on ${challenge.platformLabel}.

The verification puzzle

Loading…

`; return layout(`Verify — ${challenge.platformLabel}`, body); }