• Updated 25 Nov, 00:22 UTC
  • Next run 25 Nov, 05:17 UTCNext 25 Nov 05:17
  • Last 7 days: 6 new models · 62 runs7 d: 6 models · 62 runs
Wristwatch that shows the current time

Solar Mini 4.5Upstage

Network offOpen alone (new tab)

Run details

Model
upstage/solar-mini-4-5
Route
OpenRouter API
Served by
Upstage
Effort
medium (OpenRouter default)
Limits
60 min · 131,072 output tokens (model max)
Date
25 Nov 2026
Time
18 s
Size
23 kB
Tokens
124 in, 6,794 out
List price
<$0.001 at today's price ($0.01 in / $0.04 out per M)
Paid
<$0.001

Raw: output · meta.json

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

23 kB 596 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 · Avant Garde</title>
    <style>
        /* ---------- RESET & GLOBAL ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 30% 20%, #1e1e26, #0a0a0f 90%);
            font-family: 'Georgia', 'Times New Roman', serif;
            padding: 1.5rem;
            margin: 0;
        }

        /* ---------- MAIN WRAPPER (metallic depth) ---------- */
        .watch-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.8))
                    drop-shadow(0 0 12px rgba(212, 175, 55, 0.2));
        }

        /* ---------- WATCH CASE (luxury bezel) ---------- */
        .watch-case {
            position: relative;
            width: 480px;
            height: 480px;
            border-radius: 50%;
            background: radial-gradient(circle at 32% 28%, #f9f9fb 0%, #c0c0c8 30%, #7d7d88 55%, #3d3d45 80%, #1e1e24 100%);
            box-shadow: 
                inset 0 0 30px rgba(0, 0, 0, 0.9),
                inset 0 0 12px rgba(255, 245, 200, 0.5),
                0 20px 30px rgba(0, 0, 0, 0.8),
                0 0 25px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(212, 175, 55, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* inner chamfer ring (gold trim) */
        .watch-case::before {
            content: "";
            position: absolute;
            width: 95%;
            height: 95%;
            border-radius: 50%;
            background: conic-gradient(from 210deg, #8b7a3e, #f0e5a0, #b9a75b, #d4c97a, #8b7a3e);
            -webkit-mask: radial-gradient(circle, transparent 94%, black 95%);
            mask: radial-gradient(circle, transparent 94%, black 95%);
            opacity: 0.8;
            pointer-events: none;
        }

        /* ---------- DIAL (skeleton, premium dark blue) ---------- */
        .watch-dial {
            position: relative;
            width: 410px;
            height: 410px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 35%, #1c2a3a, #0e141d 85%, #020406);
            box-shadow: 
                inset 0 0 28px #020202,
                inset 0 0 70px #1b2b3a,
                0 0 0 3px #2f2f3a,
                0 0 0 6px #6d6d7a,
                0 0 0 10px #1a1a1e,
                0 15px 35px rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* subtle guilloché texture using repeating-radial-gradient */
        .watch-dial::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 6px);
            pointer-events: none;
        }

        /* inner shadow for depth */
        .watch-dial > * {
            position: absolute;
        }

        /* ---------- APPLICATION PLATES / RUNNING MECHANISM (skeleton style) ---------- */
        .plate {
            position: absolute;
            width: 170px;
            height: 170px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #2d2d3a, #0a0a0c 85%);
            box-shadow: inset 0 0 15px #000, 0 0 0 1px #5a5a6a, 0 8px 18px #000;
            border: 1px solid #777788;
            opacity: 0.75;
            pointer-events: none;
            z-index: 2;
        }

        .plate.top-plate {
            top: 18%;
            left: 18%;
            transform: rotate(0deg);
            background: radial-gradient(circle at 40% 40%, #31313f, #0f0f12 90%);
        }

        .plate.bottom-plate {
            bottom: 12%;
            right: 12%;
            width: 140px;
            height: 140px;
            opacity: 0.55;
            background: radial-gradient(circle at 60% 60%, #2e2e3a, #060608 90%);
            box-shadow: inset 0 0 12px #000, 0 0 0 1px #444455;
        }

        .plate.left-bridge {
            top: 42%;
            left: 4%;
            width: 80px;
            height: 110px;
            border-radius: 40px 20px 20px 40px;
            transform: rotate(0deg);
            opacity: 0.45;
            background: linear-gradient(135deg, #24242c, #09090b);
        }

        .plate.right-bridge {
            top: 42%;
            right: 4%;
            width: 80px;
            height: 110px;
            border-radius: 20px 40px 40px 20px;
            opacity: 0.45;
            background: linear-gradient(45deg, #24242c, #09090b);
        }

        /* tiny screws / jewels for mechanical detail */
        .jewel {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, #ffffd0, #a08c4b 55%, #3e3e2e 90%);
            box-shadow: 0 0 6px #ffd966, 0 0 2px #fff8e0;
            opacity: 0.8;
            z-index: 3;
            pointer-events: none;
        }

        .jewel.one { top: 28%; left: 28%; }
        .jewel.two { top: 68%; left: 68%; width: 7px; height: 7px; }
        .jewel.three { top: 60%; left: 38%; width: 6px; height: 6px; }
        .jewel.four { top: 40%; left: 70%; width: 5px; height: 5px; }

        /* ---------- CENTRAL PIVOT (gold ruby) ---------- */
        .central-pivot {
            position: absolute;
            width: 28px;
            height: 28px;
            background: radial-gradient(circle at 35% 35%, #fff6d5, #c2a54b 40%, #6b5a1e 80%, #222210);
            border-radius: 50%;
            box-shadow: 0 0 12px #d4af37, inset 0 0 4px #00000080;
            z-index: 15;
            border: 1px solid #f0e5a0;
            pointer-events: none;
        }

        /* ---------- HANDS ---------- */
        .hand {
            position: absolute;
            top: 50%;
            left: 50%;
            transform-origin: center center;
            border-radius: 8px 8px 4px 4px;
            box-shadow: 0 0 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
            z-index: 10;
            pointer-events: none;
            transition: none; /* updates via JS */
        }

        /* hour hand – slim, blued steel */
        .hour-hand {
            width: 10px;
            height: 105px;
            background: linear-gradient(to right, #4a4a5a, #2d2d38 40%, #17171e);
            border-radius: 6px 6px 2px 2px;
            margin-left: -5px;
            margin-top: -105px;
            box-shadow: 0 0 15px #1e1e2e, 0 4px 8px #000000;
            z-index: 8;
        }

        /* minute hand – longer, elegant */
        .minute-hand {
            width: 7px;
            height: 150px;
            background: linear-gradient(to right, #e0e0e0, #9a9a9a 30%, #3c3c3c);
            border-radius: 5px 5px 2px 2px;
            margin-left: -3.5px;
            margin-top: -150px;
            box-shadow: 0 0 18px #d4af37, 0 3px 8px #000000;
            z-index: 9;
        }

        /* seconds hand – slim, with counterweight */
        .second-hand {
            width: 3px;
            height: 175px;
            background: linear-gradient(to right, #d4af37, #f9e6a0, #6b5a20);
            border-radius: 3px;
            margin-left: -1.5px;
            margin-top: -175px;
            box-shadow: 0 0 14px #ffd966, 0 0 4px #fff8d0;
            z-index: 12;
            transition: none; /* will be set via JS */
        }

        /* seconds counterweight (circle at bottom) */
        .second-hand::after {
            content: "";
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 12px;
            height: 12px;
            background: radial-gradient(circle at 40% 35%, #ffdd80, #a5883a 60%, #2b240c);
            border-radius: 50%;
            box-shadow: 0 0 10px #ffd966;
            border: 1px solid #f0e5a0;
        }

        /* ---------- DATE WINDOW (at 3 o'clock) ---------- */
        .date-window {
            position: absolute;
            top: 48%;
            left: 68%;
            width: 56px;
            height: 56px;
            background: #f1f3f5;
            border-radius: 8px;
            box-shadow: 
                0 0 0 1px #3a3a40,
                0 0 0 3px #2a2a2e,
                0 0 0 5px #6d6d7a,
                inset 0 0 15px #5c5c6e,
                0 6px 12px #000000;
            transform: translate(-50%, -50%);
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid #0a0a0c;
            font-family: 'Georgia', 'Times New Roman', serif;
            font-size: 32px;
            font-weight: 700;
            color: #141414;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 -1px 1px #00000040;
            background: linear-gradient(145deg, #fafcff, #b0b0c0 85%, #6b6b7a);
        }

        /* date window inner glint */
        .date-window::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 50%;
            background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.8), transparent 70%);
            pointer-events: none;
            opacity: 0.6;
        }

        /* ---------- MARKERS (luxury applied indices) ---------- */
        .marker {
            position: absolute;
            width: 12px;
            height: 12px;
            background: radial-gradient(circle at 35% 30%, #ffffff, #b0a88a 55%, #3e3e2a 90%);
            box-shadow: 0 0 8px #d4af37, inset 0 0 3px #00000080;
            border-radius: 2px;
            z-index: 5;
            transform: translate(-50%, -50%);
            pointer-events: none;
            border: 1px solid #1a1a1e;
            opacity: 0.9;
        }

        .marker.major {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            background: linear-gradient(135deg, #f0e5a0, #b09a5a, #3d381e);
            box-shadow: 0 0 12px #e0c868, 0 0 0 1px #0f0f12;
            transform: translate(-50%, -50%) rotate(0deg);
        }

        .marker.minor {
            width: 7px;
            height: 7px;
            background: #aaaabb;
            box-shadow: 0 0 6px #888899;
            border-radius: 50%;
            border: 1px solid #22222a;
        }

        /* minute track / scale (subtle) */
        .minute-track {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 380px;
            height: 380px;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
            opacity: 0.4;
            border: 1px dashed #777788;
            box-shadow: 0 0 20px inset #00000060;
        }

        /* ---------- BEZEL GLINT / LUXURY ---------- */
        .bezel-glint {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 60%);
            pointer-events: none;
            z-index: 30;
            box-shadow: inset 0 0 40px #00000030;
        }

        /* ---------- crown ---------- */
        .crown {
            position: absolute;
            top: 50%;
            right: -12px;
            transform: translateY(-50%);
            width: 18px;
            height: 36px;
            background: linear-gradient(90deg, #3a3a40, #c9c9d0 40%, #e0e0e8 70%, #55555f);
            border-radius: 6px;
            box-shadow: 0 0 8px #000000, inset -2px 0 4px #00000080, 2px 0 6px #00000080;
            z-index: 40;
            border: 1px solid #e0e0e8;
        }

        /* ---------- RESPONSIVE ---------- */
        @media (max-width: 550px) {
            .watch-case {
                width: 380px;
                height: 380px;
            }
            .watch-dial {
                width: 320px;
                height: 320px;
            }
            .plate { width: 130px; height: 130px; }
            .plate.top-plate { top: 16%; left: 16%; }
            .plate.bottom-plate { width: 105px; height: 105px; }
            .plate.left-bridge { width: 60px; height: 85px; }
            .plate.right-bridge { width: 60px; height: 85px; }
            .date-window {
                width: 46px;
                height: 46px;
                font-size: 26px;
                top: 48%;
                left: 68%;
            }
            .minute-hand { height: 120px; margin-top: -120px; }
            .hour-hand { height: 85px; margin-top: -85px; }
            .second-hand { height: 150px; margin-top: -150px; }
        }

        @media (max-width: 400px) {
            .watch-case { width: 300px; height: 300px; }
            .watch-dial { width: 260px; height: 260px; }
            .plate { display: none; }
            .date-window {
                width: 38px;
                height: 38px;
                font-size: 22px;
                top: 48%;
                left: 68%;
            }
            .minute-hand { height: 95px; margin-top: -95px; }
            .hour-hand { height: 70px; margin-top: -70px; }
            .second-hand { height: 120px; margin-top: -120px; }
        }
    </style>
</head>
<body>
    <div class="watch-wrapper">
        <div class="watch-case">
            <div class="watch-dial">
                <!-- skeleton application plates -->
                <div class="plate top-plate"></div>
                <div class="plate bottom-plate"></div>
                <div class="plate left-bridge"></div>
                <div class="plate right-bridge"></div>

                <!-- jewels (tiny ruby accents) -->
                <div class="jewel one"></div>
                <div class="jewel two"></div>
                <div class="jewel three"></div>
                <div class="jewel four"></div>

                <!-- luxury markers -->
                <div class="marker major" style="top: 12%; left: 50%;"></div>
                <div class="marker major" style="top: 12%; left: 50%; transform: translate(-50%, -50%) rotate(0deg);"></div>
                <!-- we'll generate the markers via JS to keep them perfect, but for safety fallback: -->

                <!-- minute track -->
                <div class="minute-track"></div>

                <!-- hands (order matters for stacking) -->
                <div class="hand hour-hand" id="hourHand"></div>
                <div class="hand minute-hand" id="minuteHand"></div>
                <div class="hand second-hand" id="secondHand"></div>

                <!-- date window at 3 o'clock -->
                <div class="date-window" id="dateDisplay">12</div>

                <!-- central pivot -->
                <div class="central-pivot"></div>

                <!-- glint overlay (optional luxury shine) -->
                <div class="bezel-glint"></div>
            </div>
            <!-- crown -->
            <div class="crown"></div>
        </div>
    </div>

    <script>
        (function() {
            // ---------- generate luxury markers (minor + major) ----------
            const dial = document.querySelector('.watch-dial');
            const markersContainer = document.createElement('div');
            markersContainer.style.position = 'absolute';
            markersContainer.style.top = '0';
            markersContainer.style.left = '0';
            markersContainer.style.width = '100%';
            markersContainer.style.height = '100%';
            markersContainer.style.borderRadius = '50%';
            markersContainer.style.zIndex = '4';
            markersContainer.style.pointerEvents = 'none';
            dial.appendChild(markersContainer);

            // 12 hours = 360 degrees, 60 minutes = 6 degrees per minute
            // major markers at hours (0, 30, 60, ... 330 deg) — but 12h * 30deg = 360
            for (let i = 0; i < 60; i++) {
                const angle = i * 6; // degrees from top (12 o'clock)
                const isMajor = (i % 5 === 0);
                const marker = document.createElement('div');
                marker.className = isMajor ? 'marker major' : 'marker minor';
                // position using top/left; center at dial center.
                // radius: major ~ 165px? we'll use percentages so it scales.
                const radiusMajor = 46;  // % of dial size from center
                const radiusMinor = 46;
                const radius = isMajor ? radiusMajor : radiusMinor;
                const rad = (angle * Math.PI) / 180;
                const x = 50 + radius * Math.sin(rad);
                const y = 50 - radius * Math.cos(rad);
                marker.style.top = y + '%';
                marker.style.left = x + '%';

                // rotate marker so it points inward? keep upright (luxury style)
                // For a more mechanical look, we can rotate but it's fine.
                markersContainer.appendChild(marker);
            }

            // extra larger index at 12 for symmetry (already covered)
            // we also add a small gold dot at 6 o'clock? no, keep clean.

            // ---------- time keeping & rendering ----------
            const hourHand = document.getElementById('hourHand');
            const minuteHand = document.getElementById('minuteHand');
            const secondHand = document.getElementById('secondHand');
            const dateDisplay = document.getElementById('dateDisplay');

            // function to update all hands and date
            function updateWatch() {
                const now = new Date();
                const hours = now.getHours();
                const minutes = now.getMinutes();
                const seconds = now.getSeconds();
                const milliseconds = now.getMilliseconds();

                // date: get 1-31
                const day = now.getDate();
                dateDisplay.textContent = day;

                // ---- second hand: sweeping (continuous) ----
                // use milliseconds for smooth sweeping
                const secondsWithMs = seconds + milliseconds / 1000;
                const secondAngle = secondsWithMs * 6; // 360/60 = 6 deg per second
                secondHand.style.transform = `rotate(${secondAngle}deg)`;

                // ---- minute hand: moves smoothly with seconds + minutes ----
                const minuteAngle = (minutes + seconds / 60) * 6; // 6 deg per minute
                minuteHand.style.transform = `rotate(${minuteAngle}deg)`;

                // ---- hour hand: moves smoothly with minutes + hours ----
                // 12-hour format; angle = (hours % 12 + minutes/60) * 30
                const hourAngle = ((hours % 12) + minutes / 60) * 30; // 30 deg per hour
                hourHand.style.transform = `rotate(${hourAngle}deg)`;
            }

            // initial update
            updateWatch();

            // use requestAnimationFrame for ultra-smooth sweeping of seconds hand
            // but we also need minute and hour to update smoothly when minutes pass.
            // Using setInterval at 16ms (approx 60fps) is fine, but we also want to update on minute/hour changes.
            // However, using rAF for the full update is simple and smooth.
            function loop() {
                updateWatch();
                requestAnimationFrame(loop);
            }
            // Start the animation loop
            requestAnimationFrame(loop);

            // Also, to avoid any potential mismatch, call updateWatch on a short interval as well?
            // rAF is enough and cleaner. But we'll also add an interval fallback for safety.
            // (Actually rAF is fine, but we'll keep it simple)
            // We'll just rely on rAF, and ensure visibility change resets? No need.

            // (Optional) update every minute for safety, but rAF covers it.
            // For better performance on some devices, we can throttle to 30fps.
            // But rAF with a date update is negligible.
            // We'll keep it.

            // Also, for precise minute/second angle updates on small screens, it's fine.

            // However, one issue: when the tab is inactive, rAF stops. The watch won't update until visible again.
            // That's acceptable for a demo; but to be safe, we can also use setInterval.
            // Let's combine: use setInterval to update every 50ms, but also rAF for smoothness.
            // Actually, we can just use setInterval with 50ms for the seconds hand sweep (60fps is 16ms).
            // To avoid battery drain, we can use rAF and also listen to visibilitychange.
            // For simplicity, we'll use setInterval( updateWatch, 30 ) which is ~33ms, still very smooth.
            // But then minute/hour will update smoothly as well.
            // Let's use setInterval with 33ms for cross-browser smoothness and no tab issues.
            // However, the seconds hand would be slightly less smooth at 30fps, but still looks good.
            // I'll use requestAnimationFrame and also add a setInterval fallback? 
            // To keep it simple and robust, I'll use setInterval at 16ms? That's 60fps.
            // But 60fps interval can be heavy. rAF is better.
            // Let's just use rAF; it's the modern approach and works perfectly for this.
            // I'll also add a small interval to force update when tab is visible again? Not necessary.

            // We'll just keep rAF. It's fine.

            // Additional: on load, we set date to current.
            // Also, we might want to adjust markers to match the date window position.
            // The date window is at 3 o'clock (90 deg from top). Our markers include 3 (i=15, angle=90).
            // That's fine. The date window will cover the marker at 3. That's realistic.

            // Let's also add a small detail: the date window should have a black index at 3.
            // The marker at 3 is already there, covered by date window. Good.

            // Final check: ensure the date window is above markers (z-index 20 vs markers 4). Yes.

            // For a touch of realism, we could add a second minute hand? No, keep clean.

            // Also, we can add a subtle glow to the date when it changes? Not necessary.

            // All set.
        })();
    </script>
</body>
</html>

Compare

Other runs