|
48 | 48 | height:52px;position:sticky;top:0;z-index:50; |
49 | 49 | box-shadow:0 2px 16px rgba(200,16,46,.35); |
50 | 50 | } |
51 | | - header h1{font-family:'Bebas Neue',sans-serif;font-size:24px;letter-spacing:3px;color:white;} |
| 51 | + .hleft{display:flex;align-items:center;gap:10px;min-width:0;} |
| 52 | + .logo{ |
| 53 | + width:30px;height:30px;border-radius:6px;flex:0 0 auto; |
| 54 | + object-fit:contain;background:rgba(255,255,255,.14); |
| 55 | + border:1px solid rgba(255,255,255,.22); |
| 56 | + } |
| 57 | + header h1{font-family:'Bebas Neue',sans-serif;font-size:24px;letter-spacing:3px;color:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} |
52 | 58 | .hright{display:flex;align-items:center;gap:10px;} |
53 | 59 | #live-clock{font-family:'DM Mono',monospace;font-size:13px;color:rgba(255,255,255,.9);letter-spacing:2px;} |
54 | 60 | .theme-btn{ |
|
185 | 191 | @media(max-width:600px){ |
186 | 192 | .cp{font-size:34px;}.ct{font-size:46px;} |
187 | 193 | header h1{font-size:18px;}#live-clock{display:none;} |
| 194 | + .logo{width:26px;height:26px;border-radius:5px;} |
188 | 195 | .sched-row{grid-template-columns:1fr 110px 40px;padding:9px 12px;} |
189 | 196 | .sched-row.cur{padding-left:9px;} |
190 | 197 | .hero{padding:16px 18px;} |
|
194 | 201 | <body> |
195 | 202 |
|
196 | 203 | <header> |
197 | | - <h1>GWHS · Bell Schedule</h1> |
| 204 | + <div class="hleft"> |
| 205 | + <img class="logo" src="https://www.sfusd.edu/sites/default/files/school-logos/School%20logo_0.jpg" alt="GWHS logo" loading="eager" decoding="async" referrerpolicy="no-referrer"> |
| 206 | + <h1>GWHS · Bell Schedule</h1> |
| 207 | + </div> |
198 | 208 | <div class="hright"> |
199 | 209 | <div id="live-clock">--:--:-- --</div> |
200 | 210 | <button class="theme-btn" onclick="toggleTheme()"> |
@@ -323,7 +333,7 @@ <h3>📝 My Class Names</h3> |
323 | 333 | const p=sched.p,n=now(),start=ss(p),end=se(p); |
324 | 334 | if(n<start){ |
325 | 335 | const d=start-n; |
326 | | - el.innerHTML=`<div class="before-banner"><div><div class="hl">School hasn't started yet</div><h2>First bell at ${t12(p[0].s)}</h2></div><div class="si">Starts in <span id="sit" style="color:var(--text);font-weight:600">${hms(d)}</span></div></div>`; |
| 336 | + el.innerHTML=`<div class="before-banner"><div><div class="hl">School hasn't started yet</div><h2>First bell at ${t12(p[0].s)}</h2></div><div class="si">Starts in <span id="sit" style="color:var(--red)">${hms(d)}</span></div></div>`; |
327 | 337 | return; |
328 | 338 | } |
329 | 339 | if(n>=end){ |
|
0 commit comments