Skip to content

Commit 18235e4

Browse files
NAOR YUVALNAOR YUVAL
authored andcommitted
landing: inline SVG diagram, add OAuth analogy
Made-with: Cursor
1 parent 442a7e2 commit 18235e4

1 file changed

Lines changed: 50 additions & 3 deletions

File tree

index.html

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,56 @@
256256
<h1>Machine Payment Control Protocol (MPCP)</h1>
257257
<p class="tagline">The authorization layer for machine commerce.</p>
258258
</header>
259+
<section class="diagram">
260+
<svg viewBox="0 0 900 420" width="100%" xmlns="http://www.w3.org/2000/svg">
261+
<style>
262+
.box { fill:#1a2332; stroke:#2d3a4d; stroke-width:1.5; rx:10; }
263+
.label { fill:#e6edf3; font-family:'DM Sans',sans-serif; font-size:14px; text-anchor:middle; }
264+
.title { fill:#8b9cb7; font-size:13px; }
265+
.arrow { stroke:#58a6ff; stroke-width:2; marker-end:url(#arrowhead); }
266+
</style>
259267

260-
<div class="diagram">
261-
<img src="/assets/mpcp-vs-traditional-payments.svg" alt="MPCP vs traditional payments" width="700" height="350">
262-
</div>
268+
<defs>
269+
<marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
270+
<polygon points="0 0, 10 3.5, 0 7" fill="#58a6ff"/>
271+
</marker>
272+
</defs>
273+
274+
<!-- Traditional -->
275+
<text x="225" y="40" class="label title">Traditional payment</text>
276+
<rect x="120" y="80" width="210" height="55" class="box"/>
277+
<text x="225" y="112" class="label">Payment request</text>
278+
279+
<line x1="225" y1="135" x2="225" y2="185" class="arrow"/>
280+
281+
<rect x="120" y="185" width="210" height="55" class="box"/>
282+
<text x="225" y="217" class="label">Payment executed</text>
283+
284+
<!-- Divider -->
285+
<line x1="450" y1="60" x2="450" y2="360" stroke="#2d3a4d"/>
286+
287+
<!-- MPCP -->
288+
<text x="675" y="40" class="label title">MPCP authorization chain</text>
289+
290+
<rect x="560" y="70" width="230" height="45" class="box"/>
291+
<text x="675" y="98" class="label">Policy</text>
292+
293+
<line x1="675" y1="115" x2="675" y2="155" class="arrow"/>
294+
295+
<rect x="560" y="155" width="230" height="45" class="box"/>
296+
<text x="675" y="183" class="label">Budget Authorization</text>
297+
298+
<line x1="675" y1="200" x2="675" y2="240" class="arrow"/>
299+
300+
<rect x="560" y="240" width="230" height="45" class="box"/>
301+
<text x="675" y="268" class="label">Payment Authorization</text>
302+
303+
<line x1="675" y1="285" x2="675" y2="325" class="arrow"/>
304+
305+
<rect x="560" y="325" width="230" height="45" class="box"/>
306+
<text x="675" y="353" class="label">Settlement</text>
307+
</svg>
308+
</section>
263309

264310
<main>
265311
<section>
@@ -282,6 +328,7 @@ <h2>How MPCP works</h2>
282328
<div class="step">Settlement</div>
283329
</div>
284330
<p>MPCP represents machine payments as a chain of signed authorization artifacts.</p>
331+
<p><strong>MPCP is to machine payments what OAuth is to API authorization.</strong></p>
285332
<a href="/spec/architecture/reference-flow/" class="dive-in">Dive in → Reference flow</a>
286333
</section>
287334

0 commit comments

Comments
 (0)