only 60 dots, to match normal clocks; colours change through the day and support dark mode

This commit is contained in:
Christian Lawson-Perfect 2025-03-18 09:01:12 +00:00
parent 24758b7758
commit 6eaa95d0f7
3 changed files with 80 additions and 14 deletions

View file

@ -3,12 +3,11 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>A thing made by CLP</title>
<title>Hilbert clock</title>
<script type="module" src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<svg id="board" viewBox="-0.3 -0.3 1.6 1.6" style="max-height: 100svh">
<defs>
<linearGradient id="dots-gradient">
@ -16,12 +15,14 @@
<stop offset="100%" stop-color="white" />
</linearGradient>
</defs>
<rect x="-100" y="-100" width="200" height="200" fill="hsl(140,60%,60%)"/>
<path class="curve" fill="none" stroke="hsl(24,50%,10%)" stroke-width="0.01" stroke-linejoin="round" stroke-linecap="square"/>
<path class="curve" fill="none" stroke="hsl(240,50%,50%)" stroke-width="0.01" stroke-linejoin="round" stroke-linecap="square"/>
<path id="dots" fill="none" stroke="hsl(240,20%,90%)" stroke-width="0.01" stroke-linejoin="round" stroke-linecap="round"/>
<path id="big-hand" class="curve" fill="none" stroke-width="-1.01" stroke-linejoin="round" stroke-linecap="square"/>
<path id="small-hand" class="curve" fill="none" stroke-width="0.01" stroke-linejoin="round" stroke-linecap="square"/>
<path id="dots" fill="none" stroke-width="0.01" stroke-linejoin="round" stroke-linecap="round"/>
<text id="debug" fill="white" font-size="0.1"></debug>
</svg>
</main>
<footer>
<p><a href="https://somethingorotherwhatever.com">made by clp</a></p>
</footer.
</body>
</html>