Skip to content

Commit b88dfbb

Browse files
A1L13NA1L13Nclaude
authored
One design system for every Alpha One Labs site (#1120)
* Add the Alpha One Labs design system at design.alphaonelabs.com brand.css (black, white and solder-gold tokens with light and dark themes), chrome.js (shared <a1-header> and <a1-footer> with a cross-site theme toggle), the A1 mark from the original artwork, the maker illustrations from the makerspace poster, and a showcase page documenting all of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Redesign the GSoC site on the design system with seasonal leaderboards New GSoC 2027 home page and ideas page built on brand.css and the shared chrome. The leaderboard now covers the 2025, 2026 and 2027 seasons, links every contributor to their GitHub profile, folds in merged PRs from the repositories that were folded into the monorepo, and no longer penalizes PRs closed when the Django site retired. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bring learn onto the Alpha One Labs brand Black header with the A1 mark and a gold trace, the shared footer, gold accents in place of teal and theme sync with the other sites. Layout and features are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bring EarthMind, VoxBridge, QuantaLab and PMOSS onto the brand Shared header and footer, brand tokens in light and dark, and accessibility fixes. EarthMind's map now uses OpenStreetMap tiles, and the retired llama-3.1-8b-instruct model is replaced with llama-3.3-70b-instruct-fp8-fast. Also fixes VoxBridge's read-aloud buttons and QuantaLab's welcome screen and mobile experiment list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bring BotLab, Mockuper and Virtual onto the brand Shared header and footer (header only above Mockuper's full-screen editor and Virtual's world), brand tokens in light and dark, and maker illustrations on BotLab's landing and Virtual's login. Also fixes BotLab's scroll-reveal sections that never appeared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: A1L13N <nagnation@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 09d7fd9 commit b88dfbb

71 files changed

Lines changed: 5153 additions & 3419 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎botlab/3D/app.js‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function setControlMode(mode, title, detail) {
248248
}
249249

250250
function setFont(context, size, weight = 500) {
251-
context.font = `${weight} ${size}px "Segoe UI", Arial, sans-serif`;
251+
context.font = `${weight} ${size}px Inter, "Segoe UI", Arial, sans-serif`;
252252
}
253253

254254
function fillText(context, text, x, y, size, color, align = "left", weight = 500) {
@@ -1219,7 +1219,7 @@ function drawSim() {
12191219
ctx.lineTo(xTop, horizonY);
12201220
ctx.stroke();
12211221
}
1222-
ctx.strokeStyle = bgr([25, 45, 45]);
1222+
ctx.strokeStyle = bgr([22, 38, 46]);
12231223
for (let j = 1; j < 10; j += 1) {
12241224
const t = j / 10;
12251225
const y = horizonY + t * (groundY - horizonY);
@@ -1319,21 +1319,21 @@ function drawPip() {
13191319
ctx.drawImage(detectionCanvas, cropX, cropY, cropSize, cropSize, pipX, pipY, pipSize, pipSize);
13201320
} else {
13211321
ctx.save();
1322-
ctx.fillStyle = rgb(6, 10, 14);
1322+
ctx.fillStyle = rgb(13, 13, 13);
13231323
ctx.fillRect(pipX, pipY, pipSize, pipSize);
1324-
fillText(ctx, "ROBOTIC PANEL", pipX + pipSize / 2, pipY + 64, 28, bgr([255, 200, 0]), "center", 700);
1324+
fillText(ctx, "ROBOTIC PANEL", pipX + pipSize / 2, pipY + 64, 28, bgr([106, 198, 226]), "center", 700);
13251325
fillText(ctx, "Camera feed unavailable", pipX + pipSize / 2, pipY + 118, 18, rgb(200, 200, 200), "center", 500);
13261326
fillText(ctx, "Manual control is active", pipX + pipSize / 2, pipY + 148, 18, rgb(170, 170, 170), "center", 500);
1327-
fillText(ctx, "W / A / S / D", pipX + pipSize / 2, pipY + 216, 24, bgr([0, 170, 255]), "center", 700);
1327+
fillText(ctx, "W / A / S / D", pipX + pipSize / 2, pipY + 216, 24, bgr([79, 171, 199]), "center", 700);
13281328
fillText(ctx, "Move the robot", pipX + pipSize / 2, pipY + 246, 17, rgb(210, 210, 210), "center", 500);
1329-
fillText(ctx, "1-5", pipX + pipSize / 2, pipY + 294, 24, bgr([0, 170, 255]), "center", 700);
1329+
fillText(ctx, "1-5", pipX + pipSize / 2, pipY + 294, 24, bgr([79, 171, 199]), "center", 700);
13301330
fillText(ctx, "Cycle chassis, wheels, lidar, camera, arm", pipX + pipSize / 2, pipY + 322, 16, rgb(210, 210, 210), "center", 500);
13311331
fillText(ctx, "Space pick/drop", pipX + pipSize / 2, pipY + 350, 16, rgb(170, 170, 170), "center", 500);
13321332
ctx.restore();
13331333
}
13341334

13351335
ctx.save();
1336-
ctx.strokeStyle = bgr([255, 200, 0]);
1336+
ctx.strokeStyle = bgr([79, 171, 199]);
13371337
ctx.lineWidth = 2;
13381338
ctx.strokeRect(pipX, pipY, pipSize, pipSize);
13391339
ctx.restore();
@@ -1346,7 +1346,7 @@ function drawPip() {
13461346
const viewY = pipY + pipSize - viewHeight;
13471347
ctx.drawImage(robotViewCanvas, viewX, viewY);
13481348
ctx.save();
1349-
ctx.strokeStyle = bgr([255, 200, 0]);
1349+
ctx.strokeStyle = bgr([79, 171, 199]);
13501350
ctx.lineWidth = 1;
13511351
ctx.strokeRect(viewX, viewY, viewWidth, viewHeight);
13521352
ctx.beginPath();
@@ -1367,12 +1367,13 @@ function drawModeBanner(context) {
13671367
const panelHeight = 72;
13681368
const panelX = SIM_W - panelWidth - 24;
13691369
const panelY = 24;
1370-
const accent = controlMode === "manual" ? [0, 170, 255] : [0, 220, 180];
1370+
// Brand gold (BGR): bright gold for manual mode, core gold for gesture mode
1371+
const accent = controlMode === "manual" ? [106, 198, 226] : [79, 171, 199];
13711372
const shortcutText = controlMode === "manual"
13721373
? "WASD move | 1-5 cycle parts | Space pick/drop | Q stop"
13731374
: "Right hand aims and moves | Left hand freezes and picks";
13741375

1375-
fillRoundedRect(context, panelX, panelY, panelWidth, panelHeight, 16, rgb(10, 16, 18, 0.86));
1376+
fillRoundedRect(context, panelX, panelY, panelWidth, panelHeight, 16, rgb(13, 13, 13, 0.88));
13761377
strokeRoundedRect(context, panelX, panelY, panelWidth, panelHeight, 16, bgr(accent), 1);
13771378
fillText(context, modeBannerTitle, panelX + 20, panelY + 28, 20, bgr(accent), "left", 700);
13781379
fillText(context, modeBannerDetail, panelX + 20, panelY + 50, 15, rgb(220, 220, 220), "left", 500);
@@ -1384,7 +1385,7 @@ function drawBootScreen() {
13841385
ctx.fillStyle = rgb(0, 0, 0);
13851386
ctx.fillRect(0, 0, SIM_W, SIM_H);
13861387
ctx.save();
1387-
ctx.strokeStyle = bgr([25, 45, 45]);
1388+
ctx.strokeStyle = bgr([22, 38, 46]);
13881389
ctx.lineWidth = 1;
13891390
for (let i = 0; i < 18; i += 1) {
13901391
const y = 140 + i * 42;
@@ -1401,7 +1402,7 @@ function drawBootScreen() {
14011402
ctx.stroke();
14021403
}
14031404
ctx.restore();
1404-
fillText(ctx, bootTitle, SIM_W / 2, SIM_H / 2 - 24, 42, bootError ? bgr([40, 80, 255]) : bgr([255, 200, 0]), "center", 700);
1405+
fillText(ctx, bootTitle, SIM_W / 2, SIM_H / 2 - 24, 42, bootError ? bgr([40, 80, 255]) : bgr([79, 171, 199]), "center", 700);
14051406
fillText(ctx, bootDetail, SIM_W / 2, SIM_H / 2 + 24, 22, rgb(180, 180, 180), "center", 500);
14061407
}
14071408

‎botlab/3D/index.html‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>3D Gesture Robot Assembler</title>
6+
<title>BotLab 3D Robot Assembler — Alpha One Labs</title>
7+
<link rel="stylesheet" href="https://design.alphaonelabs.com/brand.css">
8+
<script src="https://design.alphaonelabs.com/chrome.js" defer></script>
79
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
810
<meta http-equiv="Pragma" content="no-cache">
911
<meta http-equiv="Expires" content="0">
@@ -16,7 +18,13 @@
1618
</script>
1719
</head>
1820
<body>
19-
<canvas id="simCanvas" width="1920" height="1080"></canvas>
21+
<a1-header site="BotLab" site-href="/" sticky>
22+
<a slot="actions" class="a1-slot-btn" href="/home.html">2D Playground</a>
23+
</a1-header>
24+
<main class="sim-stage">
25+
<h1 class="sr-only">BotLab 3D gesture robot assembler</h1>
26+
<canvas id="simCanvas" width="1920" height="1080" role="img" aria-label="3D robot assembly simulation. Use your camera and hand gestures, or WASD keys and 1 to 5 to cycle parts."></canvas>
27+
</main>
2028
<video id="cameraVideo" autoplay playsinline muted></video>
2129
<script>
2230
const appScript = document.createElement("script");

‎botlab/3D/style.css‎

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,62 @@ body {
44
height: 100%;
55
margin: 0;
66
overflow: hidden;
7-
background: #000;
7+
background: var(--a1-bg, #000);
8+
color: var(--a1-text, #fff);
9+
font-family: var(--a1-font-body, system-ui, sans-serif);
810
}
911

1012
body {
13+
display: flex;
14+
flex-direction: column;
15+
height: 100vh;
16+
height: 100dvh;
17+
}
18+
19+
/* Brand header (Shadow DOM); reserve its height before chrome.js upgrades it */
20+
a1-header {
21+
display: block;
22+
flex: none;
23+
min-height: 67px;
24+
}
25+
26+
.a1-slot-btn {
27+
padding: 8px 14px;
28+
border-radius: 999px;
29+
white-space: nowrap;
30+
text-decoration: none;
31+
font: 600 14px/1 var(--a1-font-body, system-ui, sans-serif);
32+
color: var(--a1-on-accent, #000);
33+
background: var(--a1-accent, #c7ab4f);
34+
}
35+
.a1-slot-btn:hover { background: var(--a1-accent-hover, #e2c66a); }
36+
.a1-slot-btn:focus-visible { outline: 2px solid var(--a1-focus, #e2c66a); outline-offset: 3px; }
37+
@media (max-width: 480px) { .a1-slot-btn { display: none; } }
38+
39+
.sr-only {
40+
position: absolute;
41+
width: 1px;
42+
height: 1px;
43+
padding: 0;
44+
margin: -1px;
45+
overflow: hidden;
46+
clip: rect(0, 0, 0, 0);
47+
white-space: nowrap;
48+
border: 0;
49+
}
50+
51+
/* The simulation fills whatever space is left under the header, 16:9 */
52+
.sim-stage {
53+
flex: 1;
54+
min-height: 0;
1155
display: grid;
1256
place-items: center;
57+
container-type: size;
1358
}
1459

1560
#simCanvas {
16-
width: min(100vw, calc(100vh * 16 / 9));
17-
height: min(100vh, calc(100vw * 9 / 16));
18-
max-width: 100vw;
19-
max-height: 100vh;
61+
width: min(100cqw, calc(100cqh * 16 / 9));
62+
height: min(100cqh, calc(100cqw * 9 / 16));
2063
display: block;
2164
background: #000;
2265
}

0 commit comments

Comments
 (0)