|
| 1 | +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); |
| 2 | + |
| 3 | +* { |
| 4 | + box-sizing: border-box; |
| 5 | + margin: 0; |
| 6 | + padding: 0; |
| 7 | +} |
| 8 | + |
| 9 | +body { |
| 10 | + min-height: 100vh; |
| 11 | + font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; |
| 12 | + background: #f5f6fa; |
| 13 | + color: #1f2a44; |
| 14 | + display: flex; |
| 15 | + align-items: center; |
| 16 | + justify-content: center; |
| 17 | + padding: 24px 16px; |
| 18 | +} |
| 19 | + |
| 20 | +.page { |
| 21 | + width: min(960px, 100%); |
| 22 | + display: flex; |
| 23 | + justify-content: center; |
| 24 | +} |
| 25 | + |
| 26 | +.clock-card { |
| 27 | + width: 100%; |
| 28 | + background: #ffffff; |
| 29 | + border: 1px solid #e4e7ee; |
| 30 | + border-radius: 14px; |
| 31 | + padding: 28px 22px; |
| 32 | + box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05); |
| 33 | +} |
| 34 | + |
| 35 | +.clock-header { |
| 36 | + text-align: center; |
| 37 | + margin-bottom: 22px; |
| 38 | +} |
| 39 | + |
| 40 | + |
| 41 | +.clock-header h1 { |
| 42 | + font-size: clamp(1.8rem, 3vw, 2.4rem); |
| 43 | + font-weight: 700; |
| 44 | + margin-bottom: 4px; |
| 45 | +} |
| 46 | + |
| 47 | +.subtitle { |
| 48 | + color: #6b7280; |
| 49 | + font-size: 0.93rem; |
| 50 | + line-height: 1.5; |
| 51 | +} |
| 52 | + |
| 53 | +.clock-face { |
| 54 | + background: #f4f6fb; |
| 55 | + border-radius: 12px; |
| 56 | + padding: 20px; |
| 57 | + border: 1px solid #e4e7ee; |
| 58 | +} |
| 59 | + |
| 60 | +.time-row { |
| 61 | + display: flex; |
| 62 | + align-items: center; |
| 63 | + justify-content: center; |
| 64 | + gap: 12px; |
| 65 | + flex-wrap: wrap; |
| 66 | +} |
| 67 | + |
| 68 | +.time-block { |
| 69 | + text-align: center; |
| 70 | + background: #ffffff; |
| 71 | + border-radius: 10px; |
| 72 | + padding: 12px 10px; |
| 73 | + border: 1px solid #e4e7ee; |
| 74 | + min-width: 110px; |
| 75 | +} |
| 76 | + |
| 77 | +.label { |
| 78 | + display: block; |
| 79 | + color: #6b7280; |
| 80 | + font-size: 0.85rem; |
| 81 | + margin-bottom: 4px; |
| 82 | +} |
| 83 | + |
| 84 | +.value { |
| 85 | + display: inline-block; |
| 86 | + font-size: clamp(2.4rem, 4vw, 3.2rem); |
| 87 | + font-weight: 700; |
| 88 | + letter-spacing: 0.04em; |
| 89 | +} |
| 90 | + |
| 91 | +.colon { |
| 92 | + text-align: center; |
| 93 | + font-size: clamp(2.4rem, 4vw, 3.2rem); |
| 94 | + font-weight: 700; |
| 95 | + color: #2563eb; |
| 96 | + padding: 0 4px; |
| 97 | +} |
| 98 | + |
| 99 | +.ampm { |
| 100 | + justify-self: end; |
| 101 | + padding: 10px 12px; |
| 102 | + border-radius: 10px; |
| 103 | + background: #e8f1ff; |
| 104 | + color: #1d4ed8; |
| 105 | + font-weight: 600; |
| 106 | + border: 1px solid #d6e5ff; |
| 107 | + letter-spacing: 0.05em; |
| 108 | +} |
| 109 | + |
| 110 | +.controls { |
| 111 | + margin-top: 24px; |
| 112 | + display: flex; |
| 113 | + align-items: center; |
| 114 | + gap: 16px; |
| 115 | + flex-wrap: wrap; |
| 116 | + justify-content: center; |
| 117 | + text-align: center; |
| 118 | +} |
| 119 | + |
| 120 | +.controls button { |
| 121 | + background: #2563eb; |
| 122 | + color: #ffffff; |
| 123 | + border: none; |
| 124 | + border-radius: 10px; |
| 125 | + padding: 12px 16px; |
| 126 | + font-weight: 600; |
| 127 | + cursor: pointer; |
| 128 | + transition: transform 0.15s ease, box-shadow 0.15s ease; |
| 129 | + box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25); |
| 130 | +} |
| 131 | + |
| 132 | +.controls button:hover { |
| 133 | + transform: translateY(-1px); |
| 134 | + box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28); |
| 135 | +} |
| 136 | + |
| 137 | +.controls button:active { |
| 138 | + transform: translateY(0); |
| 139 | +} |
| 140 | + |
| 141 | +/* Responsive Design */ |
| 142 | +@media (max-width: 680px) { |
| 143 | + body { |
| 144 | + padding: 16px; |
| 145 | + } |
| 146 | + |
| 147 | + .clock-card { |
| 148 | + padding: 22px 16px; |
| 149 | + } |
| 150 | + |
| 151 | + .time-row { |
| 152 | + flex-direction: column; |
| 153 | + gap: 10px; |
| 154 | + } |
| 155 | + |
| 156 | + .colon { |
| 157 | + display: none; |
| 158 | + } |
| 159 | + |
| 160 | + .ampm { |
| 161 | + width: 100%; |
| 162 | + text-align: center; |
| 163 | + } |
| 164 | +} |
0 commit comments