Changes to worldticks.scroll.pub

root
root
26 days ago
Initial commit
body.html
Changed around line 1
+
+

WorldTicks

+

Real-time visualizations across time zones

+
+
+
+
+
+

Sydney

+
+
+
+
+
+
+
+
+
+
+

Brisbane

+
+
+
+
+
+
+
+
+
+
+

Tokyo

+
+
+
+
+
+
+
+
+
+
+

London

+
+
+
+
+
+
+
+
+
+
+
+
+

Made with ❤️ for time zone travelers

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://worldticks.scroll.pub
+ metaTags
+ description "Beautiful real-time clock visualizations for Sydney, Brisbane, Tokyo and London"
+ keywords "world clock, time zones, clock visualization, Sydney time, Brisbane time, Tokyo time, London time"
+ editButton /edit.html
+ title WorldTicks - Beautiful World Time Visualizations
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # worldticks.scroll.pub
+ Website generated by Claude from prompt: Clock visualisations for current time in Sydney, Brisbane, Tokyo and London
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const clocks = document.querySelectorAll('.clock');
+
+ function updateClocks() {
+ clocks.forEach(clock => {
+ const timezone = clock.dataset.timezone;
+ const now = new Date().toLocaleString('en-US', { timeZone: timezone });
+ const time = new Date(now);
+
+ const hours = time.getHours();
+ const minutes = time.getMinutes();
+ const seconds = time.getSeconds();
+
+ const hourDeg = (hours % 12) * 30 + minutes * 0.5;
+ const minuteDeg = minutes * 6;
+ const secondDeg = seconds * 6;
+
+ const hourHand = clock.querySelector('.hour');
+ const minuteHand = clock.querySelector('.minute');
+ const secondHand = clock.querySelector('.second');
+ const timeDisplay = clock.querySelector('.time-display');
+
+ hourHand.style.transform = `rotate(${hourDeg}deg)`;
+ minuteHand.style.transform = `rotate(${minuteDeg}deg)`;
+ secondHand.style.transform = `rotate(${secondDeg}deg)`;
+
+ timeDisplay.textContent = time.toLocaleTimeString('en-US', {
+ hour: '2-digit',
+ minute: '2-digit',
+ hour12: true
+ });
+ });
+ }
+
+ // Update every second
+ setInterval(updateClocks, 1000);
+ // Initial update
+ updateClocks();
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2a2b2e;
+ --accent-color: #4a90e2;
+ --background-color: #f5f6fa;
+ --card-background: #ffffff;
+ --text-color: #2a2b2e;
+ --clock-size: 200px;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ background: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header {
+ text-align: center;
+ padding: 2rem 1rem;
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
+ color: white;
+ }
+
+ h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ .tagline {
+ font-size: 1.1rem;
+ opacity: 0.9;
+ }
+
+ main {
+ flex: 1;
+ padding: 2rem;
+ }
+
+ .clock-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .clock-card {
+ background: var(--card-background);
+ border-radius: 15px;
+ padding: 1.5rem;
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
+ text-align: center;
+ transition: transform 0.3s ease;
+ }
+
+ .clock-card:hover {
+ transform: translateY(-5px);
+ }
+
+ .clock-card h2 {
+ margin-bottom: 1.5rem;
+ color: var(--accent-color);
+ }
+
+ .clock {
+ width: var(--clock-size);
+ height: var(--clock-size);
+ border: 8px solid var(--primary-color);
+ border-radius: 50%;
+ margin: 0 auto;
+ position: relative;
+ background: var(--card-background);
+ }
+
+ .hand {
+ position: absolute;
+ bottom: 50%;
+ left: 50%;
+ transform-origin: bottom;
+ background: var(--primary-color);
+ border-radius: 4px;
+ }
+
+ .hour {
+ width: 4px;
+ height: 25%;
+ }
+
+ .minute {
+ width: 3px;
+ height: 35%;
+ background: var(--accent-color);
+ }
+
+ .second {
+ width: 2px;
+ height: 40%;
+ background: #e74c3c;
+ }
+
+ .center-dot {
+ position: absolute;
+ width: 12px;
+ height: 12px;
+ background: var(--accent-color);
+ border-radius: 50%;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ }
+
+ .time-display {
+ position: absolute;
+ bottom: 25%;
+ left: 50%;
+ transform: translateX(-50%);
+ font-size: 1rem;
+ font-weight: 500;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ background: var(--primary-color);
+ color: white;
+ }
+
+ @media (max-width: 768px) {
+ :root {
+ --clock-size: 180px;
+ }
+
+ .clock-grid {
+ gap: 1.5rem;
+ }
+
+ header {
+ padding: 1.5rem 1rem;
+ }
+
+ h1 {
+ font-size: 2rem;
+ }
+ }
+
+ @media (max-width: 480px) {
+ :root {
+ --clock-size: 160px;
+ }
+
+ main {
+ padding: 1rem;
+ }
+ }