Skip to content

Commit 7b13b83

Browse files
A1L13Naoclaude
authored
learn: every page on design system v2 (#1159)
* learn: fade the home portrait into the page instead of a boxed panel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * README: add the light and dark banner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * learn: restyle every page to design system v2 - Activity detail, activities list, teach, about and virtual classroom rebuilt on brand components - Tailwind palette folds orange/amber into brass and purple, blue, green into neutrals; safety-net CSS for stray colored buttons, pills, tinted callouts and gradients - Shared js/a1-tailwind-theme.js so standalone pages (certificate, admin) get the same palette - Calculator canvas and markdown/whiteboard CSS use brand neutrals Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: ao <ao@a.lan> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 650c5cc commit 7b13b83

62 files changed

Lines changed: 1230 additions & 1149 deletions

Some content is hidden

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

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<div align="center">
22

3-
# Alpha One Labs
3+
<a href="https://alphaonelabs.com"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/alphaonelabs/.github/main/profile/assets/banner-dark.webp?v=5"><img src="https://raw.githubusercontent.com/alphaonelabs/.github/main/profile/assets/banner-light.webp?v=5" alt="Alpha One Labs. Learn. Share. Explore." width="100%"></picture></a>
44

5-
**Open-source education for everyone.** Every Alpha One Labs project lives in this repository.
5+
# ALPHA ONE LABS
6+
7+
**Open-source education for everyone.** Every Alpha One Labs project lives in this repository, built on one [design system](https://design.alphaonelabs.com).
68

79
[learn.alphaonelabs.com](https://learn.alphaonelabs.com) · [GSoC](https://gsoc.alphaonelabs.com) · [Contributing](CONTRIBUTING.md) · [Discussions](https://github.com/orgs/alphaonelabs/discussions)
810

‎learn/public/404.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% block title %}Page Not Found - Alpha One Labs{% endblock %}
33
{% block meta_description %}This Alpha One Labs page could not be found.{% endblock %}
44
{% block content %}
5-
<main class="flex-1 bg-gradient-to-br from-teal-50 via-white to-cyan-50 dark:from-gray-950 dark:via-black dark:to-teal-950">
5+
<main class="flex-1 bg-white dark:bg-black">
66
<section class="max-w-4xl mx-auto px-4 md:px-6 py-20 text-center">
77
<div class="mx-auto mb-8 h-20 w-20 rounded-3xl bg-teal-600 text-white flex items-center justify-center shadow-xl shadow-teal-600/20">
88
<i class="fas fa-map-signs text-3xl"></i>

‎learn/public/429.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{% block content %}
55
<main class="flex-1 container mx-auto px-4 py-16">
66
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8 max-w-2xl mx-auto text-center border border-gray-200 dark:border-gray-700">
7-
<i class="fas fa-exclamation-triangle text-6xl text-yellow-500 mb-4"></i>
7+
<i class="fas fa-exclamation-triangle text-6xl text-teal-500 mb-4"></i>
88
<h1 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">Too Many Requests</h1>
99
<p class="text-gray-600 dark:text-gray-300 mb-6">You've made too many requests in a short period. Please wait a moment before trying again.</p>
10-
<a href="/" class="inline-block bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-lg transition duration-200"><i class="fas fa-home mr-2"></i>Return to Home</a>
10+
<a href="/" class="inline-block bg-gray-600 hover:bg-gray-700 text-white px-6 py-2 rounded-lg transition duration-200"><i class="fas fa-home mr-2"></i>Return to Home</a>
1111
</div>
1212
</main>
1313
{% endblock %}

‎learn/public/500.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block meta_description %}Alpha One Labs encountered a server error.{% endblock %}
44
{% block content %}
55
<main class="flex flex-col items-center justify-center min-h-[60vh] px-4 py-16 flex-1">
6-
<div class="text-9xl font-bold text-orange-600 dark:text-orange-500 mb-4">500</div>
6+
<div class="text-9xl font-bold text-teal-600 dark:text-teal-500 mb-4">500</div>
77
<h1 class="text-4xl font-bold text-gray-900 dark:text-gray-100 mb-4">Server Error</h1>
88
<p class="text-xl text-gray-600 dark:text-gray-400 text-center mb-8 max-w-3xl">Looks like our servers are taking an unexpected study break. Our team has been notified and is working on it. Please try again soon.</p>
99
<div class="flex flex-col sm:flex-row gap-4">

‎learn/public/about.html‎

Lines changed: 139 additions & 238 deletions
Large diffs are not rendered by default.

‎learn/public/activity-detail.html‎

Lines changed: 205 additions & 201 deletions
Large diffs are not rendered by default.

‎learn/public/activity.html‎

Lines changed: 147 additions & 183 deletions
Large diffs are not rendered by default.

‎learn/public/admin.html‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Alpha One Labs Admin</title>
77
<link rel="icon" type="image/png" href="/images/logo.png" />
8-
<script src="https://cdn.tailwindcss.com"></script>
8+
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
9+
<script src="/js/a1-tailwind-theme.js?v=1"></script>
10+
<link rel="stylesheet" href="https://design.alphaonelabs.com/brand.css" />
911
<style>
1012
:root {
11-
--ink: #0f172a;
12-
--muted: #64748b;
13-
--line: #e2e8f0;
14-
--bg: #f8fafc;
13+
--ink: #0a0a0a;
14+
--muted: #737373;
15+
--line: #e6e6e6;
16+
--bg: #fafafa;
1517
--card: #ffffff;
16-
--accent: #0f766e;
18+
--accent: #7a6418;
1719
--accent-soft: #ccfbf1;
1820
}
1921
body {
2022
font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
21-
background: radial-gradient(circle at 10% 10%, #d1fae5 0%, #f8fafc 35%),
22-
radial-gradient(circle at 90% 20%, #bfdbfe 0%, #f8fafc 40%);
23+
background: radial-gradient(circle at 10% 10%, #d1fae5 0%, #fafafa 35%),
24+
radial-gradient(circle at 90% 20%, #bfdbfe 0%, #fafafa 40%);
2325
color: var(--ink);
2426
}
2527
.glass {
@@ -46,7 +48,7 @@
4648
<h1 class="text-3xl font-black mt-1">Database Table Counts</h1>
4749
<p class="text-sm text-slate-500 mt-2">Protected by HTTP Basic Auth and loaded from live D1 metadata.</p>
4850
</div>
49-
<button id="reload" class="px-4 py-2 rounded-xl bg-teal-700 hover:bg-teal-800 text-white text-sm font-semibold transition">Refresh</button>
51+
<button id="reload" class="a1-btn a1-btn--primary a1-btn--sm">Refresh</button>
5052
</div>
5153

5254
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8">

‎learn/public/affiliations.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% block body_class %}min-h-screen flex flex-col bg-white text-gray-900 dark:bg-black dark:text-gray-100 overflow-x-hidden{% endblock %}
55
{% block content %}
66
<main class="flex-1">
7-
<section class="bg-gradient-to-br from-teal-700 via-teal-600 to-cyan-600 dark:from-teal-900 dark:via-teal-800 dark:to-cyan-800 text-white py-16">
7+
<section class="text-white py-16 a1s-hero">
88
<div class="max-w-5xl mx-auto px-4 md:px-6">
99
<p class="text-sm font-bold uppercase tracking-[0.22em] text-white/90 mb-3">Community network</p>
1010
<h1 class="text-4xl md:text-5xl font-extrabold mb-4">Affiliations</h1>

‎learn/public/base.html‎

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -146,51 +146,13 @@
146146
<link rel="preconnect" href="https://fonts.googleapis.com" />
147147
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
148148
<link rel="stylesheet" href="https://design.alphaonelabs.com/brand.css" />
149+
<link rel="stylesheet" href="/css/a1-site.css?v=1" />
149150
<link rel="preconnect" href="https://cdn.tailwindcss.com" />
150151
<link rel="preconnect" href="https://cdnjs.cloudflare.com" />
151152
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
152153
<link rel="preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" onload="this.onload=null;this.rel='stylesheet'" />
153154
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" /></noscript>
154-
<script>
155-
// Alpha One Labs brand palette. learn's teal/cyan accent classes map onto a
156-
// gold scale so every page picks up the brand without per-page edits.
157-
// 600/700 are darkened from gold-deep so white text and gold text on white
158-
// meet WCAG AA (600 on white 5.4:1, white on 600 5.4:1).
159-
window.A1_TAILWIND_THEME = {
160-
colors: (function () {
161-
var gold = { 50: '#fbf8ee', 100: '#f6efd9', 200: '#ecdeb0', 300: '#e2c66a', 400: '#c7ab4f', 500: '#9a8236', 600: '#7c692e', 700: '#685721', 800: '#524520', 900: '#3a3117', 950: '#221d0d' };
162-
return { teal: gold, cyan: gold, gold: gold, a1: { black: '#000000', white: '#ffffff', gold: '#c7ab4f', 'gold-bright': '#e2c66a', 'gold-deep': '#9a8236' } };
163-
})(),
164-
fontFamily: {
165-
sans: ['Inter', 'ui-sans-serif', 'system-ui', '-apple-system', 'Segoe UI', 'sans-serif'],
166-
display: ['Barlow Condensed', 'Arial Narrow', 'Impact', 'sans-serif'],
167-
mono: ['JetBrains Mono', 'ui-monospace', 'SFMono-Regular', 'Menlo', 'monospace']
168-
},
169-
// Design system v2: near-square corners (tags 2px, buttons/inputs 4px, cards 6px,
170-
// panels 8px). `full` stays round for avatars and status dots.
171-
borderRadius: { sm: '2px', DEFAULT: '4px', md: '4px', lg: '4px', xl: '6px', '2xl': '6px', '3xl': '8px' },
172-
// Hard 1px borders instead of soft drop shadows.
173-
boxShadow: { sm: 'none', DEFAULT: 'none', md: 'none', lg: 'none', xl: 'none', '2xl': 'none', inner: 'none' }
174-
};
175-
window.applyA1TailwindTheme = function () {
176-
var cfg = window.tailwind && window.tailwind.config ? window.tailwind.config : {};
177-
var theme = cfg.theme || {};
178-
var extend = theme.extend || {};
179-
window.tailwind.config = Object.assign({}, cfg, {
180-
darkMode: cfg.darkMode || 'class',
181-
theme: Object.assign({}, theme, {
182-
extend: Object.assign({}, extend, {
183-
colors: Object.assign({}, extend.colors || {}, window.A1_TAILWIND_THEME.colors),
184-
fontFamily: Object.assign({}, extend.fontFamily || {}, window.A1_TAILWIND_THEME.fontFamily),
185-
borderRadius: Object.assign({}, extend.borderRadius || {}, window.A1_TAILWIND_THEME.borderRadius),
186-
boxShadow: Object.assign({}, extend.boxShadow || {}, window.A1_TAILWIND_THEME.boxShadow)
187-
})
188-
})
189-
});
190-
};
191-
tailwind.config = { darkMode: 'class', theme: { extend: {} } };
192-
window.applyA1TailwindTheme();
193-
</script>
155+
<script src="/js/a1-tailwind-theme.js?v=1"></script>
194156
<style>
195157
html, body { overflow-x: hidden; box-sizing: border-box; }
196158
html.auth-redirecting body { visibility: hidden; }
@@ -201,6 +163,9 @@
201163
body { font-family: var(--a1-font-body, Inter, system-ui, sans-serif); }
202164
h1, h2, .font-display { font-family: var(--a1-font-display, "Barlow Condensed", "Arial Narrow", Impact, sans-serif); font-weight: 800; letter-spacing: -0.005em; }
203165
h3 { font-family: var(--a1-font-body, Inter, system-ui, sans-serif); letter-spacing: -0.02em; }
166+
/* Design system v2: page headings are condensed 900 uppercase (long-form prose keeps sentence case). */
167+
main h1, main h2 { font-weight: 900; text-transform: uppercase; line-height: .95; }
168+
main :is(.prose, .markdown-content, .markdown-body) :is(h1, h2) { text-transform: none; }
204169
:focus-visible { outline: 3px solid #d4af37; outline-offset: 2px; }
205170
html.dark :focus-visible { outline-color: #e1b746; }
206171
::selection { background: #e1b746; color: #000; }

0 commit comments

Comments
 (0)