Models 44

Qwen3 Coder Next

by Qwenreasoning defaultClean
Open in new window

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

How it went

Total time
1 min 3 s
Cost
$0.0030
Output tokens
3,652
Spent thinking
0 tokens
Speed
58.6 tok/s
Console errors
0
First token after
475 ms
First visible text after
475 ms
Prompt tokens
504
Code size
13.2 KB
Finish reason
stop
Served by
Parasail
Model id
qwen/qwen3-coder-next
Reasoning sent
model default
Max output
235,929 tokens
Generated
Nov 13, 2026

What it was asked

The prompt
Create a set of four animated weather cards (sunny, rainy, snowy, stormy), made with HTML and CSS only. Requirements: - Absolutely no JavaScript: the file must not contain any <script> tag or inline event handler. - No images, no SVG, no icon fonts: every weather icon is built from HTML elements and pseudo-elements styled with CSS. - Each card shows an animated icon (rotating sun rays, falling rain drops, drifting snowflakes, flashing lightning), a city name, a temperature and a short description. - Each card has its own background gradient matching the weather. - The cards are displayed in a responsive grid (4 per row on desktop, stacked on mobile) and lift up on hover. - Smooth infinite animations using @keyframes, and respect prefers-reduced-motion.
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 · 511 lines

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Animated Weather Cards</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #f0f5f9;
            color: #333;
        }

        h1 {
            margin: 2rem 0 1.5rem;
            font-size: 2.5rem;
            text-align: center;
            color: #2c3e50;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            width: 90%;
            max-width: 1280px;
            padding: 1rem;
        }

        /* Weather Card Base Styles */
        .card {
            background: linear-gradient(135deg, #fdfbfb, #ebedee);
            border-radius: 15px;
            padding: 2rem 1.5rem;
            text-align: center;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-15px) scale(1.03);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        /* Reduced Motion Support */
        @media (prefers-reduced-motion: reduce) {
            .card:hover {
                transform: translateY(-5px);
            }
            
            .weather-icon, .sun-rays, .rain-drops, .snowflakes, .lightning {
                animation: none !important;
            }
        }

        /* City Name */
        .city {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        /* Temperature */
        .temperature {
            font-size: 3rem;
            font-weight: 300;
            margin: 1rem 0;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        /* Description */
        .description {
            font-size: 1.1rem;
            color: #fff;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }

        /* Weather Icon Container */
        .weather-icon {
            width: 100px;
            height: 100px;
            margin: 1.5rem auto;
            position: relative;
        }

        /* SUNNY CARD */
        .card.sunny {
            background: linear-gradient(135deg, #f6d365, #fda085);
        }

        .card.sunny .city,
        .card.sunny .temperature,
        .card.sunny .description {
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .sun {
            width: 60px;
            height: 60px;
            background: #ffcc00;
            border-radius: 50%;
            position: relative;
            margin: 0 auto;
            box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
        }

        .sun-rays {
            position: absolute;
            top: -20px;
            left: -20px;
            width: 100px;
            height: 100px;
            animation: rotate 15s linear infinite;
        }

        .sun-rays::before,
        .sun-rays::after {
            content: '';
            position: absolute;
            background: #ffcc00;
            border-radius: 5px;
        }

        .sun-rays::before {
            width: 12px;
            height: 100%;
            left: 44px;
            top: 0;
            box-shadow: 
                0 0 15px #ffcc00,
                0 0 25px rgba(255, 204, 0, 0.8);
        }

        .sun-rays::after {
            width: 100%;
            height: 12px;
            top: 44px;
            left: 0;
            box-shadow: 
                0 0 15px #ffcc00,
                0 0 25px rgba(255, 204, 0, 0.8);
        }

        /* RAINY CARD */
        .card.rainy {
            background: linear-gradient(135deg, #43e97b, #38f9d7);
        }

        .card.rainy .city,
        .card.rainy .temperature,
        .card.rainy .description {
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .cloud {
            width: 80px;
            height: 80px;
            position: relative;
        }

        .cloud::before,
        .cloud::after {
            content: '';
            position: absolute;
            background: #fff;
            border-radius: 50%;
        }

        .cloud::before {
            width: 50px;
            height: 50px;
            top: 20px;
            left: 15px;
        }

        .cloud::after {
            width: 50px;
            height: 50px;
            top: 20px;
            right: 15px;
        }

        .cloud-base {
            width: 80px;
            height: 25px;
            background: #fff;
            border-radius: 20px;
            margin: 25px auto 10px;
            position: relative;
        }

        .cloud-base::before,
        .cloud-base::after {
            content: '';
            position: absolute;
            background: #fff;
            border-radius: 50%;
        }

        .cloud-base::before {
            width: 30px;
            height: 30px;
            top: -15px;
            left: 10px;
        }

        .cloud-base::after {
            width: 30px;
            height: 30px;
            top: -15px;
            right: 10px;
        }

        .rain-drops {
            position: absolute;
            top: 90px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 60px;
        }

        .drop {
            position: absolute;
            width: 4px;
            height: 15px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 0 0 2px 2px;
            animation: fall 1s linear infinite;
        }

        /* SNOWY CARD */
        .card.snowy {
            background: linear-gradient(135deg, #89f7fe, #66a6ff);
        }

        .card.snowy .city,
        .card.snowy .temperature,
        .card.snowy .description {
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .snow-cloud {
            width: 90px;
            height: 50px;
            background: #fff;
            border-radius: 30px;
            margin: 20px auto;
            position: relative;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .snow-cloud::before,
        .snow-cloud::after {
            content: '';
            position: absolute;
            background: #fff;
            border-radius: 50%;
        }

        .snow-cloud::before {
            width: 40px;
            height: 40px;
            top: -20px;
            left: 20px;
        }

        .snow-cloud::after {
            width: 40px;
            height: 40px;
            top: -20px;
            right: 20px;
        }

        .snowflakes {
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 80px;
        }

        .snowflake {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #fff;
            border-radius: 50%;
            animation: fall 3s linear infinite;
        }

        /* STORMY CARD */
        .card.stormy {
            background: linear-gradient(135deg, #4b6cb7, #182848);
        }

        .card.stormy .city,
        .card.stormy .temperature,
        .card.stormy .description {
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .storm-cloud {
            width: 90px;
            height: 50px;
            background: #656e7e;
            border-radius: 30px;
            margin: 20px auto;
            position: relative;
        }

        .storm-cloud::before,
        .storm-cloud::after {
            content: '';
            position: absolute;
            background: #656e7e;
            border-radius: 50%;
        }

        .storm-cloud::before {
            width: 40px;
            height: 40px;
            top: -20px;
            left: 20px;
        }

        .storm-cloud::after {
            width: 40px;
            height: 40px;
            top: -20px;
            right: 20px;
        }

        .lightning {
            position: absolute;
            top: 90px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 60px;
        }

        .lightning-bolt {
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 45px solid #ffd700;
            position: relative;
            animation: flash 2s infinite;
        }

        .lightning-bolt::after {
            content: '';
            position: absolute;
            top: 15px;
            left: -15px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 25px solid #fff;
        }

        /* Animations */
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes fall {
            0% {
                transform: translateY(-20px);
                opacity: 0;
            }
            20% {
                opacity: 1;
            }
            100% {
                transform: translateY(80px);
                opacity: 0;
            }
        }

        @keyframes flash {
            0%, 90%, 100% {
                transform: translateX(-50%) scale(1);
                opacity: 0;
            }
            92% {
                opacity: 1;
                transform: translateX(-50%) scale(1.1);
            }
            94% {
                opacity: 0;
            }
            96% {
                opacity: 1;
                transform: translateX(-50%) scale(0.9);
            }
            98% {
                opacity: 0;
            }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .cards-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .cards-container {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 2rem;
                margin: 1.5rem 0 1rem;
            }
        }
    </style>
</head>
<body>
    <h1>Weather Forecast</h1>
    
    <div class="cards-container">
        <!-- Sunny Card -->
        <div class="card sunny">
            <div class="city">Miami</div>
            <div class="weather-icon">
                <div class="sun-rays">
                    <div class="sun"></div>
                </div>
            </div>
            <div class="temperature">82°</div>
            <div class="description">Sunny</div>
        </div>

        <!-- Rainy Card -->
        <div class="card rainy">
            <div class="city">London</div>
            <div class="weather-icon">
                <div class="cloud">
                    <div class="cloud-base"></div>
                </div>
                <div class="rain-drops">
                    <div class="drop" style="left: 20%; animation-delay: 0s;"></div>
                    <div class="drop" style="left: 40%; animation-delay: 0.3s;"></div>
                    <div class="drop" style="left: 60%; animation-delay: 0.6s;"></div>
                    <div class="drop" style="left: 80%; animation-delay: 0.9s;"></div>
                </div>
            </div>
            <div class="temperature">58°</div>
            <div class="description">Rainy</div>
        </div>

        <!-- Snowy Card -->
        <div class="card snowy">
            <div class="city">Alaska</div>
            <div class="weather-icon">
                <div class="snow-cloud"></div>
                <div class="snowflakes">
                    <div class="snowflake" style="left: 10%; animation-delay: 0s; animation-duration: 3.5s;"></div>
                    <div class="snowflake" style="left: 30%; animation-delay: 0.5s; animation-duration: 3s;"></div>
                    <div class="snowflake" style="left: 50%; animation-delay: 1s; animation-duration: 4s;"></div>
                    <div class="snowflake" style="left: 70%; animation-delay: 0.2s; animation-duration: 3.2s;"></div>
                    <div class="snowflake" style="left: 90%; animation-delay: 0.7s; animation-duration: 3.8s;"></div>
                </div>
            </div>
            <div class="temperature">22°</div>
            <div class="description">Snowy</div>
        </div>

        <!-- Stormy Card -->
        <div class="card stormy">
            <div class="city">Chicago</div>
            <div class="weather-icon">
                <div class="storm-cloud"></div>
                <div class="lightning">
                    <div class="lightning-bolt"></div>
                </div>
            </div>
            <div class="temperature">65°</div>
            <div class="description">Stormy</div>
        </div>
    </div>
</body>
</html>