Models 44

Gemma 4 31B

by Googlereasoning defaultClean
Open in new window

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

How it went

Total time
10.6 s
Cost
$0.0013
Output tokens
3,576
Spent thinking
0 tokens
Speed
380.6 tok/s
Console errors
0
First token after
1.2 s
First visible text after
1.2 s
Prompt tokens
385
Code size
11.6 KB
Finish reason
stop
Served by
KT
Model id
google/gemma-4-31b-it
Reasoning sent
model default
Max output
16,384 tokens
Generated
Nov 13, 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 · 367 lines

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kimchi Loco | Korean Fusion Tacos</title>
    <style>
        :root {
            --primary: #ff4b2b;
            --secondary: #ffb300;
            --dark: #1a1a1a;
            --light: #fdfdfd;
            --accent: #e63946;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .logo {
            font-weight: 900;
            font-size: 1.5rem;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: -1px;
            cursor: pointer;
        }

        .logo span {
            color: var(--secondary);
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            margin-left: 25px;
            font-weight: 600;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                        url('https://images.unsplash.com/photo-1552332336-363885862172?auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 0 20px;
            position: relative;
        }

        .hero-content h1 {
            font-size: clamp(3rem, 10vw, 6rem);
            line-height: 1;
            margin-bottom: 20px;
            text-transform: uppercase;
            font-weight: 900;
            animation: fadeInUp 1s ease-out;
        }

        .hero-content p {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            margin-bottom: 30px;
            font-weight: 300;
            animation: fadeInUp 1.2s ease-out;
        }

        .cta-button {
            display: inline-block;
            padding: 18px 40px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1.2rem;
            transition: transform 0.3s, background 0.3s;
            animation: fadeInUp 1.4s ease-out;
            box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-5px);
            background: var(--accent);
        }

        /* Menu Section */
        .menu-section {
            padding: 100px 5%;
            background: white;
        }

        .section-title {
            text-align: center;
            font-size: 3rem;
            margin-bottom: 60px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 5px;
            background: var(--primary);
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .menu-item {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: transform 0.3s;
            border: 1px solid #eee;
            cursor: pointer;
        }

        .menu-item:hover {
            transform: translateY(-10px);
        }

        .menu-img {
            height: 200px;
            width: 100%;
            object-fit: cover;
            background: #ddd;
        }

        .menu-info {
            padding: 25px;
        }

        .menu-info h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .price {
            color: var(--primary);
            font-weight: bold;
        }

        .menu-info p {
            color: #666;
            font-size: 0.95rem;
        }

        /* Location Section */
        .location {
            background: var(--dark);
            color: white;
            padding: 80px 5%;
            text-align: center;
        }

        .tracker {
            background: rgba(255,255,255,0.1);
            padding: 30px;
            border-radius: 20px;
            max-width: 600px;
            margin: 40px auto;
            border: 2px dashed var(--secondary);
        }

        .status-badge {
            background: #4caf50;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            text-transform: uppercase;
            margin-bottom: 15px;
            display: inline-block;
        }

        /* Footer */
        footer {
            padding: 40px 5%;
            text-align: center;
            background: #f4f4f4;
            font-size: 0.9rem;
            color: #888;
        }

        /* Animations */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .hero-content h1 { font-size: 3rem; }
        }
    </style>
</head>
<body>

    <nav>
        <div class="logo">KIMCHI <span>LOCO</span></div>
        <div class="nav-links">
            <a href="#menu">Menu</a>
            <a href="#find">Find Us</a>
            <a href="#about">About</a>
        </div>
    </nav>

    <section class="hero">
        <div class="hero-content">
            <h1>Seoul Meets<br>Street Food</h1>
            <p>The wildest Korean-Mexican fusion on four wheels.</p>
            <a href="#menu" class="cta-button">VIEW THE MENU</a>
        </div>
    </section>

    <section class="menu-section" id="menu">
        <h2 class="section-title">The Loco Menu</h2>
        <div class="menu-grid">
            <!-- Item 1 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1565299624735-2f415c27464d?auto=format&fit=crop&w=600&q=80" alt="Bulgogi Taco" class="menu-img">
                <div class="menu-info">
                    <h3>The OG Bulgogi <span class="price">$4.50</span></h3>
                    <p>Marinated rib-eye steak, spicy kimchi slaw, toasted sesame seeds, and gochujang crema on a corn tortilla.</p>
                </div>
            </div>
            <!-- Item 2 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1599974598743-f73709556126?auto=format&fit=crop&w=600&q=80" alt="Spicy Pork Taco" class="menu-img">
                <div class="menu-info">
                    <h3>Seoul Fire Pork <span class="price">$4.00</span></h3>
                    <p>Gochujang-glazed pork shoulder, pickled daikon, fresh cilantro, and lime-infused onion.</p>
                </div>
            </div>
            <!-- Item 3 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1512636436617-258f1c6c6767?auto=format&fit=crop&w=600&q=80" alt="Kimchi Fries" class="menu-img">
                <div class="menu-info">
                    <h3>Loco Kimchi Fries <span class="price">$9.00</span></h3>
                    <p>Double-fried potatoes topped with melted mozzarella, caramelized kimchi, scallions, and sriracha mayo.</p>
                </div>
            </div>
            <!-- Item 4 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1565299585323-35742573716d?auto=format&fit=crop&w=600&q=80" alt="Tofu Taco" class="menu-img">
                <div class="menu-info">
                    <h3>K-Pop Tofu (V) <span class="price">$3.50</span></h3>
                    <p>Crispy panko-crusted tofu, honey-soy glaze, pickled carrots, and a touch of toasted sesame.</p>
                </div>
            </div>
            <!-- Item 5 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1541529086528-e55c517a61c8?auto=format&fit=crop&w=600&q=80" alt="Korean Wings" class="menu-img">
                <div class="menu-info">
                    <h3>Gangnam Wings <span class="price">$11.00</span></h3>
                    <p>6pcs double-fried wings tossed in sweet-and-spicy soy garlic glaze with a side of pickled radish.</p>
                </div>
            </div>
            <!-- Item 6 -->
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1551581175-b7359336638c?auto=format&fit=crop&w=600&q=80" alt="Drink" class="menu-img">
                <div class="menu-info">
                    <h3>Yuzu Lemonade <span class="price">$3.00</span></h3>
                    <p>Refreshing Japanese citrus lemonade with a hint of mint. The perfect palate cleanser!</p>
                </div>
            </div>
        </div>
    </section>

    <section class="location" id="find">
        <h2 class="section-title" style="color: white;">Find The Truck</h2>
        <div class="tracker">
            <div class="status-badge">Currently Open</div>
            <p style="font-size: 1.5rem; font-weight: bold;">📍 Downtown Plaza (Corner of 5th & Main)</p>
            <p style="margin-top: 10px; opacity: 0.8;">Today: 11:00 AM — 7:00 PM</p>
            <p style="margin-top: 10px; font-style: italic; color: var(--secondary);">"Follow the smell of garlic and grill!"</p>
        </div>
    </section>

    <footer>
        <p>&copy; 2023 Kimchi Loco Food Truck. Stay Spicy. 🌶️</p>
    </footer>

    <script>
        // Smooth scrolling
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });

        // Simple animation for menu items on scroll
        const observerOptions = {
            threshold: 0.1
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, observerOptions);

        document.querySelectorAll('.menu-item').forEach(item => {
            item.style.opacity = '0';
            item.style.transform = 'translateY(20px)';
            item.style.transition = 'all 0.6s ease-out';
            observer.observe(item);
        });
    </script>
</body>
</html>