Skip to content

Agent skills for useful HTML artifacts, wireframes, interactive prototypes, plans, and diagrams.

15.7 KB
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Effective HTML artifact comparison mockup</title>
    <style>
      :root {
        color-scheme: dark;
        --ink: #141413;
        --soft-ink: #252522;
        --paper: #f3e6d2;
        --paper-bright: #fff9ef;
        --paper-muted: #ded1be;
        --line: #6b6257;
        --copy: #cfc2b2;
        --green: #1bae61;
        --cobalt: #1649d8;
        --lilac: #a884e8;
        --pink: #f09aa8;
        --coral: #e8744f;
        --shadow: 0 22px 48px rgba(0, 0, 0, .36);
        font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      }
      * { box-sizing: border-box; }
      html { background: var(--ink); }
      body { min-width: 320px; margin: 0; color: var(--paper-bright); background: var(--ink); }
      button, a { font: inherit; }
      button { color: inherit; }
      button:focus-visible, a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
      .shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
      .topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(18px, 3vw, 42px); border-bottom: 1px solid #3a3732; }
      .brand { display: flex; align-items: center; gap: 10px; font-weight: 820; letter-spacing: -.03em; }
      .brand-mark { width: 19px; height: 19px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
      .brand-mark i { background: var(--paper-bright); }
      .brand-mark i:nth-child(2) { background: var(--green); }
      .brand-mark i:nth-child(3) { grid-column: 2; background: var(--paper-muted); }
      nav { display: flex; align-items: center; gap: 22px; }
      nav a { color: var(--copy); text-decoration: none; font-size: .82rem; font-weight: 650; }
      nav a[aria-current="page"] { color: var(--paper-bright); }
      .theme-dot { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
      .theme-dot::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); }

      main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(26px, 4vw, 60px) clamp(18px, 3vw, 42px) 46px; }
      .intro { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(360px, 1.28fr); align-items: end; gap: clamp(28px, 5vw, 80px); margin-bottom: 30px; }
      h1 { margin: 0; max-width: 640px; font-family: "Arial Narrow", Inter, sans-serif; font-size: clamp(3.4rem, 6vw, 6rem); font-weight: 900; line-height: .86; letter-spacing: -.04em; text-wrap: balance; }
      .intro-copy { max-width: 55ch; justify-self: end; }
      .intro-copy p { margin: 0; color: var(--copy); font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.55; }
      .intro-copy strong { color: var(--paper-bright); }

      .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; border: 1px solid var(--line); margin-bottom: 18px; }
      .selection { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 15px; }
      .selection-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--green); font-size: .75rem; font-weight: 800; }
      .selection div { min-width: 0; }
      .selection strong, .selection small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .selection strong { font-size: .84rem; }
      .selection small { margin-top: 3px; color: var(--copy); font-size: .68rem; }
      .segmented { display: flex; border-left: 1px solid var(--line); }
      .segmented button { min-width: 92px; min-height: 54px; border: 0; border-right: 1px solid var(--line); padding: 0 14px; color: var(--copy); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 700; }
      .segmented button:last-child { border-right: 0; }
      .segmented button[aria-pressed="true"] { color: var(--ink); background: var(--lilac); }
      .share { min-width: 132px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: var(--green); cursor: pointer; font-size: .78rem; font-weight: 800; }

      .comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
      .specimen { min-width: 0; overflow: hidden; border-radius: 8px; color: var(--ink); background: var(--paper-bright); box-shadow: var(--shadow); }
      .specimen-head { min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #b9ae9d; }
      .specimen-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
      .specimen-head p { margin: 4px 0 0; color: #6e675e; font-size: .68rem; }
      .stage-chip { padding: 7px 9px; border: 1px solid #8f8578; border-radius: 999px; font-size: .66rem; font-weight: 740; }
      .canvas { min-height: 485px; display: grid; place-items: center; padding: clamp(18px, 3vw, 34px); background: var(--paper); }
      .browser { width: 100%; height: 100%; min-height: 410px; display: grid; grid-template-rows: 30px 1fr; overflow: hidden; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper-bright); transform-origin: top center; transition: width 240ms cubic-bezier(.16,1,.3,1); }
      .browser-bar { display: flex; align-items: center; gap: 5px; padding: 0 10px; color: var(--ink); background: #efe1cb; border-bottom: 1px solid #b9ae9d; }
      .browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .8; }
      .browser-body { display: grid; grid-template-rows: 42% 58%; }
      .scene { position: relative; overflow: hidden; background: var(--cobalt); }
      .scene::before, .scene::after { content: ""; position: absolute; bottom: -20%; width: 65%; height: 64%; background: var(--lilac); clip-path: polygon(50% 0,100% 100%,0 100%); }
      .scene::before { left: -8%; }
      .scene::after { right: -14%; transform: scale(.78); transform-origin: bottom right; }
      .sun { position: absolute; top: 18%; right: 14%; width: 38px; height: 38px; border-radius: 50%; background: var(--pink); }
      .scene-label { position: absolute; left: 18px; bottom: 17px; z-index: 1; width: 46%; display: grid; gap: 6px; }
      .scene-label i { height: 7px; background: var(--paper-bright); }
      .scene-label i:last-child { width: 60%; }
      .browser-lower { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper-bright); }
      .copy-block { display: grid; align-content: start; gap: 10px; padding: 22px; }
      .copy-block i { display: block; height: 7px; background: var(--ink); }
      .copy-block i:nth-child(2), .copy-block i:nth-child(3) { background: #9e9588; }
      .copy-block i:nth-child(3) { width: 72%; }
      .copy-block b { width: 86px; height: 27px; margin-top: 8px; background: var(--green); }
      .mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 18px; background: var(--soft-ink); }
      .mini-grid i { border: 1px solid #665f56; background: #312f2b; }
      .mini-grid i.active { background: var(--lilac); }

      .sequence-body { display: grid; grid-template-columns: 38% 62%; height: 100%; min-height: 410px; color: var(--paper-bright); background: var(--soft-ink); }
      .flows { display: grid; align-content: start; gap: 8px; padding: 20px 16px; border-right: 1px solid #4b4741; }
      .flows strong { margin-bottom: 5px; font-size: .82rem; }
      .flows button { min-height: 34px; border: 1px solid #5d574f; border-radius: 999px; padding: 0 12px; text-align: left; color: var(--copy); background: transparent; font-size: .68rem; }
      .flows button:first-of-type { border-color: var(--green); color: var(--paper-bright); background: #1d392b; }
      .map { position: relative; min-height: 360px; }
      .node { position: absolute; min-width: 78px; padding: 11px 10px; border: 1px solid #726a60; border-radius: 5px; text-align: center; color: var(--paper-bright); background: var(--ink); font-size: .64rem; }
      .node.one { top: 18%; left: 9%; }
      .node.two { top: 18%; right: 8%; }
      .node.three { bottom: 18%; left: 30%; }
      .node.four { bottom: 18%; right: 8%; }
      .node.active { border-color: var(--green); background: #173626; }
      .map-line { position: absolute; height: 2px; transform-origin: left center; background: var(--coral); }
      .map-line.a { width: 42%; top: 29%; left: 29%; transform: rotate(0deg); }
      .map-line.b { width: 31%; top: 42%; left: 27%; transform: rotate(47deg); }
      .map-line.c { width: 27%; bottom: 29%; left: 49%; transform: rotate(0deg); background: var(--green); }
      .specimen-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 13px 16px; border-top: 1px solid #b9ae9d; }
      .facts { display: flex; gap: 14px; color: #6e675e; font-size: .68rem; }
      .open-link { color: var(--ink); font-size: .72rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
      .browser[data-width="mobile"] { width: min(310px, 100%); }
      .browser[data-width="mobile"] .browser-lower, .browser[data-width="mobile"] .sequence-body { grid-template-columns: 1fr; }
      .browser[data-width="mobile"] .mini-grid, .browser[data-width="mobile"] .flows { display: none; }
      .browser[data-width="mobile"] .map { min-height: 330px; }

      .review-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); color: var(--copy); font-size: .78rem; }
      .review-note strong { color: var(--paper-bright); }
      .review-note span:last-child { color: var(--green); font-weight: 760; }

      @media (max-width: 900px) {
        .intro { grid-template-columns: 1fr; align-items: start; }
        .intro-copy { justify-self: start; }
        .toolbar { grid-template-columns: 1fr auto; }
        .selection { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
        .segmented { border-left: 0; }
        .share { min-height: 54px; }
        .comparison { grid-template-columns: 1fr; }
      }
      @media (max-width: 560px) {
        nav a { display: none; }
        h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
        .selection small { max-width: 76vw; }
        .segmented button { min-width: 0; flex: 1; }
        .share { min-width: 110px; }
        .canvas { min-height: 450px; padding: 14px; }
        .browser { min-height: 395px; }
        .review-note { align-items: flex-start; flex-direction: column; }
      }
      @media (prefers-reduced-motion: reduce) {
        .browser { transition: none; }
      }
    </style>
  </head>
  <body>
    <!--
      THESIS: Artifact comparison should feel native to Effective HTML and keep the work larger than its controls.
      OWN-WORLD: Working Atlas ink, warm paper, printed cobalt/lilac/green, sharp rules, and browser specimens.
      STORY: Confirm two selected artifacts, change preview width, and judge them side by side.
      FIRST VIEWPORT: Heavy thesis and compact controls above two unequal, inspectable paper browser frames.
      FORM: System-aligned product mockup extending the approved catalog language; seed effective-html-compare-mockup.
      FINISH: unreviewed and undocumented is unfinished; this build ends with the finish review, the verdict, and DESIGN.md
    -->
    <div class="shell">
      <header class="topbar">
        <div class="brand"><span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i></span>Effective HTML</div>
        <nav aria-label="Primary"><a href="#">Catalog</a><a href="#">Guide</a><a href="#" aria-current="page">Compare</a><button class="theme-dot" type="button" aria-label="Theme"></button></nav>
      </header>
      <main>
        <section class="intro">
          <h1>Put the work side by side.</h1>
          <div class="intro-copy"><p>Compare the <strong>actual HTML artifacts</strong> at the same width. Keep their source, purpose, and live behavior one click away.</p></div>
        </section>

        <section class="toolbar" aria-label="Comparison controls">
          <div class="selection"><span class="selection-count">2</span><div><strong>Artifacts selected</strong><small>Release readiness · Architecture request paths</small></div></div>
          <div class="segmented" role="group" aria-label="Preview width">
            <button type="button" data-preview-width="desktop" aria-pressed="true">Desktop</button>
            <button type="button" data-preview-width="mobile" aria-pressed="false">Mobile</button>
          </div>
          <button class="share" type="button">Copy review link</button>
        </section>

        <section class="comparison" aria-label="Selected artifacts">
          <article class="specimen">
            <header class="specimen-head"><div><h2>Release readiness</h2><p>Tests hierarchy, evidence, and responsive structure</p></div><span class="stage-chip">Wireframe</span></header>
            <div class="canvas">
              <div class="browser" data-preview>
                <div class="browser-bar"><i></i><i></i><i></i></div>
                <div class="browser-body">
                  <div class="scene"><span class="sun"></span><span class="scene-label"><i></i><i></i></span></div>
                  <div class="browser-lower"><span class="copy-block"><i></i><i></i><i></i><b></b></span><span class="mini-grid"><i></i><i class="active"></i><i></i><i></i></span></div>
                </div>
              </div>
            </div>
            <footer class="specimen-foot"><div class="facts"><span>3 directions</span><span>Responsive</span></div><a class="open-link" href="#">Open HTML ↗</a></footer>
          </article>

          <article class="specimen">
            <header class="specimen-head"><div><h2>Architecture request paths</h2><p>Traces six flows through one interactive system map</p></div><span class="stage-chip">Diagram</span></header>
            <div class="canvas">
              <div class="browser" data-preview>
                <div class="browser-bar"><i></i><i></i><i></i></div>
                <div class="sequence-body">
                  <div class="flows"><strong>Request paths</strong><button type="button">Create</button><button type="button">Live edit</button><button type="button">Agent edit</button><button type="button">Public read</button></div>
                  <div class="map"><span class="map-line a"></span><span class="map-line b"></span><span class="map-line c"></span><span class="node one active">Browser</span><span class="node two">Worker</span><span class="node three active">Room</span><span class="node four">Storage</span></div>
                </div>
              </div>
            </div>
            <footer class="specimen-foot"><div class="facts"><span>6 paths</span><span>Interactive</span></div><a class="open-link" href="#">Open HTML ↗</a></footer>
          </article>
        </section>
        <div class="review-note"><span><strong>Reviewing structure and behavior.</strong> Visual finish differs because each artifact answers a different question.</span><span>Clear comparison</span></div>
      </main>
    </div>
    <script>
      const widthButtons = [...document.querySelectorAll("[data-preview-width]")];
      const previews = [...document.querySelectorAll("[data-preview]")];
      widthButtons.forEach((button) => {
        button.addEventListener("click", () => {
          const width = button.dataset.previewWidth;
          previews.forEach((preview) => preview.dataset.width = width);
          widthButtons.forEach((item) => item.setAttribute("aria-pressed", String(item === button)));
        });
      });
    </script>
  </body>
</html>