Skip to content

Commit a1386fa

Browse files
Add GWHS logo next to header title
1 parent 8c19d66 commit a1386fa

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

tools/bell-schedule.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@
4848
height:52px;position:sticky;top:0;z-index:50;
4949
box-shadow:0 2px 16px rgba(200,16,46,.35);
5050
}
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;}
5258
.hright{display:flex;align-items:center;gap:10px;}
5359
#live-clock{font-family:'DM Mono',monospace;font-size:13px;color:rgba(255,255,255,.9);letter-spacing:2px;}
5460
.theme-btn{
@@ -185,6 +191,7 @@
185191
@media(max-width:600px){
186192
.cp{font-size:34px;}.ct{font-size:46px;}
187193
header h1{font-size:18px;}#live-clock{display:none;}
194+
.logo{width:26px;height:26px;border-radius:5px;}
188195
.sched-row{grid-template-columns:1fr 110px 40px;padding:9px 12px;}
189196
.sched-row.cur{padding-left:9px;}
190197
.hero{padding:16px 18px;}
@@ -194,7 +201,10 @@
194201
<body>
195202

196203
<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>
198208
<div class="hright">
199209
<div id="live-clock">--:--:-- --</div>
200210
<button class="theme-btn" onclick="toggleTheme()">
@@ -323,7 +333,7 @@ <h3>📝 My Class Names</h3>
323333
const p=sched.p,n=now(),start=ss(p),end=se(p);
324334
if(n<start){
325335
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>`;
327337
return;
328338
}
329339
if(n>=end){

0 commit comments

Comments
 (0)