Run details
- Model
- mistralai/pixtral-large-2502
- Route
- OpenRouter API
- Served by
- Amazon Bedrock
- Effort
- no thinking
- Limits
- 60 min · 102,400 output tokens (model max)
- Date
- 26 Nov 2026
- Time
- 20 s
- Size
- 4.0 kB
- Tokens
- 85 in, 1,581 out
- List price
- $0.010 at today's price ($2.00 in / $6.00 out per M)
- Paid
- $0.010
Prompt
Draw a mechanical wristwatch that shows the current local time, with a sweeping seconds hand and a date window. Make it look expensive. It must be one complete, self-contained HTML file: inline all CSS and JavaScript, and make no network requests of any kind (no CDNs, web fonts or remote images). Reply with the file in a single ```html code block.
Source
4.0 kB 120 lines Raw
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mechanical Wristwatch</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #222;
margin: 0;
font-family: Arial, sans-serif;
}
.watch {
position: relative;
width: 300px;
height: 300px;
background: radial-gradient(circle, #fff, #ddd);
border: 5px solid #aaa;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.face {
position: absolute;
width: 100%;
height: 100%;
background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIj4KICAgIDxnIG9wYWNpdHk9Ii41IiBmb250LWZhbWlseT0iQ0MgQ0MiPgogICAgICAgIDxwYXRoIGQ9Ik0yNDUuNSAxNDUuNWMtOS41IDAtMjQuNSA3LjUtMjQuNSAyNC41Yy03LjUgNy41LTExLjggNy41LTI0LjUgMjQuNWMtOS41IDAtMjQuNSA3LjUtMjQuNSAyNC41Yy03LjUgNy41LTExLjggNy41LTI0LjUgMjQuNWMtOS41IDAtMjQuNSA3LjUtMjQuNSAyNC41Yy03LjUgNy41LTExLjggNy41LTI0LjUgMjQuNXoiLz4KICAgIDwvZz4KPC9zdmc+Cg==') no-repeat center;
}
.hand {
position: absolute;
width: 50%;
height: 6px;
background: #333;
top: 50%;
transform-origin: 100%;
transform: rotate(0deg);
transition: transform 0.5s ease-in-out;
}
.hour {
height: 8px;
width: 30%;
}
.minute {
height: 6px;
width: 40%;
background: #555;
}
.second {
height: 3px;
width: 45%;
background: #f00;
}
.center {
position: absolute;
width: 10px;
height: 10px;
background: #333;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.date-window {
position: absolute;
width: 50px;
height: 20px;
background: #fff;
border: 1px solid #333;
top: 140px;
left: 125px;
text-align: center;
line-height: 20px;
font-size: 12px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body>
<div class="watch">
<div class="face"></div>
<div class="hand hour" id="hour"></div>
<div class="hand minute" id="minute"></div>
<div class="hand second" id="second"></div>
<div class="center"></div>
<div class="date-window" id="date-window"></div>
</div>
<script>
function updateClock() {
const now = new Date();
const hours = now.getHours();
const minutes = now.getMinutes();
const seconds = now.getSeconds();
const hourHand = document.getElementById('hour');
const minuteHand = document.getElementById('minute');
const secondHand = document.getElementById('second');
const dateWindow = document.getElementById('date-window');
const hourDeg = (hours % 12) * 30 + (minutes / 60) * 30;
const minuteDeg = minutes * 6 + (seconds / 60) * 6;
const secondDeg = seconds * 6;
hourHand.style.transform = `rotate(${hourDeg}deg)`;
minuteHand.style.transform = `rotate(${minuteDeg}deg)`;
secondHand.style.transform = `rotate(${secondDeg}deg)`;
const options = { year: 'numeric', month: '2-digit', day: '2-digit' };
dateWindow.textContent = now.toLocaleDateString(undefined, options);
requestAnimationFrame(updateClock);
}
updateClock();
</script>
</body>
</html>

