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.)11.1 KB · 21 lines · no libraries
Download
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>The Inconvenience Department</title><style>
:root{--ink:#26232b;--paper:#fffdf4;--mint:#bdedce;--purple:#c6b7ee;--yellow:#f7df85}*{box-sizing:border-box}body{margin:0;color:var(--ink);background-color:#e6def7;background-image:radial-gradient(#a79bb9 .8px,transparent .9px);background-size:9px 9px;font-family:Arial,Helvetica,sans-serif}header{background:var(--paper);border-bottom:2px solid;min-height:66px;padding:10px max(5vw,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:18px;font-weight:900;letter-spacing:-.8px;display:flex;gap:11px;align-items:center}.brand svg{width:37px;height:37px}.online,.mono,.label,.ticket,.bottom,footer{font: bold 11px/1.45 'Courier New',monospace;letter-spacing:1px;text-transform:uppercase}.online{white-space:nowrap;border:1.5px solid;border-radius:20px;padding:6px 12px;background:#e4f3db}.online:before{content:'';display:inline-block;background:#548455;border:1px solid;width:7px;height:7px;border-radius:50%;margin-right:7px}main{max-width:1040px;margin:auto;padding:40px 24px 20px}.ticket{display:flex;justify-content:space-between;align-items:center;margin:0 5px 14px}.sheet{background:var(--paper);border:2px solid;box-shadow:7px 7px var(--ink);position:relative}.strip{padding:12px 24px;background:var(--mint);border-bottom:2px solid;display:flex;justify-content:space-between;align-items:center}.holes{display:flex;gap:7px}.holes i{border:1.5px solid;width:9px;height:9px;border-radius:50%;background:var(--paper)}.hero{display:grid;grid-template-columns:1.13fr 1fr;align-items:center;padding:35px 39px 28px;gap:10px}.label{display:inline-block;background:var(--yellow);border:1.5px solid;padding:4px 9px;transform:rotate(-2deg)}h1{font-size:clamp(58px,6.5vw,90px);line-height:.91;letter-spacing:-.081em;margin:20px 0 16px;font-weight:950}h1 em{font-family:Georgia,serif;font-weight:bold;letter-spacing:-.08em}.desc{font-size:16px;line-height:1.45;max-width:365px;margin:0}.art{width:100%;max-height:270px;overflow:visible}.task{margin:0 30px 26px;border:2px solid;border-radius:7px;background:#f1ecfb;overflow:hidden}.taskhead{display:flex;justify-content:space-between;align-items:center;padding:9px 18px;border-bottom:1.5px dashed #aaa1b2}.steps{display:flex;gap:5px}.steps i{width:24px;height:7px;border:1px solid;background:var(--paper);transform:skew(-10deg)}.steps i.active{background:var(--ink)}.taskbody{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}h2{font-size:24px;letter-spacing:-1px;margin:0 0 5px}.hint{font-size:14px;line-height:1.4;margin:0}button{background:var(--mint);color:var(--ink);border:2px solid;border-radius:5px;box-shadow:3px 4px var(--ink);font:800 16px Arial;padding:14px 18px;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #7053a2;outline-offset:4px}button:active{box-shadow:1px 1px var(--ink)}#act{white-space:nowrap;transition:transform .24s;min-width:158px}.bottom{border-top:2px solid;padding:11px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.barcode{width:87px;height:19px;background:repeating-linear-gradient(90deg,var(--ink) 0 2px,transparent 2px 4px,var(--ink) 4px 5px,transparent 5px 8px,var(--ink) 8px 12px,transparent 12px 15px)}footer{display:flex;justify-content:space-between;padding:20px 4px;color:#595064}.extras{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:0 18px 14px}.extras:empty{display:none}.extras button{padding:10px;min-height:44px;font-size:14px;background:var(--yellow);transform:rotate(-2deg)}.meter{height:16px;border:2px solid;background:white;flex:1}.meter i{display:block;height:100%;background:repeating-linear-gradient(120deg,var(--mint) 0 7px,#98ceaa 7px 12px);transition:width .3s}.art text{font-family:'Courier New',monospace;font-weight:bold;fill:var(--ink)}@media(max-width:690px){header{padding:10px 16px;min-height:56px}.brand{font-size:15px;gap:6px}.brand svg{width:29px}.online{font-size:9px;padding:5px 7px}main{padding:20px 13px}.hero{grid-template-columns:1fr .75fr;padding:24px 16px;gap:0}.art{width:115%;margin-left:-10%}h1{font-size:clamp(42px,9vw,60px)}.desc{font-size:14px}.task{margin:0 12px 17px}.taskbody{align-items:flex-start;flex-direction:column}.ticket,.bottom,footer,.mono,.label{font-size:10px}.strip,.bottom{padding:9px 14px}.ticket{margin-bottom:9px}.taskbody{padding:14px 16px}h2{font-size:21px}footer{letter-spacing:.1px}.label{font-size:9px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
</style></head><body><header><div class="brand"><svg viewBox="0 0 40 40" aria-hidden="true"><rect x="2" y="2" width="36" height="36" rx="8" fill="#bfaddf" stroke="#26232b" stroke-width="2"/><path d="m9 15 11-5 11 5-11 5zM9 20l11 5 11-5M9 25l11 5 11-5" stroke="#26232b" stroke-width="2.5" fill="none"/></svg>Inconvenience Dept.</div><span class="online">System-ish online</span></header>
<main><div class="ticket"><span>Service desk / Patience testing</span><span>Form ID–404</span></div><section class="sheet"><div class="strip mono"><span>✳ &nbsp; Department of minor delays</span><span class="holes" aria-hidden="true"><i></i><i></i><i></i></span></div><div class="hero"><div><span class="label" id="tag">Official waiting area</span><h1 id="heading">Please bear<br><em>with us.</em></h1><p class="desc" id="intro">A small administrative exercise in getting absolutely nowhere. Temporarily.</p></div>
<svg class="art" viewBox="0 0 370 260" role="img" aria-label="A crooked purple receipt printer issuing a ticket with an unimpressed face"><defs><pattern id="dots" width="5" height="5" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r=".8" fill="#655d72"/></pattern></defs><ellipse cx="192" cy="225" rx="134" ry="16" fill="url(#dots)"/><g stroke="#29242e" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"><path d="m59 78 4 10 10 4-10 4-4 11-4-11-10-4 10-4z" fill="#f7df85"/><g transform="rotate(5 180 150)"><path d="m84 140 24-41 144-4 31 43-2 68-28 14-165-12z" fill="#9786b5"/><path d="m84 140 25-44 146 1 28 41-30 14z" fill="#d6c6ec"/><path d="m84 139 169 11 1 69-167-11z" fill="#b4a1d0"/><path d="m111 114 126 4 6 8-136-5z" fill="#37303e"/><path d="M123 117q11-36-3-76l10 4 8-5 9 5 9-5 10 5 10-5 9 5 10-5 10 5 10-5q20 45 3 80z" fill="#fffdf4"/><path d="m139 58 56 1m-55 7 43 1" stroke-width="1.8"/><path d="m151 81 8-2m22 1 8 2m-34 3v4m29-3v4m-23 12q8-5 17 0" fill="none"/><path d="m102 164 112 6 1 13-113-7z" fill="#392f42"/><path d="m109 175 89 5q0 32-14 45l-8-5-7 4-9-5-8 4-8-5-10 4-8-4-10 4-14-4q13-19 7-43z" fill="#f8e8a0"/><text x="121" y="201" font-size="14" stroke="none">NO. 099</text><circle cx="234" cy="165" r="5" fill="#c6f2cd"/><path d="m265 159 8-4m-8 12 8-4m-8 12 8-4" stroke-width="2"/></g><g transform="rotate(10 287 70)"><path d="m287 30 8 10 12-4 3 13 13 2-4 13 9 9-11 8 1 13-14 1-6 12-11-7-12 7-5-12-14-2 2-13-11-8 9-9-3-13 13-2 4-13 12 5z" fill="#f7df85"/><text x="287" y="67" font-size="12" stroke="none" text-anchor="middle">ALMOST</text><text x="287" y="81" font-size="12" stroke="none" text-anchor="middle">READY</text></g><path d="m308 163 9-6m-7 14 13-1" fill="none"/></g></svg></div>
<div class="task"><div class="taskhead mono"><span id="count"></span><span class="steps"><i></i><i></i><i></i><i></i></span></div><div class="taskbody"><div aria-live="polite"><h2 id="title"></h2><p class="hint" id="hint"></p></div><button id="act"></button></div><div class="extras" id="extras"></div></div><div class="bottom"><span>Filed under: mild inconvenience</span><span class="barcode"></span></div></section><footer><span>Inconvenience Dept. © Eventually</span><span>Desk 01 / 01</span></footer></main>
<script>
const el=id=>document.getElementById(id),btn=el('act'),extra=el('extras');
const tasks=[['Catch the button.','It gets nervous around commitment.','Begin test'],['Wait for approval.','Your patience is currently being processed.','Process form'],['A cookie for your trouble.','Please dismiss the entirely fictional cookie notice.','Dismiss cookie'],['Close this case.','Just one last piece of paperwork.','Close case'],['Patience certified.','Your place in absolutely nowhere is guaranteed.','Start again']];
let stage=0,tries=0,timer,progress=0,running=false,demo=location.href.endsWith('#demo'),cycle;
function draw(){const t=tasks[stage];el('title').textContent=t[0];el('hint').textContent=t[1];btn.textContent=t[2]+'  →';btn.style.transform='';el('count').textContent=stage===4?'Receipt issued':'Patience test  /  0'+(stage+1)+' of 04';document.querySelectorAll('.steps i').forEach((e,i)=>e.classList.toggle('active',i<=stage));extra.replaceChildren();el('heading').innerHTML=stage===4?'Thank <em>you.</em>':'Please bear<br><em>with us.</em>';el('intro').textContent=stage===4?'Thank you for your patience. We have stamped it, filed it, and slightly misaligned it.':'A small administrative exercise in getting absolutely nowhere. Temporarily.';el('tag').textContent=stage===4?'Certificate of patience':'Official waiting area'}
function next(){clearInterval(timer);running=false;stage=(stage+1)%5;tries=0;progress=0;draw()}
function duplicate(name){const b=document.createElement('button');b.textContent=name;b.onclick=action;extra.append(b)}
function processForm(){if(running)return;running=true;btn.textContent='Processing…';extra.innerHTML='<div class="meter"><i style="width:0%"></i></div><span class="mono">0%</span>';const values=[26,58,86,99,99,63,72,91,100];let n=0;timer=setInterval(()=>{let p=values[n++];extra.firstChild.firstChild.style.width=p+'%';extra.lastChild.textContent=p+'%';if(n===6)el('hint').textContent='We had to double-check the first 63%.';if(p===100){clearInterval(timer);running=false;progress=100;btn.textContent='Continue  →';el('hint').textContent='Approved. Eventually.'}},300)}
function dodge(){tries++;btn.style.transform=tries===1?'translateX(-9px) rotate(3deg)':'translateX(9px) rotate(-2deg)';btn.textContent=tries===1?'Over here  ↗':'Okay, fine  →';el('hint').textContent=tries===1?'It has requested a change of address.':'The button has exhausted its travel budget.'}
function action(){if(stage===0 && tries<2){dodge();return}if(stage===1 && progress<100){processForm();return}if(stage===2 && !tries++){duplicate('🍪 Cookie notice #2  ×');duplicate('🍪 Cookie notice #3  ×');btn.textContent='Dismiss all  →';el('hint').textContent='Your dismissal has been issued two receipts.';return}if(stage===3 && !tries++){duplicate('Close the Close button  ×');btn.textContent='Actually close  →';el('hint').textContent='Closing created a new vacancy for a Close button.';return}next()}
btn.onclick=action;btn.addEventListener('pointerenter',e=>{if(!demo&&stage===0&&tries===0&&e.pointerType==='mouse')dodge()});draw();
function stopDemo(){demo=false;clearInterval(cycle)}
if(demo){const moments=[1300,2450,3550,4700,8500,9900,12400,13700,16100,20000];let start=performance.now(),index=0;cycle=setInterval(()=>{if(performance.now()-start>=moments[index]){action();if(++index===moments.length){index=0;start=performance.now()}}},80);['pointerdown','touchstart','keydown'].forEach(evt=>window.addEventListener(evt,stopDemo,{once:true,capture:true,passive:true}))}
</script></body></html>