Models 44

GPT-5 Nano

by OpenAIReasoningClean
Open in new window

Running live in a sandboxed frame. Click inside it before using the keyboard.

How it went

Total time
29.6 s
Cost
$0.0018
Output tokens
4,385
Spent thinking
0 tokens
Speed
152.4 tok/s
Console errors
0
First token after
866 ms
First visible text after
866 ms
Prompt tokens
360
Code size
14.0 KB
Finish reason
stop
Served by
OpenAI
Model id
openai/gpt-5-nano
Reasoning sent
{"effort":"minimal"}
Max output
128,000 tokens
Generated
Nov 12, 2026

What it was asked

The prompt
“i'm opening a korean taco food truck called "Kimchi Loco", make me a website that makes people really want to come”
System prompt, sent with every prompt
You are generating a self-contained web demo. It will be rendered automatically in a sandboxed iframe and compared side by side with the output of other AI models given the exact same task.

Output rules:
- Reply with exactly ONE fenced code block containing the complete file: ```html (or ```svg when the task asks for an SVG). No text before or after the code block.
- Everything must be inline: CSS in <style>, JavaScript in <script>. No external files, images, fonts or network requests, except the CDN URLs explicitly allowed by the task.
- Do not use localStorage, sessionStorage, cookies, IndexedDB, alert(), confirm(), prompt() or window.open(): they are blocked in the sandbox and will throw.
- The page must look right in a 1280×800 viewport and adapt gracefully down to 375px wide. No horizontal scrollbar.
- Something meaningful must be visible on first paint: a screenshot is taken automatically about 3 seconds after load, without any interaction.
- Everything that makes the demo interesting must be visible within the first seconds: nothing hidden behind a high score, a later level or a long play session.
- Games must start in a self-playing demo mode (a simple AI plays) behind a "Click or press a key to start" message, so the game can be judged in action without playing.
- The iframe only receives keyboard events after the user clicks it: if the demo uses the keyboard, display a clear "Click or press a key to start" message.
- The code must run with zero errors in the console of the latest Chrome.

Code run-1.html · 378 lines

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Kimchi Loco – Korean Taco Food Truck</title>
  <style>
    :root{
      --bg: #0f0f12;
      --card: #171923;
      --accent: #ff4d6d;
      --accent2: #ffd13a;
      --text: #f5f7fa;
      --muted: #cbd5e1;
      --green: #35d07f;
    }
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
      background: radial-gradient(circle at 20% -10%, rgba(255, 77, 109, 0.15), transparent 40%),
                  radial-gradient(circle at 90% 0%, rgba(53, 208, 127, 0.15), transparent 40%),
                  linear-gradient(#0b0b10, #0b0b10 60%, #0a0a0f);
      color: var(--text);
      overflow-x: hidden;
    }
    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 28px 20px 60px;
    }
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0 24px;
      border-bottom: 1px solid rgba(255,255,255,.07);
      position: sticky;
      top: 0;
      backdrop-filter: saturate(1.2) blur(2px);
      background: rgba(10,10,15,.75);
      z-index: 10;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .logo {
      width: 44px; height: 44px; border-radius: 10px;
      background: conic-gradient(from 200deg at 60% 40%, #ff5c8a, #ffd043 40%, #6cf3a2 70%, #ff5c8a);
      display: grid; place-items: center;
      box-shadow: 0 6px 14px rgba(0,0,0,.4);
    }
    .brand h1 {
      font-size: 20px; margin:0;
      letter-spacing: .5px;
    }
    .cta {
      display: flex; align-items: center; gap: 12px;
    }
    .btn {
      padding: 10px 14px; border-radius: 999px;
      border: none; cursor: pointer;
      font-weight: 600; font-size: 14px;
      transition: transform .2s ease, background .2s ease;
    }
    .btn.primary {
      background: linear-gradient(135deg, #ff4d6d, #ff2e63);
      color: white;
      box-shadow: 0 6px 14px rgba(255,77,109,.4);
    }
    .btn.secondary {
      background: rgba(255,255,255,.08);
      color: #e8eaf6; border: 1px solid rgba(255,255,255,.15);
    }
    .hero {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 26px;
      align-items: center;
      padding: 26px 0 18px;
    }
    .hero-copy {
      padding: 10px 4px;
    }
    .tag {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(53, 208, 127, .15);
      color: #9ff8c7;
      padding: 8px 12px; border-radius: 999px;
      font-weight: 700; font-size: 12px; letter-spacing: .5px;
      border: 1px solid rgba(53,208,127,.4);
      text-transform: uppercase;
    }
    h2 {
      font-size: 44px; margin: 14px 0 12px; line-height: 1.05;
      letter-spacing: .4px;
    }
    h2 .split { color: #ffd13a; }
    p {
      color: var(--muted);
      font-size: 17px; line-height: 1.6;
      max-width: 60ch;
    }
    .chips { display:flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
    .chip {
      padding: 8px 12px; border-radius: 999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.15);
      font-size: 12px; font-weight: 700; color: #e9f0ff;
    }
    .hero-media {
      position: relative;
      height: 340px;
      border-radius: 22px;
      overflow: hidden;
      background: linear-gradient(135deg, #142a3a, #1a1f3a);
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: 0 20px 40px rgba(0,0,0,.35);
    }
    .truck {
      position: absolute; bottom: 0; right: 0;
      width: 320px; height: 180px; transform: rotate(-6deg);
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="360" viewBox="0 0 640 360"><defs><linearGradient id="g" x1="0" x2="1" y1="0" y2="1"><stop stop-color="%23ff4d6d"/><stop offset="1" stop-color="%23ffd13a"/></linearGradient></defs><rect width="640" height="360" fill="%23000"/><rect x="120" y="140" width="240" height="80" rx="12" fill="url(%23g)"/><circle cx="180" cy="232" r="22" fill="%23999999"/><circle cx="320" cy="232" r="22" fill="%23999999"/><rect x="80" y="120" width="120" height="20" rx="6" fill="%23fff"/><text x="240" y="170" fill="%23fff" font-family="sans-serif" font-size="18" opacity="0.9">Kimchi Loco</text></svg>') center/cover no-repeat;
      filter: drop-shadow(0 8px 14px rgba(0,0,0,.5));
    }
    .steam {
      position: absolute; width: 48px; height: 120px; left: 40px; bottom: 60px;
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 40%), radial-gradient(circle at 70% 60%, rgba(255,255,255,.8), rgba(255,255,255,0) 40%);
      filter: blur(0.6px);
      opacity: .5;
      border-radius: 50% ;
      animation: rise 6s infinite ease-in-out;
    }
    @keyframes rise {
      0% { transform: translateY(0) scale(1); opacity:.6; }
      50% { transform: translateY(-40px) scale(1.05); opacity:.9; }
      100% { transform: translateY(0) scale(1); opacity:.6; }
    }
    .grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
      margin-top: 14px;
    }
    .card {
      padding: 14px; border-radius: 14px;
      background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.14);
      min-height: 84px;
    }
    .card h3 { margin: 0 0 6px; font-size: 14px; color: #eaf7ff; }
    .card p { margin: 0; color: #dbe7f5; font-size: 12px; }
    .section {
      padding: 28px 0;
    }
    .section h2 {
      font-size: 28px; margin: 0 0 14px; letter-spacing: .4px;
    }
    .gallery {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    }
    .thumb {
      height: 120px; border-radius: 12px;
      background: #111;
      border: 1px solid rgba(255,255,255,.15);
      overflow: hidden;
      position: relative;
    }
    .thumb:before {
      content: "Korean taco";
      position: absolute; bottom: 6px; left: 8px;
      font-size: 11px; padding: 6px 8px; border-radius: 999px;
      background: rgba(0,0,0,.5); color: #fff;
    }
    .order {
      display: grid; grid-template-columns: 1fr auto;
      gap: 12px; align-items: center;
      padding: 18px; border-radius: 14px;
      background: linear-gradient(135deg, rgba(53,208,127,.25), rgba(0,0,0,.15));
      border: 1px solid rgba(53,208,127,.5);
      margin-top: 14px;
    }
    .price { font-weight: 800; font-size: 20px; }
    .order button {
      padding: 12px 16px; border-radius: 999px;
      border: none; background: #ffd13a; color: #1b1b1b; font-weight: 800;
      box-shadow: 0 6px 14px rgba(0,0,0,.25);
    }

    .footer {
      text-align: center; color: var(--muted); font-size: 12px;
      padding: 28px 0 60px;
    }
    @media (max-width: 980px) {
      .hero { grid-template-columns: 1fr; }
      .hero-media { height: 280px; }
      .grid { grid-template-columns: repeat(2, 1fr); }
      .gallery { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      header { padding: 10px 0; }
      h2 { font-size: 36px; }
      .gallery { grid-template-columns: 1fr; }
      .truck { width: 260px; height: 120px; }
      .hero-media { height: 260px; }
    }
    /* Accessibility hint for start message */
    .start-hint {
      position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
      background: rgba(0,0,0,.75); padding: 16px 18px; border-radius: 12px;
      font-weight: 700; text-align: center; z-index: 20;
      border: 1px solid rgba(255,255,255,.25);
    }
    .hidden { display: none; }
  </style>
</head>
<body>
  <div class="wrap" aria-label="Kimchi Loco landing page">
    <header>
      <div class="brand" aria-label="Kimchi Loco brand">
        <div class="logo" aria-label="Logo"></div>
        <div>
          <h1>Kimchi Loco</h1>
          <div style="font-size:12px; color:#d8e4ff; letter-spacing:.4px;">Korean Taco Truck</div>
        </div>
      </div>
      <div class="cta" aria-label="Actions">
        <button class="btn secondary" id="viewMenu" aria-label="View menu">View Menu</button>
        <button class="btn primary" id="orderNow" aria-label="Order now">Find Us</button>
      </div>
    </header>

    <section class="hero" aria-label="Main hero">
      <div class="hero-copy">
        <span class="tag" aria-label="Fresh Korean flavors">
          Fresh Korean Flavors
        </span>
        <h2>Smash taste buds with Korean-inspired tacos that crave you back</h2>
        <p>
          The bold crunch of kimchi, sizzling bulgogi, secret goes-with-everything sriracha mayo,
          all folded into handheld tacos on a warm, blistered tortilla. Fresh, vibrant, and totally loco.
        </p>
        <div class="chips" aria-label="Highlights">
          <span class="chip">Korean BBQ Toppings</span>
          <span class="chip">Kimchi Crunch</span>
          <span class="chip">Gochujang Heat</span>
          <span class="chip">Street Taco Vibe</span>
        </div>
      </div>

      <div class="hero-media" aria-label="Food truck preview">
        <div class="steam" aria-hidden="true"></div>
        <div class="truck" aria-label="Mini illustration of Kimchi Loco truck"></div>
      </div>
    </section>

    <section class="section" aria-label="Highlights">
      <div class="grid">
        <div class="card">
          <h3>Vibrant Menu</h3>
          <p>Kimchi Carnitas Taco, Bulgogi Beef Taco, Spicy Tofu Taco, kimchi fries, and more. All-day crowd-pleasers.</p>
        </div>
        <div class="card">
          <h3>Made Fresh Daily</h3>
          <p>Local greens, house-made kimchi, and crackly shells. Every bite is a celebration.</p>
        </div>
        <div class="card">
          <h3>On-The-Go Goodness</h3>
          <p>Stomp out hunger with handheld, mess-free goodness perfect for street food lovers.</p>
        </div>
      </div>
    </section>

    <section class="section" aria-label="Gallery and menu teaser">
      <h2 style="margin:0 0 12px; font-size:28px;">Taste snapshots</h2>
      <div class="gallery" aria-label="Photo gallery">
        <div class="thumb" aria-label="Taco close-up"></div>
        <div class="thumb" aria-label="Korean taco assortment"></div>
        <div class="thumb" aria-label="Savory sides"></div>
        <div class="thumb" aria-label="Fresh kimchi"></div>
        <div class="thumb" aria-label="Street view"></div>
        <div class="thumb" aria-label="Finished tacos"></div>
      </div>

      <div class="order" role="region" aria-label="Order teaser">
        <div>
          <div style="font-weight:800; font-size:16px; color:#eafff0">Skip the lineup. Find us nearby.</div>
          <div style="color:#dbe7f5; font-size:12px; margin-top:6px;">
            Weekdays at local markets. Weekends at fairs and waterfronts. Fresh bites, fast service.
          </div>
        </div>
        <button>Find the Truck</button>
      </div>
    </section>

    <section class="section" aria-label="CTA and contact">
      <h2>Ready for a loco bite?</h2>
      <p style="max-width: 700px; margin-bottom: 16px;">
        Follow us on social, catch the truck at pop-ups, and join the flavor wave. Bring friends, bring hungry bellies.
      </p>
      <div class="grid" style="grid-template-columns: 1fr 1fr 1fr; max-width: 700px;">
        <div class="card">
          <h3>Find Us</h3>
          <p>Locations updated daily. tap to view map or directions.</p>
        </div>
        <div class="card">
          <h3>Menu Snapshot</h3>
          <p>Sample plates, combos, and spicy specials. Perfect for quick decisions.</p>
        </div>
        <div class="card">
          <h3>Book a Pop-Up</h3>
          <p>Want Kimchi Loco at your event? We bring the fiesta to you.</p>
        </div>
      </div>
    </section>

    <footer class="footer" aria-label="Footer">
      © <span id="year"></span> Kimchi Loco • Made with smoke, spice, and street-smart crunch
    </footer>
  </div>

  <!-- Start hint overlay (self-playing demo mode) -->
  <div class="start-hint" id="startHint" role="dialog" aria-label="Start message">
    Click anywhere or press a key to start
  </div>

  <script>
    // Simple self-playing demo: animate a faux "truck driving" caption and auto-scroll a bit
    (function(){
      const hint = document.getElementById('startHint');
      const truckEl = document.querySelector('.truck');
      const viewMenuBtn = document.getElementById('viewMenu');
      const orderNowBtn = document.getElementById('orderNow');
      const yearEl = document.getElementById('year');
      yearEl.textContent = new Date().getFullYear();

      // Prepare for keyboard/mouse start
      let started = false;
      function startDemo(){
        if(started) return;
        started = true;
        hint.style.display = 'none';
        // simple auto-run animation: slight pan of hero
        const hero = document.querySelector('.hero');
        hero.style.transition = 'transform 1.2s ease';
        hero.style.transform = 'translateY(-4px)';
        // simulate a tiny "drive" movement of the truck
        let pos = 0;
        let dir = 1;
        const move = ()=>{
          pos += dir * 2;
          if(pos > 20) { dir = -1; }
          if(pos < -4) { dir = 1; }
          truckEl.style.transform = 'rotate(-6deg) translateX(' + pos + 'px)';
          requestAnimationFrame(move);
        };
        requestAnimationFrame(move);
      }

      window.addEventListener('keydown', startDemo, {once:true});
      window.addEventListener('mousedown', startDemo, {once:true});
      // Also auto-start after a short delay if user hasn't interacted
      setTimeout(()=>{ if(!started) startDemo(); }, 600);
      // Stop real keyboard interactions from interfering after start
      document.addEventListener('click', ()=>{}, {once:false});

      // Smooth anchor actions
      viewMenuBtn.addEventListener('click', ()=> {
        alert('Menu coming soon in this demo. Imagine mouth-watering pictures and spicy notes.');
      });
      orderNowBtn.addEventListener('click', ()=> {
        alert('Find Kimchi Loco on the map nearby. We’ll be there soon!');
      });
    })();
  </script>
</body>
</html>