Models 44

Ministral 3 14B 2512

by Mistralreasoning defaultClean
Open in new window

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

How it went

Total time
37.8 s
Cost
$0.0007
Output tokens
2,830
Spent thinking
0 tokens
Speed
75.4 tok/s
Console errors
0
First token after
300 ms
First visible text after
300 ms
Prompt tokens
513
Code size
9.0 KB
Finish reason
stop
Served by
Mistral
Model id
mistralai/ministral-14b-2512
Reasoning sent
model default
Max output
209,715 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 · 285 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>
        :root {
            --sunny-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            --rainy-bg: linear-gradient(135deg, #87ceeb 0%, #e0f7fa 100%);
            --snowy-bg: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            --stormy-bg: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
            background-color: #f5f5f5;
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .weather-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            max-width: 1280px;
            margin: 0 auto;
        }

        .weather-card {
            background-color: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 300px;
        }

        .weather-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        .weather-icon {
            margin: 0 auto 20px;
            width: 80px;
            height: 80px;
            position: relative;
            animation-duration: 2s;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
        }

        .sunny .weather-icon {
            background: linear-gradient(45deg, #ffeb3b, #ffc107);
            border-radius: 50%;
            position: relative;
            animation: rotateSun 10s linear infinite;
        }

        .sunny .weather-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            box-shadow:
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3),
                0 0 0 0 rgba(255, 255, 255, 0.3);
            box-shadow:
                45deg 0 0 0 rgba(255, 255, 255, 0.3),
                90deg 0 0 0 rgba(255, 255, 255, 0.3),
                135deg 0 0 0 rgba(255, 255, 255, 0.3),
                180deg 0 0 0 rgba(255, 255, 255, 0.3),
                225deg 0 0 0 rgba(255, 255, 255, 0.3),
                270deg 0 0 0 rgba(255, 255, 255, 0.3),
                315deg 0 0 0 rgba(255, 255, 255, 0.3),
                360deg 0 0 0 rgba(255, 255, 255, 0.3);
        }

        .rainy .weather-icon {
            position: relative;
            height: 100px;
        }

        .rainy .weather-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                linear-gradient(to bottom, transparent 0%, rgba(135, 206, 235, 0.3) 2%),
                linear-gradient(to bottom, transparent 0%, rgba(135, 206, 235, 0.3) 2%),
                linear-gradient(to bottom, transparent 0%, rgba(135, 206, 235, 0.3) 2%),
                linear-gradient(to bottom, transparent 0%, rgba(135, 206, 235, 0.3) 2%);
            background-size: 100% 20px;
            background-repeat: repeat-y;
            background-position: 0 0, 33% 0, 66% 0;
            animation: rain 3s linear infinite;
        }

        .snowy .weather-icon {
            position: relative;
            height: 100px;
        }

        .snowy .weather-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(2px 2px at 20px 20px, white, transparent),
                radial-gradient(2px 2px at 40px 10px, white, transparent),
                radial-gradient(2px 2px at 60px 30px, white, transparent),
                radial-gradient(2px 2px at 80px 5px, white, transparent),
                radial-gradient(2px 2px at 100px 25px, white, transparent);
            background-size: 100% 100%;
            animation: snow 8s linear infinite;
        }

        .stormy .weather-icon {
            position: relative;
            height: 100px;
        }

        .stormy .weather-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 20%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
            border-radius: 50%;
            animation: lightning 1s ease-in-out infinite;
            opacity: 0;
        }

        .stormy .weather-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 20%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
            border-radius: 50%;
            animation: lightning 1s ease-in-out 0.5s infinite;
            opacity: 0;
        }

        .weather-details {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .city {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
        }

        .temperature {
            font-size: 2.5rem;
            font-weight: 300;
            color: #666;
            margin-bottom: 15px;
        }

        .description {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.4;
            flex-grow: 1;
        }

        @keyframes rotateSun {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes rain {
            0% { background-position: 0 0, 33% 0, 66% 0; }
            100% { background-position: 0 100%, 33% 100%, 66% 100%; }
        }

        @keyframes snow {
            0% { background-position: 0 0; }
            100% { background-position: 0 -200%; }
        }

        @keyframes lightning {
            0% { opacity: 0; transform: scaleX(0.5) translate(-50%, -50%); }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { opacity: 0; transform: scaleX(1.5) translate(-50%, -50%); }
        }

        @media (prefers-reduced-motion: reduce) {
            .weather-icon {
                animation: none !important;
            }
        }

        @media (max-width: 768px) {
            .weather-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="weather-grid">
        <div class="weather-card sunny" style="background: var(--sunny-bg);">
            <div class="weather-icon"></div>
            <div class="weather-details">
                <div class="city">Los Angeles</div>
                <div class="temperature">28°C</div>
                <div class="description">Sunny and warm, perfect for beach day!</div>
            </div>
        </div>

        <div class="weather-card rainy" style="background: var(--rainy-bg);">
            <div class="weather-icon"></div>
            <div class="weather-details">
                <div class="city">Seattle</div>
                <div class="temperature">16°C</div>
                <div class="description">Light rain showers, bring an umbrella.</div>
            </div>
        </div>

        <div class="weather-card snowy" style="background: var(--snowy-bg);">
            <div class="weather-icon"></div>
            <div class="weather-details">
                <div class="city">Tokyo</div>
                <div class="temperature">3°C</div>
                <div class="description">Snowy with a chance of flurries today.</div>
            </div>
        </div>

        <div class="weather-card stormy" style="background: var(--stormy-bg);">
            <div class="weather-icon"></div>
            <div class="weather-details">
                <div class="city">Miami</div>
                <div class="temperature">22°C</div>
                <div class="description">Thunderstorms expected, stay indoors.</div>
            </div>
        </div>
    </div>
</body>
</html>