56 lines
1.4 KiB
HTML
56 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>CoBiE Analog Clock</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
<style>
|
|
body, html { height:100%; margin:0; }
|
|
.analog-clock-container {
|
|
display:flex;
|
|
justify-content:center;
|
|
align-items:center;
|
|
height:100%;
|
|
}
|
|
#clock {
|
|
position:relative;
|
|
width:90vmin;
|
|
height:90vmin;
|
|
border:6px solid #fff;
|
|
border-radius:50%;
|
|
background:radial-gradient(circle, #1a1f3a 0%, #0a0e27 100%);
|
|
}
|
|
.marker {
|
|
position:absolute;
|
|
width:2em;
|
|
height:2em;
|
|
text-align:center;
|
|
line-height:2em;
|
|
font-family:'Courier New', monospace;
|
|
color:#fff;
|
|
transform:translate(-50%, -50%);
|
|
}
|
|
.hand {
|
|
position:absolute;
|
|
bottom:50%;
|
|
left:50%;
|
|
transform-origin:bottom;
|
|
}
|
|
.hand.xeno { width:4px; height:40%; background:#00ffff; }
|
|
.hand.quantic { width:3px; height:35%; background:#ff00ff; }
|
|
.hand.chronon { width:2px; height:30%; background:#ffff00; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="analog-clock-container">
|
|
<div id="clock">
|
|
<div class="hand chronon" id="handChronon"></div>
|
|
<div class="hand quantic" id="handQuantic"></div>
|
|
<div class="hand xeno" id="handXeno"></div>
|
|
</div>
|
|
</div>
|
|
<script src="clock.js"></script>
|
|
</body>
|
|
</html>
|