-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilds.html
More file actions
305 lines (290 loc) · 21.4 KB
/
Copy pathbuilds.html
File metadata and controls
305 lines (290 loc) · 21.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Side builds by Michael Baffour Awuah. Non-science web apps and tools built outside the lab.">
<meta property="og:title" content="Other Tools · Michael Baffour Awuah">
<meta property="og:description" content="Web apps and tools built outside the lab, usually because someone I care about needed them.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Michael Baffour Awuah">
<meta property="og:url" content="https://mbaffour.github.io/builds.html">
<meta property="og:image" content="https://mbaffour.github.io/headshot.webp">
<meta name="theme-color" content="#f7f4ea" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0a0802" media="(prefers-color-scheme: dark)">
<link rel="canonical" href="https://mbaffour.github.io/builds.html">
<link rel="alternate" type="application/rss+xml" title="Michael Baffour Awuah — Blog & Notes" href="https://mbaffour.github.io/feed.xml">
<title>Other Tools · Michael Baffour Awuah</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><polygon points='16,5 25,10 25,18 16,23 7,18 7,10' fill='%23f4c430' stroke='%23f4c430' stroke-width='1.5'/><line x1='16' y1='23' x2='16' y2='28' stroke='%23f4c430' stroke-width='2' stroke-linecap='round'/><line x1='13' y1='28' x2='19' y2='28' stroke='%23f4c430' stroke-width='2' stroke-linecap='round'/></svg>">
<link rel="preload" href="assets/fonts/fraunces-var-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="assets/fonts/inter-var-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="assets/fonts/fonts.css">
<link rel="stylesheet" href="assets/css/tailfiber.css">
<style>
:root {
--bg: #0a0802; --bg-card: #1c1709; --bg-card-hover: #241d0c;
--border: rgba(244,196,48,0.10); --border-strong: rgba(244,196,48,0.22);
--gold: #f4c430; --green: #1f9249; --red: #d4324b;
--ink: #f5edd8; --ink-2: #d8c98c; --ink-3: #a08652;
--font-display: 'Fraunces','Georgia',serif;
--font-body: 'Inter','Segoe UI',sans-serif;
--font-mono: 'JetBrains Mono','Courier New',monospace;
}
html[data-theme="light"] {
--bg: #f7f4ea; --bg-card: #ffffff; --bg-card-hover: #fffaed;
--border: rgba(164,130,58,0.18); --border-strong: rgba(164,130,58,0.38);
/* #9a6e00 gave 4.01:1 for the button label below — under AA. */
--gold: #7d5800; --green: #0f6a2e; --red: #a01a30;
--ink: #1a1408; --ink-2: #3a2c0e; --ink-3: #7a5e2a;
}
html[data-theme="light"] .topbar { background: rgba(247,244,234,0.92); }
/* Light without JavaScript: the rules above need data-theme, which only
the inline script sets, so a blocked script left a light-mode visitor
on the dark defaults. :not([data-theme]) keeps an explicit choice
winning. Values track the block above. */
@media (prefers-color-scheme: light) {
html:not([data-theme]) {
--bg: #f7f4ea; --bg-card: #ffffff; --bg-card-hover: #fffaed;
--border: rgba(164,130,58,0.18); --border-strong: rgba(164,130,58,0.38);
--gold: #7d5800; --green: #0f6a2e; --red: #a01a30;
--ink: #1a1408; --ink-2: #3a2c0e; --ink-3: #7a5e2a;
}
html:not([data-theme]) .topbar { background: rgba(247,244,234,0.92); }
html:not([data-theme]) .theme-toggle .ti-sun { display:none; }
html:not([data-theme]) .theme-toggle .ti-moon { display:block; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.topbar { border-bottom: 1px solid var(--border); padding: 18px 0; position: sticky; top: 0; background: rgba(10,8,2,0.85); backdrop-filter: blur(10px); z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.back { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.back:hover { color: var(--gold); }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
header.hero { padding: 72px 0 36px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 14px 0; }
h1 .accent { color: var(--gold); }
.lede { color: var(--ink-2); max-width: 640px; font-size: 1.05rem; }
.hero-actions { margin-top: 22px; }
.note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); border-left: 2px solid var(--border-strong); padding-left: 14px; }
/* min() keeps the 300px track from becoming a hard floor: below a
~350px screen the track shrinks to the container instead of
pushing the page sideways. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; padding: 24px 0 72px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; }
.card p { color: var(--ink-2); font-size: 0.94rem; margin: 12px 0 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.actions { display: flex; gap: 10px; }
.btn { font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none; padding: 9px 16px; border-radius: 10px; transition: all 0.2s; }
/* var(--bg), not a fixed ink: hard-coding dark text meant the label sat
on light-mode gold at 4.01:1. This flips with the theme and clears AA
both ways (5.84:1 light, ~16:1 dark). */
.btn-primary { background: var(--gold); color: var(--bg); font-weight: 500; }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(244,196,48,0.3); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--ink-3); font-size: 0.85rem; }
footer a { color: var(--gold); text-decoration: none; }
.theme-toggle { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:7px;border:1px solid var(--border-strong);background:transparent;color:var(--ink-3);cursor:pointer;transition:all .2s; }
.theme-toggle:hover { color:var(--gold);border-color:var(--gold); }
/* chrome for the TailFiber section (its game styles live in tailfiber.css) */
.section { padding: 56px 0 24px; max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
.section-title .highlight { color: var(--gold); font-style: italic; }
.section-subtitle { color: var(--ink-2); max-width: 640px; margin: 10px auto 0; font-size: 0.98rem; }
.theme-toggle .ti-sun { display:block; }
.theme-toggle .ti-moon { display:none; }
html[data-theme="light"] .theme-toggle .ti-sun { display:none; }
html[data-theme="light"] .theme-toggle .ti-moon { display:block; }
</style>
<!-- Reading localStorage throws when storage is blocked; without the catch
the attribute is never set and the dark default wins regardless of the
visitor's preference. -->
<script>(function(){var t=null;try{t=localStorage.getItem('theme')}catch(e){}
if(t!=='dark'&&t!=='light'){t=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'}
document.documentElement.setAttribute('data-theme',t)})()</script>
<style>
.skip-link{position:absolute;left:1rem;top:-3rem;z-index:2000;padding:.7rem 1.15rem;background:#f4c430;color:#121009;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;font-weight:700;border-radius:0 0 10px 10px;text-decoration:none;transition:top .18s ease}
.skip-link:focus{top:0}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}html{scroll-behavior:auto}}
</style>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Other Tools — Michael Baffour Awuah">
<meta name="twitter:description" content="Free, browser-based, privacy-first web apps built outside the lab.">
<meta name="twitter:image" content="https://mbaffour.github.io/assets/og-card.jpg">
</head>
<body>
<a href="#main" class="skip-link">Skip to main content</a>
<main id="main">
<div class="topbar">
<div class="wrap">
<a href="index.html" class="back">← Back to research site</a>
<span class="brand">Michael Baffour Awuah</span>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle light/dark mode" title="Toggle light/dark mode">
<svg class="ti-sun" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
<svg class="ti-moon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
</div>
</div>
<div class="wrap">
<header class="hero">
<span class="eyebrow">Other Tools</span>
<h1>Tools I built <span class="accent">outside the lab</span></h1>
<p class="lede">Web apps built outside my research, all free, browser-based, and privacy-first. Each one has a blog post explaining the why and how behind it.</p>
<p class="note">Separate from my <a href="index.html#tools" style="color:var(--gold);">research software</a> — they're here so the science stays front and center on the main site. Click any card to open the app, read the blog post, or go straight to the source.</p>
<p class="hero-actions"><a class="btn btn-primary" href="#next">🎮 Play TailFiber, the receptor-docking phage game ↓</a></p>
<p class="note">The AI on this page is product surface — generated explanations and training programs. The research-side machine learning lives with the <a href="index.html#tools" style="color:var(--gold);">science tools</a>: the PlaqSeg plaque segmenter and the pooled AlphaFold 3 screen designer.</p>
</header>
<div class="grid" id="buildsGrid"></div>
</div>
<!-- ===== TAILFIBER — playable outreach game ===== -->
<section class="section fade-in" id="next">
<div class="section-header">
<span class="section-label">Outreach · Arcade game</span>
<h2 class="section-title">Tail<span class="highlight">Fiber</span></h2>
<p class="section-subtitle">A receptor-docking phage game built on real biology — finished, and playable right here. Arrow keys or WASD; a joystick appears on touch screens.</p>
</div>
<div class="concept-card">
<div class="concept-status">
<span class="concept-status-dot"></span>
<span class="concept-status-label">Live · play it now</span>
</div>
<div class="concept-grid">
<div class="concept-text">
<h3 class="concept-title">
<span class="concept-codename">TailFiber</span>
<span class="concept-sub">a scientifically-grounded phage simulator</span>
</h3>
<p class="concept-tagline">
Dock to the right receptor. Dodge antibodies, complement, and macrophages. Outpace CRISPR. Evolve your tail fibers. Burst.
</p>
<p class="concept-body">
A small browser game that compresses the real biology of phage adsorption, infection timing, and host defense into something a microbiologist nods at and a 12-year-old loses an hour to. Built to double as outreach material — Darwin Day, K–12, conferences.
</p>
<div class="concept-pills-group">
<div class="concept-pills-row">
<span class="concept-pills-label">Receptors</span>
<span class="concept-pill">LPS</span>
<span class="concept-pill">OmpC</span>
<span class="concept-pill">LamB</span>
<span class="concept-pill">Type IV pili</span>
<span class="concept-pill">NfrA</span>
</div>
<div class="concept-pills-row">
<span class="concept-pills-label">Defenses</span>
<span class="concept-pill">Antibodies</span>
<span class="concept-pill">CRISPR</span>
<span class="concept-pill">Restriction</span>
<span class="concept-pill">Biofilm</span>
</div>
<div class="concept-pills-row">
<span class="concept-pills-label">Real phages</span>
<span class="concept-pill phage">T4</span>
<span class="concept-pill phage">λ (Lambda)</span>
<span class="concept-pill phage">N4</span>
<span class="concept-pill phage">ICP1</span>
</div>
</div>
<div class="concept-actions">
<a href="mailto:baffour@tamu.edu?subject=TailFiber%20feedback" class="btn btn-primary">📬 Send feedback</a>
<a href="https://github.com/mbaffour" target="_blank" rel="noopener" class="btn btn-ghost">⌥ Follow on GitHub</a>
</div>
</div>
<div class="concept-viz">
<!-- tabindex so the game can hold focus: its key handlers are
gated on that, and without it wrap.focus() was a no-op and
the game could never legitimately claim the arrow keys. -->
<div class="tf-wrap" id="tfWrap" tabindex="0"
aria-label="TailFiber game. Click or press Enter to play; arrow keys or WASD to move.">
<canvas class="tf-canvas" id="tfCanvas" role="img" aria-label="TailFiber phage simulator game canvas"></canvas>
<!-- HUD overlay -->
<div class="tf-hud">
<div class="tf-hud-row">
<div class="tf-stat"><span class="tf-stat-label">SCORE</span><span class="tf-stat-val" id="tfScore">0</span></div>
<div class="tf-stat"><span class="tf-stat-label">LYSES</span><span class="tf-stat-val" id="tfLyses">0</span></div>
<div class="tf-stat"><span class="tf-stat-label" id="tfTimeLabel">TIME</span><span class="tf-stat-val" id="tfTime">90</span></div>
<button class="tf-pause-btn" id="tfFullBtn" title="Fullscreen [F]" aria-label="Toggle fullscreen">⛶</button>
<button class="tf-pause-btn" id="tfPauseBtn" title="Pause [P]" aria-label="Pause">⏸</button>
</div>
<div class="tf-hp-wrap">
<div class="tf-hp-bar"><div class="tf-hp-fill" id="tfHpFill"></div></div>
<span class="tf-hp-label">HP</span>
<span class="tf-level-badge" id="tfLevel">LVL 1</span>
</div>
<div class="tf-fiber-wrap">
<span class="tf-fiber-label">TAIL FIBER</span>
<div class="tf-fiber-options">
<button class="tf-fiber-btn active" data-fiber="lps" title="LPS · [1]">LPS</button>
<button class="tf-fiber-btn" data-fiber="ompc" title="OmpC · [2]">OmpC</button>
<button class="tf-fiber-btn" data-fiber="lamb" title="LamB · [3]">LamB</button>
<button class="tf-fiber-btn" data-fiber="pili" title="Pili · [4]">Pili</button>
<button class="tf-fiber-btn" data-fiber="nfra" title="NfrA · [5]">NfrA</button>
</div>
</div>
</div>
<!-- Setup / start / pause / over screen -->
<div class="tf-overlay" id="tfOverlay">
<div class="tf-overlay-card" id="tfOverlayCard">
<!-- Body swapped per screen by JS -->
</div>
</div>
<!-- Toast tip -->
<div class="tf-toast" id="tfToast"></div>
<!-- Mobile joystick -->
<div class="tf-joystick" id="tfJoystick" aria-hidden="true">
<div class="tf-joystick-thumb" id="tfJoyThumb"></div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer>
<div class="wrap">
© 2026 Michael Baffour Awuah · <a href="index.html">Research site</a> · <a href="https://github.com/mbaffour" target="_blank" rel="noopener">GitHub</a>
</div>
</footer>
<script src="assets/js/builds-data.js"></script>
<script>
const esc = s => s.replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c]));
document.getElementById('buildsGrid').innerHTML = builds.map(b => `
<article class="card">
<div class="card-top">
<h2>${esc(b.title)}</h2>
<span class="date">${esc(b.date)}</span>
</div>
<p>${esc(b.blurb)}</p>
<div class="tags">${b.tech.map(t => `<span class="tag">${esc(t)}</span>`).join('')}</div>
<div class="actions">
<a class="btn btn-primary" href="${b.app}" target="_blank" rel="noopener">Open app ↗</a>
${b.repo ? `<a class="btn btn-ghost" href="${b.repo}" target="_blank" rel="noopener">Source ↗</a>` : ''}
${b.blog ? `<a class="btn btn-ghost" href="${b.blog}" target="_blank" rel="noopener">Read blog ↗</a>` : ''}
</div>
</article>`).join('');
// Theme toggle
(function() {
var btn = document.getElementById('themeToggle');
if (!btn) return;
btn.addEventListener('click', function() {
var next = document.documentElement.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', next);
localStorage.setItem('theme', next);
btn.setAttribute('aria-label', next === 'dark' ? 'Switch to light mode' : 'Switch to dark mode');
});
})();
</script>
<script defer src="assets/js/tailfiber.js"></script>
</body>
</html>