• Updated 5 Dec, 01:22 UTC
  • Next run 5 Dec, 05:17 UTCNext 5 Dec 05:17
  • Last 7 days: 7 new models · 66 runs7 d: 7 models · 66 runs
Wristwatch that shows the current time

Step 5StepFun

Network offOpen alone (new tab)

Run details

Model
stepfun/step-5
Route
OpenRouter API
Served by
StepFun
Effort
max (OpenRouter default)
Limits
60 min · 64,000 output tokens (model max)
Date
4 Dec 2026
Time
4 min 10 s
Size
26 kB
Tokens
96 in, 33,288 out (24,804 thinking)
List price
$0.090 at today's price ($1.00 in / $2.70 out per M)
Paid
$0.090

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

26 kB 613 lines Raw

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="theme-color" content="#070a0c">
  <meta name="color-scheme" content="dark">
  <link rel="icon" href="data:,">
  <title>Aurelian — Automatique</title>
  <style>
    * { box-sizing: border-box; }

    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      display: grid;
      place-items: center;
      overflow: hidden;
      color: #c8b98f;
      background:
        radial-gradient(ellipse at 50% 38%, #263139 0%, #121a20 36%, #080c0f 68%, #040607 100%);
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      user-select: none;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.035), transparent 42%),
        linear-gradient(115deg, transparent 34%, rgba(255,255,255,.022) 50%, transparent 66%);
    }

    .shell {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 12px;
    }

    .watch-wrap {
      width: min(92vw, 60vh, 580px);
      aspect-ratio: 2 / 3;
      animation: reveal 900ms cubic-bezier(.2,.7,.2,1) both;
    }

    .watch-wrap svg {
      display: block;
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .meta {
      width: min(92vw, 60vh, 580px);
      display: flex;
      justify-content: space-between;
      gap: 18px;
      padding: 0 5px;
      color: #8f8368;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 2px;
      line-height: 1.4;
      text-transform: uppercase;
      opacity: .82;
    }

    @keyframes reveal {
      from { opacity: 0; transform: translateY(10px) scale(.985); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 480px) {
      .meta {
        font-size: 7px;
        letter-spacing: 1.25px;
      }
    }

    @media (max-height: 620px) {
      .meta { display: none; }
      .watch-wrap { width: min(94vw, 64vh, 580px); }
    }

    @media (prefers-reduced-motion: reduce) {
      .watch-wrap { animation: none; }
    }
  </style>
</head>
<body>
  <main class="shell">
    <div class="watch-wrap">
      <svg id="watch" viewBox="0 0 600 900" role="img" aria-labelledby="watchTitle watchDesc" shape-rendering="geometricPrecision">
        <title id="watchTitle">Aurelian automatic wristwatch</title>
        <desc id="watchDesc">A rose gold mechanical wristwatch with a dark sunburst dial, sweeping small seconds hand, and date window showing the current local time.</desc>

        <defs>
          <linearGradient id="caseGold" x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stop-color="#fff3c4"/>
            <stop offset=".16" stop-color="#d9ab57"/>
            <stop offset=".34" stop-color="#8a5a22"/>
            <stop offset=".52" stop-color="#f1d28a"/>
            <stop offset=".72" stop-color="#a9712d"/>
            <stop offset="1" stop-color="#4b2b0e"/>
          </linearGradient>

          <linearGradient id="bezelGold" x1="0" y1="0" x2=".85" y2="1">
            <stop offset="0" stop-color="#fff0b8"/>
            <stop offset=".2" stop-color="#c99642"/>
            <stop offset=".43" stop-color="#6f4518"/>
            <stop offset=".62" stop-color="#e7c477"/>
            <stop offset=".82" stop-color="#a56f2b"/>
            <stop offset="1" stop-color="#492a0e"/>
          </linearGradient>

          <linearGradient id="handGold" x1="0" y1="0" x2="1" y2="0">
            <stop offset="0" stop-color="#6e4618"/>
            <stop offset=".28" stop-color="#d5aa55"/>
            <stop offset=".5" stop-color="#fff0b5"/>
            <stop offset=".72" stop-color="#b88432"/>
            <stop offset="1" stop-color="#5d3a12"/>
          </linearGradient>

          <linearGradient id="leather" x1="0" y1="0" x2="1" y2="0">
            <stop offset="0" stop-color="#100a07"/>
            <stop offset=".2" stop-color="#332016"/>
            <stop offset=".48" stop-color="#4b2f20"/>
            <stop offset=".76" stop-color="#2a190f"/>
            <stop offset="1" stop-color="#0d0806"/>
          </linearGradient>

          <linearGradient id="ivory" x1="0" y1="0" x2="0" y2="1">
            <stop offset="0" stop-color="#fffdf2"/>
            <stop offset=".55" stop-color="#f3eedc"/>
            <stop offset="1" stop-color="#d8cfb6"/>
          </linearGradient>

          <radialGradient id="dialGradient" cx="40%" cy="30%" r="78%">
            <stop offset="0" stop-color="#203139"/>
            <stop offset=".42" stop-color="#0c171d"/>
            <stop offset=".78" stop-color="#050a0d"/>
            <stop offset="1" stop-color="#020507"/>
          </radialGradient>

          <radialGradient id="subdialGradient" cx="40%" cy="34%" r="76%">
            <stop offset="0" stop-color="#17252c"/>
            <stop offset=".55" stop-color="#091216"/>
            <stop offset="1" stop-color="#020506"/>
          </radialGradient>

          <radialGradient id="glassSheen" cx="30%" cy="20%" r="82%">
            <stop offset="0" stop-color="#ffffff" stop-opacity=".15"/>
            <stop offset=".42" stop-color="#ffffff" stop-opacity=".035"/>
            <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
          </radialGradient>

          <linearGradient id="crystalGlare" x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stop-color="#ffffff" stop-opacity=".2"/>
            <stop offset=".38" stop-color="#ffffff" stop-opacity=".055"/>
            <stop offset=".62" stop-color="#ffffff" stop-opacity="0"/>
            <stop offset="1" stop-color="#ffffff" stop-opacity=".025"/>
          </linearGradient>

          <pattern id="scales" width="36" height="28" patternUnits="userSpaceOnUse">
            <rect x="0" y="0" width="17" height="13" rx="4" fill="#080504" fill-opacity=".32" stroke="#9a6845" stroke-opacity=".2" stroke-width=".8"/>
            <rect x="18" y="0" width="17" height="13" rx="4" fill="#080504" fill-opacity=".32" stroke="#9a6845" stroke-opacity=".2" stroke-width=".8"/>
            <rect x="9" y="14" width="17" height="13" rx="4" fill="#080504" fill-opacity=".32" stroke="#9a6845" stroke-opacity=".2" stroke-width=".8"/>
            <rect x="27" y="14" width="17" height="13" rx="4" fill="#080504" fill-opacity=".32" stroke="#9a6845" stroke-opacity=".2" stroke-width=".8"/>
          </pattern>

          <pattern id="guilloche" width="10" height="10" patternUnits="userSpaceOnUse">
            <path d="M0 5 Q5 0 10 5 Q5 10 0 5" fill="none" stroke="#d8c48d" stroke-opacity=".12" stroke-width=".5"/>
          </pattern>

          <filter id="softBlur" x="-50%" y="-50%" width="200%" height="200%" color-interpolation-filters="sRGB">
            <feGaussianBlur stdDeviation="14"/>
          </filter>

          <filter id="strapShadow" x="-30%" y="-20%" width="160%" height="140%" color-interpolation-filters="sRGB">
            <feDropShadow dx="0" dy="9" stdDeviation="9" flood-color="#000000" flood-opacity=".72"/>
          </filter>

          <filter id="caseShadow" x="-30%" y="-30%" width="160%" height="170%" color-interpolation-filters="sRGB">
            <feDropShadow dx="0" dy="16" stdDeviation="15" flood-color="#000000" flood-opacity=".78"/>
          </filter>

          <filter id="handShadow" x="-100%" y="-100%" width="300%" height="300%" color-interpolation-filters="sRGB">
            <feDropShadow dx="1" dy="2" stdDeviation="1.4" flood-color="#000000" flood-opacity=".88"/>
          </filter>

          <clipPath id="dialClip">
            <circle cx="300" cy="430" r="178"/>
          </clipPath>

          <clipPath id="subClip">
            <circle cx="300" cy="526" r="46"/>
          </clipPath>
        </defs>

        <!-- Ambient shadow -->
        <ellipse cx="300" cy="445" rx="235" ry="320" fill="#000000" opacity=".28" filter="url(#softBlur)"/>

        <!-- Alligator strap -->
        <g filter="url(#strapShadow)">
          <path d="M220 0 H380 L371 218 Q368 242 344 254 Q300 274 256 254 Q232 242 229 218 Z"
                fill="url(#leather)" stroke="#0b0604" stroke-width="3" stroke-linejoin="round"/>
          <path d="M220 0 H380 L371 218 Q368 242 344 254 Q300 274 256 254 Q232 242 229 218 Z"
                fill="url(#scales)" opacity=".72"/>

          <path d="M229 616 Q232 592 256 580 Q300 560 344 580 Q368 592 371 616 L380 900 H220 Z"
                fill="url(#leather)" stroke="#0b0604" stroke-width="3" stroke-linejoin="round"/>
          <path d="M229 616 Q232 592 256 580 Q300 560 344 580 Q368 592 371 616 L380 900 H220 Z"
                fill="url(#scales)" opacity=".72"/>

          <g fill="none" stroke="#c9a66b" stroke-width="1.2" stroke-dasharray="3 5" stroke-opacity=".55" stroke-linecap="round">
            <path d="M234 8 L241 214"/>
            <path d="M366 8 L359 214"/>
            <path d="M241 700 L234 892"/>
            <path d="M359 700 L366 892"/>
          </g>

          <g fill="none" stroke-linecap="round">
            <path d="M220 0 L229 218" stroke="#6f432a" stroke-width="2" opacity=".55"/>
            <path d="M380 0 L371 218" stroke="#6f432a" stroke-width="2" opacity=".55"/>
            <path d="M220 900 L229 616" stroke="#6f432a" stroke-width="2" opacity=".55"/>
            <path d="M380 900 L371 616" stroke="#6f432a" stroke-width="2" opacity=".55"/>
            <path d="M300 0 V220" stroke="#a06b43" stroke-width="1" opacity=".12"/>
            <path d="M300 680 V900" stroke="#a06b43" stroke-width="1" opacity=".12"/>
          </g>

          <!-- Leather keeper -->
          <rect x="224" y="58" width="152" height="28" rx="7" fill="url(#leather)" stroke="#0b0604" stroke-width="2"/>
          <rect x="232" y="64" width="136" height="16" rx="4" fill="none" stroke="#8a5a3a" stroke-width="1" opacity=".45"/>
          <path d="M236 66 V78 M364 66 V78" stroke="#c49a5c" stroke-width="1" stroke-dasharray="2 4" opacity=".5"/>

          <!-- Strap holes -->
          <g fill="#080403" stroke="#6b4128" stroke-width="1.2">
            <ellipse cx="300" cy="708" rx="5" ry="8"/>
            <ellipse cx="300" cy="748" rx="5" ry="8"/>
            <ellipse cx="300" cy="788" rx="5" ry="8"/>
            <ellipse cx="300" cy="828" rx="5" ry="8"/>
            <ellipse cx="300" cy="868" rx="5" ry="8"/>
          </g>
          <g fill="#b07b4c" opacity=".32">
            <ellipse cx="298.5" cy="705" rx="1.1" ry="2.4"/>
            <ellipse cx="298.5" cy="745" rx="1.1" ry="2.4"/>
            <ellipse cx="298.5" cy="785" rx="1.1" ry="2.4"/>
            <ellipse cx="298.5" cy="825" rx="1.1" ry="2.4"/>
            <ellipse cx="298.5" cy="865" rx="1.1" ry="2.4"/>
          </g>
        </g>

        <!-- Rose gold lugs -->
        <g fill="url(#caseGold)" stroke="#5b3816" stroke-width="2" stroke-linejoin="round">
          <path d="M196 202 Q202 180 224 178 L255 205 L246 262 L208 274 L184 248 Z"/>
          <path d="M404 202 Q398 180 376 178 L345 205 L354 262 L392 274 L416 248 Z"/>
          <path d="M208 586 L246 574 L255 631 L246 660 L224 702 Q202 694 190 670 L184 614 Z"/>
          <path d="M392 586 L354 574 L345 631 L354 660 L376 702 Q398 694 410 670 L416 614 Z"/>
        </g>

        <g fill="none" stroke="#ffe8ad" stroke-width="2" stroke-linecap="round" opacity=".5">
          <path d="M205 203 Q213 187 231 187 L250 208"/>
          <path d="M395 203 Q387 187 369 187 L350 208"/>
          <path d="M202 662 Q210 680 224 687"/>
          <path d="M398 662 Q390 680 376 687"/>
        </g>

        <g fill="#6b4518" stroke="#f3d58a" stroke-width="1">
          <circle cx="207" cy="237" r="4.5"/>
          <circle cx="393" cy="237" r="4.5"/>
          <circle cx="207" cy="623" r="4.5"/>
          <circle cx="393" cy="623" r="4.5"/>
        </g>
        <g stroke="#2a180a" stroke-width="1.2" stroke-linecap="round">
          <path d="M204.5 237 H209.5 M390.5 237 H395.5"/>
          <path d="M204.5 623 H209.5 M390.5 623 H395.5"/>
        </g>

        <!-- Fluted crown -->
        <g filter="url(#handShadow)">
          <rect x="493" y="413" width="25" height="34" rx="5" fill="url(#caseGold)" stroke="#5b3816" stroke-width="1.5"/>
          <rect x="507" y="395" width="36" height="70" rx="11" fill="url(#caseGold)" stroke="#5b3816" stroke-width="1.8"/>
          <ellipse cx="542" cy="430" rx="7" ry="33" fill="url(#caseGold)" stroke="#5b3816" stroke-width="1.5"/>
          <path d="M514 400 V460 M520 398 V462 M526 398 V462 M532 400 V460"
                stroke="#5d3a16" stroke-width="2" opacity=".72"/>
          <path d="M516 401 V459 M522 399 V461 M528 399 V461 M534 401 V459"
                stroke="#f8dfa0" stroke-width=".8" opacity=".38"/>
          <ellipse cx="542" cy="430" rx="3" ry="20" fill="none" stroke="#f7dda0" stroke-width="1" opacity=".35"/>
          <ellipse cx="521" cy="405" rx="8" ry="2.5" fill="#fff3c4" opacity=".28"/>
        </g>

        <!-- Case and dial -->
        <g filter="url(#caseShadow)">
          <circle cx="300" cy="430" r="207" fill="url(#caseGold)" stroke="#4a2c10" stroke-width="2"/>
          <circle cx="300" cy="430" r="200" fill="none" stroke="#f8e0a0" stroke-width="2" opacity=".72"/>
          <circle cx="300" cy="430" r="195" fill="url(#bezelGold)" stroke="#6a451b" stroke-width="1.5"/>
          <circle cx="300" cy="430" r="188" fill="none" stroke="#fff2bd" stroke-width="1" opacity=".48"/>
          <circle cx="300" cy="430" r="186" fill="#100b06" stroke="#f1d18a" stroke-width="1.6"/>
          <circle cx="300" cy="430" r="181" fill="url(#dialGradient)"/>

          <g clip-path="url(#dialClip)">
            <circle cx="300" cy="430" r="178" fill="url(#dialGradient)"/>
            <g id="sunrays"></g>

            <g fill="none" stroke="#d9c48d" stroke-opacity=".035" stroke-width=".6">
              <circle cx="300" cy="430" r="54"/>
              <circle cx="300" cy="430" r="92"/>
              <circle cx="300" cy="430" r="130"/>
              <circle cx="300" cy="430" r="166"/>
            </g>

            <circle cx="300" cy="430" r="178" fill="url(#glassSheen)" opacity=".2"/>
            <circle cx="300" cy="430" r="178" fill="none" stroke="#000000" stroke-width="5" opacity=".45"/>
            <circle cx="300" cy="430" r="176" fill="none" stroke="#d6bd80" stroke-width=".7" opacity=".22"/>
          </g>

          <circle cx="300" cy="430" r="173" fill="none" stroke="#a48b55" stroke-width=".7" opacity=".28"/>
          <g id="minuteTrack"></g>
          <g id="hourMarkers" filter="url(#handShadow)"></g>

          <!-- Maker's mark -->
          <g filter="url(#handShadow)">
            <path d="M300 304 l5 8 -5 8 -5 -8 z" fill="url(#handGold)" stroke="#6b4518" stroke-width=".6"/>
          </g>

          <text x="300" y="337" text-anchor="middle"
                font-family="Georgia, 'Times New Roman', serif" font-size="19"
                letter-spacing="3.2" fill="#e6d3a1">AURELIAN</text>
          <text x="300" y="353" text-anchor="middle"
                font-family="Arial, Helvetica, sans-serif" font-size="7"
                letter-spacing="2.8" fill="#b9a77f">GENÈVE</text>
          <text x="300" y="372" text-anchor="middle"
                font-family="Arial, Helvetica, sans-serif" font-size="6.2"
                letter-spacing="1.8" fill="#8f8264">MÉCANIQUE AUTOMATIQUE</text>

          <!-- Date window -->
          <text x="382" y="404" text-anchor="middle"
                font-family="Arial, Helvetica, sans-serif" font-size="5.2"
                letter-spacing="1.5" fill="#9b8c68">DATE</text>
          <g filter="url(#handShadow)">
            <rect x="350" y="411" width="64" height="36" rx="3"
                  fill="url(#handGold)" stroke="#5a3a14" stroke-width="1"/>
            <rect x="354" y="415" width="56" height="28" rx="1"
                  fill="url(#ivory)" stroke="#7a6a45" stroke-width=".8"/>
            <text id="dateText" x="382" y="435" text-anchor="middle"
                  font-family="Arial, Helvetica, sans-serif" font-size="17"
                  font-weight="600" letter-spacing="1" fill="#17140e">01</text>
          </g>

          <!-- Small seconds subdial -->
          <g>
            <circle cx="300" cy="526" r="51" fill="#020405" stroke="#c9a75e" stroke-width="1.6"/>
            <circle cx="300" cy="526" r="48" fill="url(#subdialGradient)" stroke="#6d5831" stroke-width=".8"/>

            <g clip-path="url(#subClip)">
              <circle cx="300" cy="526" r="46" fill="url(#guilloche)" opacity=".52"/>
              <g fill="none" stroke="#d8c48d" stroke-opacity=".07" stroke-width=".55">
                <circle cx="300" cy="526" r="10"/>
                <circle cx="300" cy="526" r="18"/>
                <circle cx="300" cy="526" r="26"/>
                <circle cx="300" cy="526" r="34"/>
                <circle cx="300" cy="526" r="42"/>
              </g>
            </g>

            <g id="subTicks"></g>

            <g font-family="Arial, Helvetica, sans-serif" font-size="6.5" fill="#b8a77e" text-anchor="middle">
              <text x="300" y="496">60</text>
              <text x="330" y="529">15</text>
              <text x="300" y="563">30</text>
              <text x="270" y="529">45</text>
            </g>

            <g id="secondsHand" filter="url(#handShadow)">
              <line x1="300" y1="548" x2="300" y2="486"
                    stroke="#d8b66b" stroke-width="1.8" stroke-linecap="round"/>
              <line x1="299.35" y1="488" x2="299.35" y2="544"
                    stroke="#fff1bd" stroke-width=".5" stroke-opacity=".62"/>
              <circle cx="300" cy="543" r="3.2" fill="#d8b66b"/>
            </g>

            <circle cx="300" cy="526" r="4.8" fill="url(#handGold)" stroke="#4b3010" stroke-width=".8"/>
            <circle cx="300" cy="526" r="1.6" fill="#f7e2a6"/>
          </g>

          <text x="300" y="591" text-anchor="middle"
                font-family="Arial, Helvetica, sans-serif" font-size="6"
                letter-spacing="2" fill="#9b8d6c">SWISS MADE</text>

          <!-- Dauphine hour hand -->
          <g id="hourHand" filter="url(#handShadow)">
            <path d="M300 438 L291 389 L296 337 L300 311 L304 337 L309 389 Z"
                  fill="url(#handGold)" stroke="#5c3a12" stroke-width=".8" stroke-linejoin="round"/>
            <path d="M300 430 L297 350 L300 322 L303 350 Z" fill="#f7ebc5" opacity=".5"/>
            <path d="M300 438 L294 449 L300 459 L306 449 Z"
                  fill="url(#handGold)" stroke="#5c3a12" stroke-width=".8" stroke-linejoin="round"/>
            <line x1="300" y1="322" x2="300" y2="430" stroke="#fff4c9" stroke-width=".6" opacity=".58"/>
          </g>

          <!-- Dauphine minute hand -->
          <g id="minuteHand" filter="url(#handShadow)">
            <path d="M300 440 L290 372 L295 298 L300 261 L305 298 L310 372 Z"
                  fill="url(#handGold)" stroke="#5c3a12" stroke-width=".8" stroke-linejoin="round"/>
            <path d="M300 432 L297 310 L300 273 L303 310 Z" fill="#f7ebc5" opacity=".5"/>
            <path d="M300 440 L293 453 L300 466 L307 453 Z"
                  fill="url(#handGold)" stroke="#5c3a12" stroke-width=".8" stroke-linejoin="round"/>
            <line x1="300" y1="273" x2="300" y2="432" stroke="#fff4c9" stroke-width=".6" opacity=".58"/>
          </g>

          <!-- Central pin -->
          <circle cx="300" cy="430" r="10" fill="url(#handGold)" stroke="#5c3a12" stroke-width="1"/>
          <circle cx="300" cy="430" r="5" fill="#2a1b0b"/>
          <circle cx="300" cy="430" r="2.2" fill="#f6dda0"/>

          <!-- Sapphire crystal reflections -->
          <g clip-path="url(#dialClip)" pointer-events="none">
            <path d="M126 302 L204 246 L443 585 L359 627 Z"
                  fill="url(#crystalGlare)" opacity=".17"/>
            <ellipse cx="235" cy="325" rx="125" ry="95" fill="url(#glassSheen)" opacity=".11"/>
            <path d="M146 282 Q210 250 276 248" fill="none" stroke="#ffffff"
                  stroke-width="2" stroke-linecap="round" opacity=".12"/>
            <path d="M392 276 Q454 326 472 402" fill="none" stroke="#ffffff"
                  stroke-width="6" stroke-linecap="round" opacity=".035"/>

            <!-- Faint cyclops lens over the date -->
            <ellipse cx="382" cy="429" rx="39" ry="25" fill="none"
                     stroke="#ffffff" stroke-opacity=".075" stroke-width="1.2"/>
            <path d="M352 421 Q382 405 412 421" fill="none"
                  stroke="#ffffff" stroke-opacity=".12" stroke-width="1.4"/>
          </g>

          <!-- Polished case highlights -->
          <circle cx="300" cy="430" r="207" fill="none" stroke="#3a220c" stroke-width="2" opacity=".72"/>
          <circle cx="300" cy="430" r="205" fill="none" stroke="#fff0b8" stroke-width="1.2" opacity=".45"/>
          <path d="M132 328 A205 205 0 0 1 270 225" fill="none"
                stroke="#fff7d6" stroke-width="3" stroke-linecap="round" opacity=".5"/>
          <path d="M472 532 A205 205 0 0 1 330 635" fill="none"
                stroke="#fff0b8" stroke-width="2" stroke-linecap="round" opacity=".18"/>
        </g>
      </svg>
    </div>

    <div class="meta">
      <span>Automatique · 21 Jewels</span>
      <span id="zone">Local Time</span>
    </div>
  </main>

  <script>
    (() => {
      const NS = "http://www.w3.org/2000/svg";
      const byId = id => document.getElementById(id);
      const make = (tag, attrs) => {
        const node = document.createElementNS(NS, tag);
        for (const [key, value] of Object.entries(attrs)) {
          node.setAttribute(key, value);
        }
        return node;
      };

      const point = (cx, cy, radius, degrees) => {
        const angle = (degrees - 90) * Math.PI / 180;
        return [
          cx + radius * Math.cos(angle),
          cy + radius * Math.sin(angle)
        ];
      };

      // Fine sunburst brushing on the dial.
      const sunrays = byId("sunrays");
      for (let i = 0; i < 180; i++) {
        const angle = i * 2;
        const [x1, y1] = point(300, 430, 18, angle);
        const [x2, y2] = point(300, 430, 177, angle);
        sunrays.appendChild(make("line", {
          x1, y1, x2, y2,
          stroke: "#e8f1f2",
          "stroke-width": i % 3 === 0 ? ".65" : ".35",
          "stroke-opacity": i % 2 === 0 ? ".035" : ".018"
        }));
      }

      // Minute track.
      const minuteTrack = byId("minuteTrack");
      for (let i = 0; i < 60; i++) {
        if (i === 30) continue;
        const major = i % 5 === 0;
        const [x1, y1] = point(300, 430, major ? 160 : 165, i * 6);
        const [x2, y2] = point(300, 430, 171, i * 6);
        minuteTrack.appendChild(make("line", {
          x1, y1, x2, y2,
          stroke: major ? "#d8c18a" : "#8d8266",
          "stroke-width": major ? "1.4" : ".7",
          "stroke-opacity": major ? ".95" : ".7",
          "stroke-linecap": "round"
        }));
      }

      // Applied hour markers, leaving space for the date and small seconds.
      const hourMarkers = byId("hourMarkers");
      for (let i = 0; i < 12; i++) {
        if (i === 3 || i === 6) continue;

        const marker = make("g", {
          transform: `rotate(${i * 30} 300 430)`
        });

        if (i === 0) {
          marker.appendChild(make("rect", {
            x: 290, y: 273, width: 5, height: 19, rx: 1,
            fill: "url(#handGold)", stroke: "#6b4518", "stroke-width": ".6"
          }));
          marker.appendChild(make("rect", {
            x: 305, y: 273, width: 5, height: 19, rx: 1,
            fill: "url(#handGold)", stroke: "#6b4518", "stroke-width": ".6"
          }));
          marker.appendChild(make("rect", {
            x: 291, y: 275, width: 1, height: 16,
            fill: "#fff1bd", opacity: ".5"
          }));
          marker.appendChild(make("rect", {
            x: 306, y: 275, width: 1, height: 16,
            fill: "#fff1bd", opacity: ".5"
          }));
        } else {
          marker.appendChild(make("line", {
            x1: 300, y1: 274, x2: 300, y2: 293,
            stroke: "#d8b66b", "stroke-width": 4, "stroke-linecap": "round"
          }));
          marker.appendChild(make("line", {
            x1: 299, y1: 276, x2: 299, y2: 291,
            stroke: "#fff1bd", "stroke-width": ".7", "stroke-opacity": ".55"
          }));
        }

        hourMarkers.appendChild(marker);
      }

      // Small seconds track.
      const subTicks = byId("subTicks");
      for (let i = 0; i < 60; i++) {
        const major = i % 5 === 0;
        const [x1, y1] = point(300, 526, major ? 37 : 41, i * 6);
        const [x2, y2] = point(300, 526, 44, i * 6);
        subTicks.appendChild(make("line", {
          x1, y1, x2, y2,
          stroke: major ? "#d9c48c" : "#8e8264",
          "stroke-width": major ? "1.1" : ".55",
          "stroke-opacity": major ? ".9" : ".65"
        }));
      }

      const hourHand = byId("hourHand");
      const minuteHand = byId("minuteHand");
      const secondsHand = byId("secondsHand");
      const dateText = byId("dateText");
      const zone = byId("zone");

      let lastDate = "";
      let lastZone = "";

      try {
        zone.title = Intl.DateTimeFormat().resolvedOptions().timeZone || "Local time";
      } catch (_) {}

      function updateZone(now) {
        const offset = -now.getTimezoneOffset();
        const sign = offset >= 0 ? "+" : "−";
        const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, "0");
        const minutes = String(Math.abs(offset) % 60).padStart(2, "0");
        const label = `LOCAL · UTC${sign}${hours}:${minutes}`;

        if (label !== lastZone) {
          zone.textContent = label;
          lastZone = label;
        }
      }

      function tick() {
        const now = new Date();
        const seconds = now.getSeconds() + now.getMilliseconds() / 1000;
        const minutes = now.getMinutes() + seconds / 60;
        const hours = (now.getHours() % 12) + minutes / 60;

        secondsHand.setAttribute("transform", `rotate(${seconds * 6} 300 526)`);
        minuteHand.setAttribute("transform", `rotate(${minutes * 6} 300 430)`);
        hourHand.setAttribute("transform", `rotate(${hours * 30} 300 430)`);

        const day = String(now.getDate()).padStart(2, "0");
        if (day !== lastDate) {
          dateText.textContent = day;
          lastDate = day;
        }

        updateZone(now);
        requestAnimationFrame(tick);
      }

      tick();
    })();
  </script>
</body>
</html>

Compare

Other runs