Skip to content
VibeCodeBench
Back to the app

The code

The Most Uncomfortable Web Page by GPT-6.2 Sol

Exactly as the AI wrote it. Shown as text, so nothing runs on this page.

index.html

works · auto-checked (Checked by an automated pass. Not hand-played yet.)21.2 KB · 365 lines · no libraries
Download
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#f5f1e8">
<title>The Bureau of Minor Inconveniences</title>
<style>
:root{color-scheme:light;--paper:#f5f1e8;--white:#fffcf5;--ink:#24231e;--muted:#5e574f;--rule:#d4ccbf;--pink:#ffb7a5;--red:#9d3628;--lime:#e3eea4;--mono:ui-monospace,"Courier New",monospace;--sans:"Arial",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);min-width:0}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
button:focus-visible{outline:3px solid #934c1c;outline-offset:4px}
button:disabled{cursor:default;opacity:1}
[hidden]{display:none!important}
.wrap{width:min(1152px,calc(100% - 80px));margin-inline:auto}
.masthead{min-height:76px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--ink)}
.brand{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:900;line-height:1.04;letter-spacing:.065em;text-transform:uppercase}
.brand-mark{width:35px;height:35px;background:var(--ink);color:var(--lime);display:grid;place-items:center;border-radius:4px;transform:rotate(-6deg);font:italic bold 29px/1 Georgia,serif}
.mast-note,.eyebrow,.tag,.card-top,.footer,.receipt-label{font:700 11px/1.35 var(--mono);letter-spacing:.075em;text-transform:uppercase}
.mast-note{display:flex;gap:8px;align-items:center;color:var(--muted)}
.dot{width:8px;height:8px;border-radius:50%;background:#c65a42;display:inline-block;flex:none}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:36px;align-items:center;padding:50px 0 42px}
.eyebrow{margin:0 0 16px;color:var(--red);display:flex;align-items:center;gap:10px}
.eyebrow:before{content:"";width:24px;border-top:1px solid currentColor}
h1{font-size:clamp(55px,7.4vw,112px);line-height:.86;letter-spacing:-.087em;margin:0;font-weight:900}
h1 em{font:italic 500 .95em/.95 Georgia,serif;letter-spacing:-.087em;display:inline-block;transform:translate(1px,1px) rotate(-2deg);color:#943b2d}
.intro{max-width:455px;font-size:16px;line-height:1.5;margin:23px 0 0;color:var(--muted)}
.figure{position:relative;height:238px;margin:0 5px 0 0;border:1px solid #cebfb0;background-color:#eee8dc;background-image:linear-gradient(to right,#d8cdbb77 1px,transparent 1px),linear-gradient(to bottom,#d8cdbb77 1px,transparent 1px);background-size:20px 20px;transform:rotate(2deg);isolation:isolate}
.figure-label{position:absolute;left:13px;top:12px;font:700 10px/1 var(--mono);letter-spacing:.07em;color:var(--muted)}
.figure-foot{position:absolute;right:13px;bottom:13px;font:700 10px/1 var(--mono);color:var(--muted)}
.orbit{position:absolute;inset:37px 65px 38px 64px;border:1px dashed #9e8d78;border-radius:50%;transform:rotate(-17deg)}
.cursor{position:absolute;width:101px;height:151px;left:113px;top:40px;background:var(--ink);clip-path:polygon(6% 0,97% 64%,59% 66%,75% 93%,56% 100%,39% 73%,13% 93%);transform:rotate(-13deg)}
.cursor:after{content:"";position:absolute;inset:10px;background:var(--pink);clip-path:polygon(3% 0,95% 64%,56% 65%,75% 95%,61% 100%,40% 69%,11% 92%)}
.cursor-shadow{transform:translate(22px,10px) rotate(-13deg);background:#a54636}
.cursor-shadow:after{background:#e68d78}
.spark{position:absolute;width:21px;height:21px;color:#9d3628}
.spark:before,.spark:after{content:"";position:absolute;background:currentColor;left:10px;top:0;width:1px;height:21px}
.spark:after{transform:rotate(90deg)}
.spark-one{left:75px;top:67px;transform:rotate(20deg)}
.spark-two{right:59px;top:66px;transform:rotate(-15deg) scale(.7)}
.spark-three{right:75px;bottom:49px;transform:rotate(15deg) scale(.8)}
.stamp{position:absolute;left:13px;bottom:13px;background:var(--lime);border:1px solid var(--ink);padding:7px 9px;box-shadow:2px 2px 0 var(--ink);transform:rotate(-8deg);font:700 10px/1 var(--mono);letter-spacing:.05em}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--ink);padding:14px 0 13px}
.section-head h2{font:700 12px/1.3 var(--mono);margin:0;text-transform:uppercase;letter-spacing:.08em}
.section-head .tag{color:var(--muted);text-align:right}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.card{min-width:0;min-height:257px;display:flex;flex-direction:column;background:var(--white);border:1px solid var(--ink);box-shadow:3px 3px 0 var(--ink);padding:17px 17px 15px;position:relative}
.card:nth-child(2){transform:translateY(2px) rotate(.45deg)}
.card:nth-child(3){transform:rotate(-.45deg)}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);margin-bottom:16px}
.num{display:grid;place-items:center;min-width:28px;height:26px;padding:0 4px;background:#eee7da;border:1px solid var(--rule);color:var(--ink)}
.card[data-done="true"] .num{background:var(--lime);border-color:var(--ink)}
.card h3{font-size:24px;line-height:1.05;margin:0 0 8px;letter-spacing:-.046em}
.card p{font-size:13px;line-height:1.38;margin:0;color:var(--muted)}
.control{margin-top:auto;padding-top:15px}
.button{border:1px solid var(--ink);border-radius:0;min-height:46px;padding:8px 13px;background:var(--paper);box-shadow:2px 2px 0 var(--ink);font-weight:800;font-size:13px;text-align:center}
.button:active:not(:disabled){box-shadow:none;translate:2px 2px}
.button:hover:not(:disabled){filter:brightness(.97)}
.button[disabled]{background:var(--lime);box-shadow:none}
.progress-line{display:flex;align-items:center;gap:9px}
.track{height:14px;flex:1;border:1px solid var(--ink);background:repeating-linear-gradient(135deg,#eee8dc 0 4px,#fffaf0 4px 8px);transform:rotate(-.7deg);overflow:hidden}
.fill{height:100%;width:0;background:var(--pink);border-right:1px solid var(--ink);transition:width .46s ease}
.pct{font:700 12px/1 var(--mono);width:34px;text-align:right}
.progress-button{width:100%;margin-top:11px}
.lane{position:relative;height:67px;border:1px dashed #aca18d;background:radial-gradient(#c8bba5 .8px,transparent .8px) 0 0/9px 9px,#f5efe3}
.dodge{position:absolute;left:50%;top:9px;transform:translateX(-50%);min-width:108px;background:var(--pink);transition:left .22s ease,transform .22s ease;white-space:nowrap}
.lane[data-position="end"] .dodge{left:calc(100% - 8px);transform:translateX(-100%)}
.lane[data-position="start"] .dodge{left:8px;transform:none}
.status{display:block;margin-top:7px;min-height:14px;font:700 10px/1.4 var(--mono);color:var(--muted)}
.cookie-stack{position:relative}
.cookie-row{min-height:60px;background:#f1eada;border:1px solid var(--ink);display:flex;align-items:center;gap:9px;padding:5px 7px}
.cookie-stack[data-stage="1"] .cookie-row{background:var(--pink)}
.cookie-stack[data-stage="2"] .cookie-row,.cookie-stack[data-stage="3"] .cookie-row{background:var(--lime)}
.cookie-icon{width:22px;height:23px;flex:none;border:1px solid #583a2c;border-radius:50%;transform:rotate(-15deg);background:radial-gradient(circle at 32% 32%,#59392a 0 1px,transparent 2px),radial-gradient(circle at 65% 65%,#59392a 0 1px,transparent 2px),radial-gradient(circle at 65% 28%,#59392a 0 1px,transparent 2px),radial-gradient(circle at 32% 72%,#59392a 0 1px,transparent 2px),#dfab72}
.cookie-copy{flex:1;min-width:0;font-size:12px;font-weight:800;line-height:1.15}
.close{min-width:59px;background:var(--white);padding-inline:9px}
.cookie-stack[data-stage="1"]{box-shadow:3px 3px 0 var(--white),4px 4px 0 var(--ink)}
.cookie-stack[data-stage="2"]{box-shadow:3px 3px 0 var(--white),4px 4px 0 var(--ink),6px 6px 0 var(--pink),7px 7px 0 var(--ink)}
.finish-bar{margin-top:25px;padding:12px 14px 12px 17px;border:1px solid var(--ink);background:var(--lime);display:flex;align-items:center;justify-content:space-between;gap:16px}
.finish-text{display:flex;align-items:center;gap:11px}
.finish-icon{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--ink);border-radius:50%;font:italic bold 20px/1 Georgia,serif;flex:none;transform:rotate(-9deg)}
.finish-text strong{display:block;font-size:14px;margin-bottom:3px}
.finish-text small{display:block;font:700 10px/1.4 var(--mono)}
.finish-button{background:var(--ink);color:var(--white);box-shadow:2px 2px 0 #778145;flex:none;min-width:145px}
.finish-button span{margin-left:11px}
.footer{border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:10px;color:var(--muted);margin-top:23px;padding:14px 0 20px}
.receipt{max-width:690px;text-align:center;margin:65px auto 50px;background:var(--white);border:1px solid var(--ink);box-shadow:6px 6px 0 var(--ink);padding:36px 28px 39px;position:relative}
.receipt h1{font-size:clamp(44px,8vw,84px);line-height:.94}
.receipt p:not(.receipt-label){color:var(--muted);line-height:1.5;margin:22px auto;max-width:370px}
.receipt-label{color:var(--red);margin:0 0 21px}
.receipt-seal{display:inline-grid;place-items:center;background:var(--lime);border:1px solid var(--ink);width:71px;height:71px;border-radius:50%;font-size:35px;transform:rotate(-12deg);margin-bottom:20px;box-shadow:3px 3px 0 var(--ink)}
@media(max-width:950px){.hero{grid-template-columns:minmax(0,1fr) 275px;gap:22px}.figure{height:211px}.cursor{left:90px;top:32px}.orbit{inset:33px 47px 30px}.card{padding-inline:12px}.cards{gap:12px}}
@media(max-width:740px){.wrap{width:calc(100% - 36px)}.masthead{min-height:62px}.hero{padding:34px 0 27px;grid-template-columns:minmax(0,1fr) 145px;gap:9px}.figure{height:148px;margin:0}.figure-label,.figure-foot{font-size:8px;left:6px;right:7px}.figure-foot{left:auto;bottom:8px}.stamp{left:6px;bottom:7px;padding:4px;font-size:7px}.cursor{left:44px;top:26px;width:55px;height:83px}.cursor:after{inset:5px}.cursor-shadow{transform:translate(10px,7px) rotate(-13deg)}.orbit{inset:25px 17px 22px}.spark-one{left:19px;top:44px}.spark-two{right:13px;top:33px}.spark-three{right:11px;bottom:31px}.cards{grid-template-columns:1fr;gap:14px}.card{padding:15px;min-height:219px}.footer{font-size:9px}}
@media(max-width:520px){.hero{display:block;position:relative}.hero h1{font-size:clamp(45px,12.4vw,67px)}.figure{position:absolute;right:0;bottom:23px;width:88px;height:86px}.figure-label{font-size:6px;top:6px}.figure-foot,.spark-three,.stamp{display:none}.cursor{left:28px;top:16px;width:34px;height:53px}.cursor:after{inset:3px}.cursor-shadow{transform:translate(6px,4px) rotate(-13deg)}.orbit{inset:13px 9px 9px}.spark-one{left:10px;top:29px;transform:rotate(20deg) scale(.5)}.spark-two{right:5px;top:13px;transform:scale(.45)}.intro{font-size:14px;margin-top:19px;margin-right:103px;min-height:66px}.mast-note{font-size:9px}.brand{font-size:11px;gap:8px}.brand-mark{width:30px;height:30px}.finish-bar{padding:10px;gap:9px}.finish-icon{display:none}.finish-button{min-width:0}.finish-button span{margin-left:4px}.footer{letter-spacing:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
</style>
</head>
<body>
<div class="wrap">
<header class="masthead">
  <div class="brand"><span class="brand-mark" aria-hidden="true">!</span><span>Bureau of Minor<br>Inconveniences</span></div>
  <div class="mast-note"><span class="dot" aria-hidden="true"></span>Difficult by design</div>
</header>
<main id="work">
  <section class="hero" aria-labelledby="title">
    <div>
      <p class="eyebrow">Form 001-B / Patience assessment</p>
      <h1 id="title">This will take<br><em>a second-ish.</em></h1>
      <p class="intro">Complete three unnecessarily fussy tasks to obtain official permission to leave.</p>
    </div>
    <figure class="figure" aria-hidden="true">
      <span class="figure-label">FIG. A / THE CURSOR</span>
      <div class="orbit"></div><div class="spark spark-one"></div><div class="spark spark-two"></div><div class="spark spark-three"></div>
      <div class="cursor cursor-shadow"></div><div class="cursor"></div>
      <span class="stamp">SLIGHTLY OFF</span><span class="figure-foot">NOT TO SCALE</span>
    </figure>
  </section>
  <section aria-labelledby="assessment">
    <div class="section-head"><h2 id="assessment">The assessment</h2><span class="tag" id="count" aria-live="polite">0 / 3 filed</span></div>
    <div class="cards">
      <article class="card" id="progress-card">
        <div class="card-top"><span class="num">01</span><span>Department of delays</span></div>
        <h3>Almost finished</h3>
        <p>Our progress bar has cold feet.</p>
        <div class="control">
          <div class="progress-line">
            <div class="track" id="track" role="progressbar" aria-label="Paperwork progress" aria-valuenow="0"><div class="fill" id="fill"></div></div>
            <span class="pct" id="pct" aria-hidden="true">0%</span>
          </div>
          <button class="button progress-button" id="advance">Start progress</button>
          <span class="status" id="progress-status" aria-live="polite">Estimated time: any second now.</span>
        </div>
      </article>
      <article class="card" id="dodge-card">
        <div class="card-top"><span class="num">02</span><span>Department of avoidance</span></div>
        <h3>Catch the button</h3>
        <p>It has somewhere else to be.</p>
        <div class="control">
          <div class="lane" id="lane"><button class="button dodge" id="dodge">Click me</button></div>
          <span class="status" id="dodge-status" aria-live="polite">Also accepts a firm tap.</span>
        </div>
      </article>
      <article class="card" id="cookie-card">
        <div class="card-top"><span class="num">03</span><span>Department of cookies</span></div>
        <h3>A tiny notice</h3>
        <p>Close it. It takes rejection very personally.</p>
        <div class="control">
          <div class="cookie-stack" id="cookie-stack" data-stage="0">
            <div class="cookie-row">
              <span class="cookie-icon" aria-hidden="true"></span><span class="cookie-copy" id="cookie-copy">A cookie would like a word.</span>
              <button class="button close" id="cookie" aria-label="Close cookie notice">Close</button>
            </div>
          </div>
          <span class="status" id="cookie-status" aria-live="polite">1 imaginary cookie notice.</span>
        </div>
      </article>
    </div>
  </section>
  <div class="finish-bar">
    <div class="finish-text"><div class="finish-icon" aria-hidden="true">i</div><div><strong>Exit paperwork</strong><small id="finish-status" aria-live="polite">File all three tasks to leave.</small></div></div>
    <button class="button finish-button" id="finish">Try to leave <span aria-hidden="true">↗</span></button>
  </div>
</main>
<main id="complete" hidden aria-labelledby="thanks">
  <section class="receipt">
    <p class="receipt-label">Form 001-B / Exit approved</p>
    <div class="receipt-seal" aria-hidden="true">✓</div>
    <h1 id="thanks" tabindex="-1">Thank you for<br><em>your patience.</em></h1>
    <p>All three tasks have been filed. You are officially free to go, effective approximately now.</p>
    <button class="button" id="restart">Start over for some reason</button>
  </section>
</main>
<footer class="footer"><span>Bureau of Minor Inconveniences</span><span>Filed under “Eventually”</span></footer>
</div>
<script>
(() => {
  'use strict';
  const el = id => document.getElementById(id);
  const progress = el('advance');
  const dodge = el('dodge');
  const cookie = el('cookie');
  const finish = el('finish');
  const tasks = [
    {card: el('progress-card'), button: progress, name: 'Almost finished'},
    {card: el('dodge-card'), button: dodge, name: 'Catch the button'},
    {card: el('cookie-card'), button: cookie, name: 'A tiny notice'}
  ];
  let progressStage = 'idle';
  let dodgeAttempts = 0;
  let cookieClosures = 0;
  let progressTimers = [];
  let demoTimers = [];
  let demoActive = location.hash === '#demo';

  function finishedCount() {
    return tasks.filter(task => task.card.dataset.done === 'true').length;
  }

  function fileTask(index) {
    const task = tasks[index];
    task.card.dataset.done = 'true';
    task.card.querySelector('.num').textContent = '✓';
    task.button.disabled = true;
    const count = finishedCount();
    el('count').textContent = count + ' / 3 filed';
    el('finish-status').textContent = count === 3 ? 'All three tasks filed. You may leave.' : 'File all three tasks to leave.';
  }

  function setProgress(value) {
    el('fill').style.width = value + '%';
    el('pct').textContent = value + '%';
    el('track').setAttribute('aria-valuenow', value);
  }

  function afterProgress(delay, action) {
    progressTimers.push(setTimeout(action, delay));
  }

  function advance() {
    if (progressStage === 'idle') {
      progressStage = 'running';
      progress.disabled = true;
      progress.textContent = 'Processing…';
      el('progress-status').textContent = 'Making exemplary progress.';
      setProgress(34);
      afterProgress(480, () => setProgress(78));
      afterProgress(1000, () => setProgress(99));
      afterProgress(1750, () => {
        setProgress(94);
        progressStage = 'retry';
        progress.disabled = false;
        progress.textContent = 'Ask it nicely';
        el('progress-status').textContent = '99% was a little too ambitious.';
      });
    } else if (progressStage === 'retry') {
      progressStage = 'done';
      setProgress(100);
      progress.textContent = 'Progress filed';
      el('progress-status').textContent = 'It responds well to manners.';
      fileTask(0);
    }
  }

  function catchButton() {
    dodgeAttempts++;
    if (dodgeAttempts < 3) {
      el('lane').dataset.position = dodgeAttempts === 1 ? 'end' : 'start';
      dodge.textContent = dodgeAttempts === 1 ? 'Over here' : 'Actually here';
      el('dodge-status').textContent = dodgeAttempts === 1 ? 'It saw you coming.' : 'It’s out of excuses now.';
    } else {
      el('lane').dataset.position = '';
      dodge.textContent = 'Caught!';
      el('dodge-status').textContent = 'The button has agreed to stay.';
      fileTask(1);
    }
  }

  function closeCookie() {
    cookieClosures++;
    const stack = el('cookie-stack');
    stack.dataset.stage = String(cookieClosures);
    if (cookieClosures < 3) {
      el('cookie-copy').textContent = cookieClosures === 1 ? 'A second notice arrived.' : 'The notices brought a friend.';
      el('cookie-status').textContent = (cookieClosures + 1) + ' imaginary cookie notices.';
    } else {
      el('cookie-copy').textContent = 'All notices dismissed.';
      el('cookie-status').textContent = 'The cookies have left the premises.';
      cookie.textContent = 'Closed';
      fileTask(2);
    }
  }

  function leave() {
    if (finishedCount() < 3) {
      const next = tasks.find(task => task.card.dataset.done !== 'true');
      el('finish-status').textContent = 'Still to file: ' + next.name + '.';
      const target = next.button.disabled ? next.card : next.button;
      target.scrollIntoView({block:'nearest'});
      if (target === next.button) target.focus({preventScroll:true});
      return;
    }
    el('work').hidden = true;
    el('complete').hidden = false;
    if (!demoActive) el('thanks').focus();
  }

  function reset() {
    progressTimers.forEach(clearTimeout);
    progressTimers = [];
    progressStage = 'idle';
    dodgeAttempts = 0;
    cookieClosures = 0;
    tasks.forEach((task, index) => {
      task.card.dataset.done = 'false';
      task.card.querySelector('.num').textContent = '0' + (index + 1);
      task.button.disabled = false;
    });
    setProgress(0);
    progress.textContent = 'Start progress';
    el('progress-status').textContent = 'Estimated time: any second now.';
    el('lane').dataset.position = '';
    dodge.textContent = 'Click me';
    el('dodge-status').textContent = 'Also accepts a firm tap.';
    el('cookie-stack').dataset.stage = '0';
    cookie.textContent = 'Close';
    el('cookie-copy').textContent = 'A cookie would like a word.';
    el('cookie-status').textContent = '1 imaginary cookie notice.';
    el('count').textContent = '0 / 3 filed';
    el('finish-status').textContent = 'File all three tasks to leave.';
    el('complete').hidden = true;
    el('work').hidden = false;
  }

  progress.addEventListener('click', advance);
  dodge.addEventListener('click', catchButton);
  cookie.addEventListener('click', closeCookie);
  finish.addEventListener('click', leave);
  el('restart').addEventListener('click', () => {
    reset();
    el('title').setAttribute('tabindex', '-1');
    el('title').focus();
  });

  function demoStep(delay, action, target) {
    demoTimers.push(setTimeout(() => {
      if (!demoActive) return;
      if (target) target.scrollIntoView({block:'nearest'});
      action();
    }, delay));
  }

  function playDemo() {
    demoTimers = [];
    reset();
    window.scrollTo(0, 0);
    demoStep(2000, advance, progress);
    demoStep(5200, advance);
    demoStep(6800, catchButton, dodge);
    demoStep(7800, catchButton);
    demoStep(8800, catchButton);
    demoStep(10400, closeCookie, cookie);
    demoStep(11600, closeCookie);
    demoStep(12900, closeCookie);
    demoStep(15000, leave, finish);
    demoStep(20000, playDemo);
  }

  function stopDemo(event) {
    if (!event.isTrusted || !demoActive) return;
    demoActive = false;
    demoTimers.forEach(clearTimeout);
    demoTimers = [];
  }

  if (demoActive) {
    document.addEventListener('pointerdown', stopDemo, {capture:true, passive:true});
    document.addEventListener('touchstart', stopDemo, {capture:true, passive:true});
    document.addEventListener('keydown', stopDemo, {capture:true});
    playDemo();
  }
})();
</script>
</body>
</html>