Skip to content

The design language that makes your AI harness better at design.

JavaScript
7.1 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Nested cards inside a drawn product mockup (decision r6-t3)</title>
<!--
  The panels of a drawn product mockup are a picture of an interface, not
  cards nested on this page. An inner card reports nested-cards as advisory
  when it sits in a framed demo (r5-p26's structure: a window with three
  title-bar dots, a device frame tilted in 3D or scaled down, a frame
  under a wrapper that carries the scale), when it is that window itself, or when it sits under an HTML role="img". Every row reports; the column says at which severity.

  Bordered cards in a bordered panel outside any mockup (paseo.sh) keep
  failing, and so does a window with two dots, which is not window chrome.
  A class that names a mockup is not read for this rule: "illustration"
  names a feature tile's picture as often as a mockup, and r4-p17 keeps such
  a tile failing.

  The utility classes on each box are what the static engine reads card
  shape from; it has no layout, so the framed demo is read from its title
  bar and its declared transform.
-->
<style>
  body { font-family: system-ui, sans-serif; font-size: 16px; color: #1a1a1a; background: #fff; margin: 24px; }
  .col { display: inline-block; width: 460px; vertical-align: top; }
  h2 { font-size: 20px; margin: 0 0 16px; }
  .shot { width: 420px; margin: 0 0 32px; background-color: #ffffff; border: 1px solid #d0d7de; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); overflow: hidden; }
  .bar { width: 420px; height: 32px; background-color: #f1f3f5; }
  .lights { display: inline-block; padding: 11px 12px; }
  .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: #e5484d; margin-right: 6px; vertical-align: top; }
  .pane { padding: 16px; }
  .inner { width: 360px; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; padding: 12px; margin: 0 0 8px; }
  .panel { width: 420px; margin: 0 0 32px; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 14px; padding: 16px; }
  p { margin: 0; font-size: 14px; line-height: 20px; }
  .foot { padding: 8px 16px; border-top: 1px solid #e4e4e7; }
</style>
</head>
<body>

<div class="col" id="fails">
  <h2>Fails</h2>

  <!-- paseo.sh: three bordered cards in a bordered panel, no mockup -->
  <div class="panel border rounded-2xl" id="fail-panel">
    <div class="inner border rounded-xl" id="fail-panel-a"><p>Run agents on your own machine, from your phone.</p><p>A second line makes it a surface, not a label.</p></div>
    <div class="inner border rounded-xl" id="fail-panel-b"><p>Every session streams to the same dashboard.</p><p>A second line makes it a surface, not a label.</p></div>
    <div class="inner border rounded-xl" id="fail-panel-c"><p>Pick up where you left off on any device.</p><p>A second line makes it a surface, not a label.</p></div>
  </div>

  <!-- two dots are not a title bar -->
  <div class="shot border rounded-xl shadow-lg" id="fail-two-dots">
    <div class="bar"><span class="lights"><i class="dot"></i><i class="dot"></i></span></div>
    <div class="pane"><div class="inner border rounded-xl" id="fail-two-dots-inner"><p>Deploy finished in 42 seconds</p><p>A second line makes it a surface, not a label.</p></div></div>
  </div>

  <!-- a card fanned at full size, like a polaroid, is not a frame -->
  <div class="panel border rounded-2xl" id="fail-fanned">
    <div class="inner border rounded-xl" id="fail-fanned-inner" style="transform: rotate(-6deg); height: 96px"><p>The best tool we bought this year</p><p>A second line makes it a surface, not a label.</p></div>
  </div>

  <!-- a sentence that works the word "example" in is not a sample caption -->
  <div class="panel border rounded-2xl" id="fail-prose-in-card">
    <div class="shot border rounded-xl shadow-lg" id="fail-prose-panel" style="height: 130px; margin: 0">
      <div class="pane"><p>Stage three of five is mapping fields.</p><p>A second line makes it a surface, not a label.</p></div>
      <p class="foot">An example project mid-migration, one customer's data.</p>
    </div>
  </div>

  <!-- a class that names a mockup is not read -->
  <div class="hero-mockup" id="fail-marked">
    <div class="panel border rounded-2xl"><div class="inner border rounded-xl" id="fail-marked-inner"><p>Three reviewers approved this change</p><p>A second line makes it a surface, not a label.</p></div></div>
  </div>
</div>

<div class="col" id="advisory">
  <h2>Advisory</h2>

  <!-- a window with three title-bar dots -->
  <div class="shot border rounded-xl shadow-lg" id="adv-window">
    <div class="bar"><span class="lights"><i class="dot"></i><i class="dot"></i><i class="dot"></i></span></div>
    <div class="pane"><div class="inner border rounded-xl" id="adv-window-inner"><p>Invoice #2041 paid by Lattice</p><p>A second line makes it a surface, not a label.</p></div></div>
  </div>

  <!-- a device frame tilted in 3D -->
  <div class="shot border rounded-xl shadow-lg" id="adv-tilted" style="transform: perspective(900px) rotateX(8deg)">
    <div class="pane"><div class="inner border rounded-xl" id="adv-tilted-inner"><p>Weekly active users up 12%</p><p>A second line makes it a surface, not a label.</p></div></div>
  </div>

  <!-- stroq.dev: the window itself is the inner card of a section card -->
  <div class="panel border rounded-2xl" id="adv-window-in-card">
    <div class="shot border rounded-xl shadow-lg" id="adv-window-itself">
      <div class="bar"><span class="lights"><i class="dot"></i><i class="dot"></i><i class="dot"></i></span></div>
      <div class="pane"><p>README.md, index.js and a terminal below them.</p><p>A second line makes it a surface, not a label.</p></div>
    </div>
  </div>

  <!-- maritime.sh: a wrapper carries the scale, and the window under it is
       the inner card of a section card -->
  <div class="panel border rounded-2xl" id="adv-scaled-in-card">
    <div style="scale: 0.85; width: 380px; height: 150px">
      <div class="shot border rounded-xl shadow-lg" id="adv-scaled-window" style="width: 380px; height: 140px; margin: 0">
        <div class="pane"><p>Inbox, three unread from the shipping desk.</p><p>A second line makes it a surface, not a label.</p></div>
      </div>
    </div>
  </div>

  <!-- getpaidlens.com: a panel with an illustrative footer note is the
       inner card of a section card (decision r8-t1-mockups-by-caption) -->
  <div class="panel border rounded-2xl" id="adv-captioned-in-card">
    <div class="shot border rounded-xl shadow-lg" id="adv-captioned-panel" style="height: 130px; margin: 0">
      <div class="pane"><p>Campaign D is spending under its budget.</p><p>A second line makes it a surface, not a label.</p></div>
      <p class="foot">Illustrative example. Figures shown are not customer data.</p>
    </div>
  </div>

  <!-- an HTML subtree the author marked as a picture -->
  <div role="img" aria-label="The billing screen" id="adv-picture">
    <div class="panel border rounded-2xl"><div class="inner border rounded-xl" id="adv-picture-inner"><p>Pro plan, renews on June 3</p><p>A second line makes it a surface, not a label.</p></div></div>
  </div>
</div>

</body>
</html>