Skip to content
VibeCodeBench
Back to the app

The code

The Most Uncomfortable Web Page by GPT-6.2 Astra

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.)19.7 KB · 83 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="#f5f2e8">
<title>Patience Tester — Friction Works</title>
<style>
:root{--ink:#292b23;--paper:#f6f3e9;--red:#ed6445;--cream:#f5edda;--lcd:#bed394;--green:#384d36;--yellow:#ffd36b;--mono:"Courier New",monospace;--sans:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:var(--sans);background-color:var(--paper);background-image:linear-gradient(#7976650b 1px,transparent 1px),linear-gradient(90deg,#7976650b 1px,transparent 1px);background-size:19px 19px}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px dashed #245e8a;outline-offset:4px}button:active{filter:brightness(.95)}button[hidden],[hidden]{display:none!important}
.top{border-bottom:1.5px solid var(--ink);background:var(--paper)}.topin,.wrap{max-width:1096px;margin:auto;padding-left:32px;padding-right:32px}.topin{height:62px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;font-weight:850;font-size:19px;letter-spacing:-1.1px}.logomark{width:31px;height:31px;display:block}.manual{position:relative;font:700 12px var(--mono)}.manual summary{cursor:pointer;list-style:none;min-height:44px;display:flex;gap:9px;align-items:center}.manual summary::-webkit-details-marker{display:none}.help{border:1.5px solid;border-radius:50%;width:17px;height:17px;text-align:center;line-height:15px}.manual aside{position:absolute;right:0;top:44px;width:min(300px,85vw);background:#fff6d8;padding:18px;border:1.5px solid;box-shadow:4px 4px 0 var(--ink);z-index:8;line-height:1.55}.manual aside p{margin:6px 0 0;font:14px/1.5 var(--sans)}
.intro{position:relative;margin:39px 0 26px}.micro,.tag,.plate-title,.screen-top,.scale,.bottom,.machine-label,.lamp,.channel,.stamp,.finish-label{font:700 11px/1.25 var(--mono);letter-spacing:1.2px;text-transform:uppercase}.eyebrow{display:flex;align-items:center;gap:8px}.eyebrow:before{content:"";width:21px;height:8px;background:repeating-linear-gradient(120deg,var(--red) 0 3px,transparent 3px 5px)}h1{font-size:clamp(46px,6.7vw,85px);line-height:.99;letter-spacing:-.077em;margin:10px 0 12px;font-weight:900}.period{color:#dd5139}.intro p{margin:0;font-size:16px;line-height:1.5}.stamp{position:absolute;right:8px;top:27px;transform:rotate(6deg);color:#a54c37;border:2px solid;border-radius:5px;padding:6px 9px;text-align:center;font-size:9px;letter-spacing:1.4px}.stamp b{display:block;margin-top:3px;border-top:1px solid;padding-top:4px;font-size:17px;letter-spacing:.8px}
.machine{position:relative;border:2px solid var(--ink);border-radius:23px 23px 18px 18px;padding:14px 24px 24px;background:var(--red);box-shadow:inset 0 3px 0 #ffb198,inset -4px 0 0 #c85238,inset 4px 0 0 #ff8465,0 7px 0 #b24c36,0 9px 0 var(--ink),0 15px 14px -11px #38332470}.machine:after,.machine:before{content:"";position:absolute;bottom:-14px;width:44px;height:5px;background:var(--ink);border-radius:0 0 3px 3px}.machine:before{left:33px}.machine:after{right:33px}.rail{display:flex;align-items:center;gap:12px;height:22px;margin-bottom:12px;padding:0 2px}.machine-label{font-size:10px}.vents{margin-left:auto;width:56px;height:9px;background:repeating-linear-gradient(100deg,transparent 0 3px,#7e3e2f 3px 6px,transparent 6px 8px);transform:skewX(-6deg)}.screw{width:11px;height:11px;border:1px solid #874931;border-radius:50%;background:#e8926c;display:inline-grid;place-items:center;box-shadow:0 1px 0 #ffb092}.screw:before{content:"";width:6px;height:1.5px;background:#79422f;transform:rotate(-35deg)}.modules{display:grid;grid-template-columns:minmax(0,1.56fr) minmax(290px,1fr);gap:17px}.plate{border:2px solid var(--ink);border-radius:11px;background:var(--cream);box-shadow:0 3px 0 #993f2d,inset 0 2px 0 #fff9e8;padding:17px}.platehead{display:flex;gap:7px;justify-content:space-between;align-items:center;margin:0 1px 13px}.plate-title{font-size:12px;letter-spacing:1.5px;margin:0}.lamp{display:flex;gap:6px;align-items:center;font-size:9px}.lamp i{width:8px;height:8px;background:#759b50;border:1px solid var(--ink);border-radius:50%;box-shadow:inset 0 1px 0 #d8edbc}.screen{position:relative;color:var(--green);border:6px solid #3c4034;border-radius:8px;background-color:var(--lcd);background-image:repeating-linear-gradient(0deg,transparent 0 3px,#3e5f3c0b 3px 4px);box-shadow:inset 2px 3px 0 #8fa878,0 1px 0 white;padding:13px 16px 14px;overflow:hidden}.screen-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px dashed #6c845e;padding-bottom:9px;font-size:9px;letter-spacing:1px}.sig{display:inline-flex;align-items:flex-end;gap:2px;height:10px}.sig i{width:3px;background:var(--green)}.sig i:nth-child(1){height:3px}.sig i:nth-child(2){height:5px}.sig i:nth-child(3){height:7px}.sig i:nth-child(4){height:10px}.readout{display:flex;align-items:center;justify-content:space-evenly;gap:8px;min-height:150px}.character{width:40%;height:142px;overflow:visible}.face{animation:bob 3.5s ease-in-out infinite;transform-origin:center}.digital{width:51%;max-width:197px}.digital svg{width:100%;display:block;height:auto}.digital p{font:700 clamp(10px,1.4vw,15px) var(--mono);margin:10px 0 0;letter-spacing:-.6px}.meter{height:18px;border:2px solid var(--green);padding:2px;display:flex;gap:2px}.meter i{background:var(--green);flex:1}.meter i.off{opacity:.13}.scale{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;margin-top:5px}.readfoot{display:flex;gap:9px;align-items:baseline;font:12px/1.45 var(--mono);margin:11px 1px 0;min-height:18px}.tag{font-size:9px;background:var(--ink);color:var(--cream);padding:3px 5px;letter-spacing:.8px;white-space:nowrap}.controls{display:flex;flex-direction:column}.controls .platehead{border-bottom:1px solid #b6ac97;padding-bottom:12px;margin-bottom:0}.channel{font-size:10px;color:#6d675a}.control-row{position:relative;display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:center;flex:1;border-bottom:1px dashed #baaf97;padding:9px 0}.control-row:last-child{border-bottom:0;padding-bottom:0}.num{font:bold 11px var(--mono);color:#746e5d}.key{border:1.7px solid var(--ink);background:#fffbec;border-radius:6px;min-height:44px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;box-shadow:0 3px 0 #77705e;font-size:17px;font-weight:750;letter-spacing:-.6px;text-align:left}.key:active,.finish:active{translate:0 2px;box-shadow:0 1px 0 #39372f}.key span:last-child{font:normal 21px/1 var(--mono)}.dock{min-width:0;position:relative;display:flex;align-items:center;gap:8px}.dodge{width:84%;background:var(--yellow);transition:transform .22s ease;box-shadow:0 3px 0 #9b7e3e}.dodge.shift{transform:translateX(18%) rotate(-1deg)}.closekey,.cook{flex:1}.copy{min-width:53px;justify-content:center;background:#f6d9c5;transform:rotate(3deg)}.cook{background:#e9dfc8;transform:rotate(-.8deg)}.cook .cookleft{display:flex;align-items:center;gap:8px}.cookie-icon{width:23px;height:23px;flex:none}.slips{position:absolute;right:3px;bottom:85%;pointer-events:none;z-index:3}.slip{display:block;position:relative;background:#fff1bd;padding:5px 8px;border:1px solid var(--ink);box-shadow:1px 2px 0 #625a4355;font:700 10px var(--mono);transform:rotate(3deg);margin-bottom:-2px}.slip:nth-child(2){transform:rotate(-3deg)}.session{display:flex;align-items:center;gap:15px;margin-top:30px;padding:14px 0;border-block:1px solid #b1af9e}.logicon{width:33px;height:33px;border:1.5px solid var(--ink);border-radius:5px;display:grid;place-items:center;font:700 15px var(--mono)}.log{flex:1}.log .micro{font-size:9px;letter-spacing:1.4px;color:#656657}.log p{font:13px/1.4 var(--mono);margin:4px 0 0}.finish{background:var(--ink);border:1.5px solid var(--ink);border-radius:6px;color:#fff9e8;min-height:45px;padding:10px 15px;font-weight:bold;font-size:14px;display:flex;gap:20px;align-items:center;justify-content:center}.finish span{font-size:19px}.bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#696b5e;letter-spacing:1.3px;margin:19px 0 25px}.bars{width:61px;height:12px;background:repeating-linear-gradient(90deg,#484a3d 0 2px,transparent 2px 4px,#484a3d 4px 5px,transparent 5px 7px,#484a3d 7px 11px,transparent 11px 13px)}
.receipt{position:relative;text-align:center;background:#fff9e9;border:1.5px solid var(--ink);border-radius:5px;box-shadow:3px 4px 0 #99503b;max-width:660px;margin:0 auto;padding:28px 18px 29px}.receipt h2{font-size:clamp(32px,5vw,58px);letter-spacing:-.065em;line-height:1.02;margin:13px auto 10px;max-width:480px}.receipt p{font:14px/1.55 var(--mono);margin:0 auto 20px}.receipt button{margin:auto}.check{display:grid;place-items:center;margin:0 auto 13px;width:44px;height:44px;border:2px solid;border-radius:50%;background:var(--lcd);font:700 27px var(--mono)}@keyframes bob{50%{transform:translateY(-2px) rotate(1deg)}}
@media(min-width:1400px){.intro{margin-top:50px}.topin,.wrap{max-width:1180px}.readout{min-height:174px}}
@media(max-width:740px){.topin,.wrap{padding-inline:19px}.topin{height:55px}.intro{margin:27px 0 20px}.intro p{font-size:14px;max-width:85%}.stamp{display:none}.modules{grid-template-columns:1fr;gap:13px}.machine{padding:10px 13px 17px;border-radius:17px}.rail{margin-bottom:8px}.plate{padding:13px}.readout{min-height:119px}.character{height:113px}.digital{max-width:146px}.digital p{font-size:12px}.screen{padding:9px 13px 10px}.control-row{padding:8px 0}.session{gap:10px}.logicon{display:none}.log p{font-size:12px}.finish{gap:8px}.bottom{font-size:8px}.machine-label{font-size:9px}.bottom .bars{width:42px}}
@media(max-width:370px){.wrap,.topin{padding-inline:12px}.readfoot{font-size:10px}.machine-label{letter-spacing:.5px}.brand{font-size:17px}.manual{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
</style>
</head>
<body>
<header class="top"><div class="topin"><div class="brand"><svg class="logomark" viewBox="0 0 32 32" aria-hidden="true"><rect x="1" y="1" width="30" height="30" rx="7" fill="#eb6547" stroke="#292b23" stroke-width="2"/><path d="M6 21l5-12h5l-5 12zm8 2 5-14h7l-2 5h-3l-1 3h3l-2 4h-3l-1 2z" fill="#292b23"/></svg>Friction Works</div><details class="manual"><summary><span class="help">?</span> Field manual</summary><aside><b>Operating instructions</b><p>Try the three controls in any order. Each has a small design flaw. Choose <b>Finish test</b> whenever you have had quite enough.</p></aside></details></div></header>
<main class="wrap">
<section class="intro"><div class="eyebrow micro">Human factors lab &nbsp;/&nbsp; Exp. 004</div><h1>Patience Tester<span class="period">.</span></h1><p>A little machine engineered to get on your nerves.</p><div class="stamp">Factory calibrated<b>±1 PIXEL</b></div></section>
<section class="machine" aria-label="Patience testing machine">
<div class="rail"><i class="screw"></i><b class="machine-label">PT–01 &nbsp;/&nbsp; Desktop test unit</b><span class="vents"></span><i class="screw"></i></div>
<div class="modules" id="modules">
<section class="plate"><div class="platehead"><h2 class="plate-title">Patience monitor</h2><span class="lamp"><i></i> Live</span></div>
<div class="screen"><div class="screen-top"><span>SYS_01 &nbsp;·&nbsp; WAIT ENGINE</span><span class="sig" aria-hidden="true"><i></i><i></i><i></i><i></i></span></div>
<div class="readout">
<svg class="character" viewBox="0 0 112 100" role="img" aria-label="A pixel-art hourglass with tired eyes and tiny boots" shape-rendering="crispEdges">
<g fill="#7c985e"><path d="M2 30h3v3H2zm87 28h3v3h-3zM13 76h2v2h-2zm88-49h2v2h-2zM7 52h2v2H7zm80 33h2v2h-2z"/><path d="M85 18h3v3h3v2h-3v3h-3v-3h-3v-2h3z"/></g>
<path fill="#91aa76" d="M24 88h53v2h5v3H16v-3h8z"/>
<g class="face"><path fill="#354832" d="M38 74h5v13h-4v3H27v-5h9v-3h2zm19 0h5v9h3v2h9v5H61v-3h-4z"/>
<path fill="#354832" d="M24 9h46v3h4v7h-4v9h-3v8h-5v5h-6v5h6v4h5v6h3v11h4v9h-4v3H24v-3h-4v-9h4V56h3v-6h5v-4h6v-5h-6v-5h-5v-8h-3v-9h-4v-7h4z"/>
<path fill="#d5e3ac" d="M29 20h36v8h-3v6h-5v5h-6v9h6v5h5v5h3v9H29v-9h3v-5h5v-5h6v-9h-6v-5h-5v-6h-3z"/>
<path fill="#92ab6a" d="M32 25h30v6h-4v4h-6v5h-8v-5h-7v-4h-5zm11 28h5v4h5v3h6v3h5v4H30v-4h5v-4h5v-3h3z"/><path fill="#56724a" d="M46 42h3v4h-3zm0 6h2v3h-2zm-9 14h3v2h-3zm17 1h2v2h-2z"/><path fill="#7d985d" d="M24 13h46v3H24zm0 58h46v3H24z"/>
<g fill="#354832"><path d="M34 25h9v2h-3v5h-4v-5h-2zm17 0h9v2h-3v5h-4v-5h-2zm-7 9h7v2h-7zM28 40h4v4h-7v3h-6v-3h-3v-6h4v4h4v-2zm33 2h7v3h5v-6h4v7h-3v4h-8v-4h-5z"/></g><path fill="#e0ebbb" d="M27 13h12v2H27zm4 9h3v3h-3z"/></g></svg>
<div class="digital"><svg id="digits" viewBox="0 0 20 7" role="img" aria-label="99 percent" shape-rendering="crispEdges"></svg><p id="mood">Almost there.</p></div>
</div>
<div class="meter" id="meter" aria-hidden="true"></div><div class="scale"><span>0%</span><span>COMPLETION</span><span>100%</span></div></div>
<div class="readfoot"><span class="tag">Status</span><span id="status">Finalizing the final bit…</span></div>
</section>
<section class="plate controls"><div class="platehead"><h2 class="plate-title">Manual controls</h2><span class="channel" id="count">0/3</span></div>
<div class="control-row"><span class="num">01</span><div class="dock"><button class="key dodge" id="dodge">Press me <span aria-hidden="true">↗</span></button></div></div>
<div class="control-row"><span class="num">02</span><div class="dock"><button class="key closekey" id="close">Close <span aria-hidden="true">×</span></button><button class="key copy" id="copy" aria-label="Close the extra Close button" hidden>×</button></div></div>
<div class="control-row"><span class="num">03</span><div class="dock"><div class="slips" id="slips"></div><button class="key cook" id="cookie"><span class="cookleft"><svg class="cookie-icon" viewBox="0 0 26 26" aria-hidden="true"><path d="M23 12c-5 1-8-2-7-6-3 1-5-1-5-3C4 4 1 10 3 17c3 8 14 9 19 2 1-2 2-5 1-7z" fill="#dca65e" stroke="#342f25" stroke-width="1.7"/><path d="M7 10h3v3H7zm6 6h3v3h-3zm-6 0h2v2H7zm10-4h2v2h-2z" fill="#543d26"/></svg>Accept cookie</span><span aria-hidden="true">+</span></button></div></div>
</section></div>
<section id="receipt" class="receipt" hidden><div class="check" aria-hidden="true">✓</div><div class="micro">PT–01 &nbsp;/&nbsp; Test complete</div><h2 tabindex="-1" id="thanks">Thanks for your patience.</h2><p id="recap"></p><button class="finish" id="restart">Run it again <span>↻</span></button></section>
</section>
<div class="session"><div class="logicon" aria-hidden="true">&gt;_</div><div class="log"><div class="micro">Operator log</div><p id="log" aria-live="polite">Machine ready. Try a control.</p></div><button class="finish" id="finish">Finish test <span aria-hidden="true">→</span></button></div>
<footer class="bottom"><span>Friction Works &nbsp;/&nbsp; Instrument division</span><span class="bars" aria-hidden="true"></span></footer>
</main>
<script>
(()=>{
"use strict";
const el=id=>document.getElementById(id), ns="http://www.w3.org/2000/svg";
const font={"0":["11111","10001","10001","10001","10001","10001","11111"],"1":["00100","01100","00100","00100","00100","00100","01110"],"2":["11111","00001","00001","11111","10000","10000","11111"],"3":["11111","00001","00001","01111","00001","00001","11111"],"4":["10001","10001","10001","11111","00001","00001","00001"],"5":["11111","10000","10000","11111","00001","00001","11111"],"6":["11111","10000","10000","11111","10001","10001","11111"],"7":["11111","00001","00010","00100","00100","00100","00100"],"8":["11111","10001","10001","11111","10001","10001","11111"],"9":["11111","10001","10001","11111","00001","00001","11111"],"%":["11001","11010","00010","00100","01000","01011","10011"]};
const segments=Array.from({length:36},()=>el("meter").appendChild(document.createElement("i")));
const used=new Set();let pct=99,phase=0,dodges=0,closings=0,cookies=0,done=false,demonstrating=false,elapsed=0,lastDodge=-1000;
function display(n){pct=n;const digits=el("digits");digits.replaceChildren();digits.setAttribute("aria-label",n+" percent");[...String(n)+"%"].forEach((c,k)=>font[c].forEach((row,y)=>[...row].forEach((v,x)=>{if(v==="0")return;const r=document.createElementNS(ns,"rect");for(const [a,b] of Object.entries({x:k*7+x,y,width:.95,height:.95,fill:"#384d36"}))r.setAttribute(a,b);digits.appendChild(r)})));segments.forEach((s,i)=>s.classList.toggle("off",i>=Math.floor(n*segments.length/100)))}
function mark(id,msg){used.add(id);el("count").textContent=used.size+"/3";el("log").textContent=msg}
function dodge(){if(done||dodges>=2)return false;dodges++;lastDodge=performance.now();el("dodge").classList.toggle("shift");el("log").textContent=dodges===1?"Button has requested personal space.":"Button relocation budget exhausted.";return true}
el("dodge").addEventListener("pointerenter",e=>{if(e.pointerType==="mouse"&&!used.has("press")&&performance.now()-lastDodge>500)dodge()});
el("dodge").addEventListener("pointerdown",e=>{if(e.pointerType!=="mouse")dodge()});
function press(){if(done)return;mark("press","Press registered. Eventually.");el("dodge").innerHTML='Pressed <span aria-hidden="true">✓</span>';dodges=2}
el("dodge").addEventListener("click",e=>{if(e.detail&&performance.now()-lastDodge<300)return;press()});
function closeOne(){closings++;el("copy").hidden=false;el("copy").textContent=closings%2?"×":"ײ";mark("close",closings===1?"Closed one Close. Opened another.":"The Close department has made a duplicate.")}
el("close").addEventListener("click",closeOne);el("copy").addEventListener("click",()=>{el("copy").hidden=true;mark("close","Extra Close closed. The original is supervising.")});
function cookie(){cookies++;const slips=el("slips");if(slips.children.length>=3)slips.firstElementChild.remove();const slip=document.createElement("span");slip.className="slip";slip.textContent=["Cookie receipt #","Receipt for receipt #","Consent to crumbs #"][(cookies-1)%3]+String(cookies).padStart(2,"0");slips.appendChild(slip);mark("cookie",cookies===1?"Cookie accepted. Receipt requires a cookie.":"Cookie paperwork is multiplying.")}
el("cookie").addEventListener("click",cookie);
function finish(){done=true;el("modules").hidden=true;el("receipt").hidden=false;el("finish").hidden=true;el("recap").textContent="Controls tried: "+used.size+"/3. Patience officially certified.";el("log").textContent="Session closed. Yes, really.";if(!demonstrating)el("thanks").focus({preventScroll:true})}
function reset(){done=false;phase=0;dodges=closings=cookies=0;lastDodge=-1000;used.clear();el("count").textContent="0/3";el("copy").hidden=true;el("slips").replaceChildren();el("dodge").classList.remove("shift");el("dodge").innerHTML='Press me <span aria-hidden="true">↗</span>';el("modules").hidden=false;el("receipt").hidden=true;el("finish").hidden=false;el("mood").textContent="Almost there.";el("status").textContent="Finalizing the final bit…";el("log").textContent="Machine ready. Try a control.";display(99)}
el("finish").addEventListener("click",finish);el("restart").addEventListener("click",()=>{reset();el("dodge").focus({preventScroll:true})});
function tick(){if(done)return;phase++;if(phase<5)return;if(phase===5){display(93);el("mood").textContent="One moment.";el("status").textContent="Reconsidering the last 6%…"}else if(pct<99){display(pct+1);if(pct===99){el("mood").textContent="Almost there.";el("status").textContent="Finalizing the final bit…";phase=0}}}
function stopDemo(){demonstrating=false}
function checkDemo(){demonstrating=location.href.endsWith("#demo");elapsed=0;if(demonstrating)reset()}
for(const e of ["pointerdown","touchstart","keydown"])window.addEventListener(e,stopDemo,{capture:true,passive:true});
display(99);checkDemo();window.addEventListener("hashchange",checkDemo);setInterval(()=>{tick();if(!demonstrating)return;elapsed++;switch(elapsed){case 2:case 4:dodge();break;case 6:press();break;case 8:closeOne();break;case 10:case 12:case 13:cookie();break;case 15:finish();break;case 20:reset();elapsed=0;break}},1000);
})();
</script>
</body>
</html>