Merge pull request #7 from ok2/codex/improve-analog-clock-design

Improve analog clock style
This commit is contained in:
Kiyomichi Kosaka 2025-06-14 22:27:19 +02:00 committed by GitHub
commit 1a8453dc15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,13 @@
<title>CoBiE Analog Clock</title> <title>CoBiE Analog Clock</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<style> <style>
body, html { height:100%; margin:0; } body, html {
height: 100%;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
color: #e0e0e0;
}
.analog-clock-container { .analog-clock-container {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -15,11 +21,24 @@
} }
#clock { #clock {
position: relative; position: relative;
width:90vmin; width: 80vmin;
height:90vmin; height: 80vmin;
border:6px solid #fff; border: 2px solid rgba(255, 255, 255, 0.2);
border-radius: 50%; border-radius: 50%;
background:radial-gradient(circle, #1a1f3a 0%, #0a0e27 100%); background: radial-gradient(circle at center, #0a0e27 0%, #1a1f3a 100%);
box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 40px rgba(255, 0, 255, 0.2);
}
#clock::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 1.2em;
height: 1.2em;
transform: translate(-50%, -50%);
background: #ffffff;
border-radius: 50%;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
} }
.marker { .marker {
position: absolute; position: absolute;
@ -28,7 +47,9 @@
text-align: center; text-align: center;
line-height: 2em; line-height: 2em;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
color:#fff; font-size: 1.1em;
color: #ffffff;
text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.hand { .hand {
@ -36,10 +57,27 @@
bottom: 50%; bottom: 50%;
left: 50%; left: 50%;
transform-origin: bottom; transform-origin: bottom;
transition: transform 0.5s ease-in-out;
border-radius: 2px;
}
.hand.xeno {
width: 4px;
height: 40%;
background: #00ffff;
box-shadow: 0 0 6px #00ffff;
}
.hand.quantic {
width: 3px;
height: 35%;
background: #ff00ff;
box-shadow: 0 0 6px #ff00ff;
}
.hand.chronon {
width: 2px;
height: 30%;
background: #ffff00;
box-shadow: 0 0 6px #ffff00;
} }
.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> </style>
</head> </head>
<body> <body>