// iperf23.jsx — iPerf 2 & 3 sub-page

function IPerf23() {
  return (
    <Page>
      <section className="detail" data-screen-label="iPerf 2 & 3 · Detail">
        <a className="back reveal" href="/" onClick={(e) => { e.preventDefault(); navigate('/'); }}>
          <span className="arr">←</span> Back to index
        </a>

        <p className="detail-kicker reveal">
          <span className="dot" />
          <span>Project 04</span>
          <span style={{ color: 'var(--rule)' }}>/</span>
          <span>Mobile · Network tool</span>
          <span style={{ color: 'var(--rule)' }}>/</span>
          <span>2026 —</span>
        </p>

        <h1 className="detail-title reveal">
          iPerf 2 &amp; 3<em>.</em>
        </h1>
        <p className="detail-tag reveal">
          Network speed test and ping for your pocket. An iperf2 and iperf3 compatible client and server for iPhone, iPad and Android — with live charts and PDF reports.
        </p>

        <dl className="detail-facts reveal">
          <div className="fact"><dt>Platform</dt><dd>iOS · iPadOS · Android</dd></div>
          <div className="fact"><dt>Protocols</dt><dd>iperf 2.0–2.2 · iperf 3 · ICMP ping</dd></div>
          <div className="fact"><dt>Output</dt><dd>Live charts · History · PDF</dd></div>
          <div className="fact"><dt>Status</dt><dd>Release prep</dd></div>
        </dl>

        <div className="detail-body reveal">
          <h3>Concept</h3>
          <div className="body-copy">
            <p>
              Checking a Wi-Fi link usually means dragging a laptop to the far corner of the house. iPerf 2 &amp; 3 puts the same tool on the phone: point it at any iperf server — or turn the phone itself into one — and read throughput, jitter and loss as the test runs.
            </p>
            <p>
              It is an independent implementation of both protocols, so it talks to the iperf you already have on the bench: the 2.x and 3.x builds are different, incompatible wire formats, and the app lets you pick the one that matches the other side.
            </p>
          </div>
        </div>

        <ul className="feature-list reveal" style={{ listStyle: 'none', margin: 0, padding: 0 }}>
          <li className="feature">
            <span className="idx">01</span>
            <div>
              <h4>Client &amp; server</h4>
              <p>Run a test against any iperf2 / iperf3 server, or start a server on the phone and test from your laptop.</p>
            </div>
          </li>
          <li className="feature">
            <span className="idx">02</span>
            <div>
              <h4>Live charts</h4>
              <p>Throughput, UDP rate and parallel streams plotted as they happen — TCP or UDP, with a target bandwidth or unlimited.</p>
            </div>
          </li>
          <li className="feature">
            <span className="idx">03</span>
            <div>
              <h4>Ping</h4>
              <p>Latency checks alongside the speed test, so you can tell a slow link from a lossy one.</p>
            </div>
          </li>
          <li className="feature">
            <span className="idx">04</span>
            <div>
              <h4>History &amp; PDF</h4>
              <p>Every run is kept on the device; open one and export a PDF report to share. Nothing is uploaded.</p>
            </div>
          </li>
        </ul>

        <div className="detail-body reveal">
          <h3>Status</h3>
          <div className="body-copy">
            <p>
              Store listing and policy pages are in place. The app is free and ad-supported (Google AdMob); it keeps test results on the device and runs no servers of its own.
            </p>
          </div>
        </div>

        <div className="detail-body reveal">
          <h3>Compliance</h3>
          <div className="body-copy" style={{ display: 'flex', gap: '20px', flexWrap: 'wrap' }}>
            <a href="/iperf23/privacy/" target="_blank" rel="noopener">Privacy policy →</a>
            <a href="/iperf23/support/" target="_blank" rel="noopener">Support →</a>
          </div>
        </div>

        <nav className="pager reveal">
          <a href="/xcoord" onClick={(e) => { e.preventDefault(); navigate('/xcoord'); }}>
            <small>Previous project</small>
            ← XCoord
          </a>
          <a href="/gravity3dmaze" onClick={(e) => { e.preventDefault(); navigate('/gravity3dmaze'); }}>
            <small>Next project</small>
            Gravity 3D Maze <em style={{ fontStyle: 'italic', color: 'var(--muted)' }}>→</em>
          </a>
        </nav>
      </section>
    </Page>
  );
}

window.IPerf23 = IPerf23;
