North Mini Code (free)
by CohereReasoningClean
Running live in a sandboxed frame. Click inside it before using the keyboard.
How it went
- Total time
- 7.1 s
- Cost
- $0
- Output tokens
- 1,889
- Spent thinking
- 0 tokens
- Speed
- 276 tok/s
- Console errors
- 0
- First token after
- 248 ms
- First visible text after
- 248 ms
- Prompt tokens
- 484
- Code size
- 5.5 KB
- Finish reason
- stop
- Served by
- Cohere
- Model id
cohere/north-mini-code:free- Reasoning sent
{"effort":"none"}- Max output
- 32,000 tokens
- Generated
- Nov 9, 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 · 240 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animated Weather Cards</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* CSS Reset & Base */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background: #f0f2f5;
color: #333;
line-height: 1.4;
}
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Grid container */
.weather-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
max-width: 1280px;
margin: 2rem auto;
padding: 0 1rem;
}
/* Single card */
.card {
background: #fff;
border-radius: 1rem;
padding: 1.5rem;
text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
}
.card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
/* Weather icon wrapper */
.icon {
width: 100px;
height: 100px;
margin-bottom: 1rem;
position: relative;
}
/* --- Sunny --- */
.card.sunny { background: linear-gradient(135deg, #fceabb, #f8b500); }
.card.sunny .icon::before {
content: "";
position: absolute;
width: 70px;
height: 70px;
background: #ffd700;
border-radius: 50%;
top: 15px; left: 15px;
box-shadow: 0 0 10px rgba(255,215,0,0.7);
}
.card.sunny .icon::after {
content: "";
position: absolute;
width: 120px;
height: 120px;
background: radial-gradient(rgba(255,215,0,0.8), transparent 70%);
top: -10px; left: -10px;
animation: rotateSun 6s linear infinite;
}
@keyframes rotateSun {
to { transform: rotate(360deg); }
}
/* --- Rainy --- */
.card.rainy { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.card.rainy .icon {
width: 120px;
height: 60px;
}
.card.rainy .drop {
position: absolute;
width: 6px;
height: 20px;
background: #6bb6d6;
border-radius: 3px;
opacity: 0.7;
animation: fall linear infinite;
}
.card.rainy .drop:nth-child(1) { left: 20px; animation-duration: 0.9s; animation-delay: 0s; }
.card.rainy .drop:nth-child(2) { left: 50px; animation-duration: 0.7s; animation-delay: 0.2s; }
.card.rainy .drop:nth-child(3) { left: 80px; animation-duration: 1.1s; animation-delay: 0.4s; }
@keyframes fall {
to { transform: translateY(45px); opacity: 0; }
}
/* --- Snowy --- */
.card.snowy { background: linear-gradient(135deg, #e0f7fa, #4dd0e1); }
.card.snowy .icon {
width: 100px;
height: 100px;
}
.card.snowy .flake {
position: absolute;
width: 12px; height: 12px;
background: #fff;
border-radius: 50%;
opacity: 0.9;
animation: drift linear infinite;
}
.card.snowy .flake:nth-child(1) { left: 10px; animation-duration: 4s; animation-delay: 0s; }
.card.snowy .flake:nth-child(2) { left: 45px; animation-duration: 3.5s; animation-delay: 0.5s; }
.card.snowy .flake:nth-child(3) { left: 80px; animation-duration: 5s; animation-delay: 1s; }
@keyframes drift {
0% { transform: translateY(-20px) translateX(0); }
50% { transform: translateY(20px) translateX(10px); }
100% { transform: translateY(-20px) translateX(-10px); opacity: 0; }
}
/* --- Stormy --- */
.card.stormy { background: linear-gradient(135deg, #434343, #000000); }
.card.stormy .icon {
width: 100px; height: 100px;
}
.card.stormy .lightning {
position: absolute;
width: 4px; height: 40px;
background: #ffeb3b;
left: 48px; top: 0;
border-radius: 2px;
opacity: 0;
animation: flash 1.5s steps(2, end) infinite;
}
.card.stormy .lightning::before,
.card.stormy .lightning::after {
content: "";
position: absolute;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 20px solid #ffeb3b;
left: -2px; top: 40px;
opacity: 0;
animation: flash 1.5s steps(2, end) infinite;
}
.card.stormy .lightning::after {
transform: rotate(180deg);
left: auto; right: -2px;
}
@keyframes flash {
0%, 100% { opacity: 0; }
5%, 15% { opacity: 1; }
}
/* Text styles */
.city {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.temp {
font-size: 2rem;
font-weight: 300;
margin-bottom: 0.5rem;
}
.desc {
font-size: 0.9rem;
color: #555;
}
/* Mobile responsive */
@media (max-width: 768px) {
.weather-grid {
grid-template-columns: 1fr;
margin: 1rem;
}
}
</style>
</head>
<body>
<div class="weather-grid">
<article class="card sunny">
<div class="icon"></div>
<div class="city">Los Angeles</div>
<div class="temp">28°C</div>
<div class="desc">Sunny and bright</div>
</article>
<article class="card rainy">
<div class="icon">
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
</div>
<div class="city">London</div>
<div class="temp">15°C</div>
<div class="desc">Light showers</div>
</article>
<article class="card snowy">
<div class="icon">
<div class="flake"></div>
<div class="flake"></div>
<div class="flake"></div>
</div>
<div class="city">Moscow</div>
<div class="temp">-5°C</div>
<div class="desc">Heavy snow</div>
</article>
<article class="card stormy">
<div class="icon">
<div class="lightning"></div>
</div>
<div class="city">Tokyo</div>
<div class="temp">18°C</div>
<div class="desc">Thunderstorm</div>
</article>
</div>
</body>
</html>