Repository navigation
Merge the AI Engineer course into the site: one design, a section per course - #19
Merged
Merged
Conversation
The site now has two sections under one shell: /leetcode (the problem list moved here from /) and /ai-engineer, a self-study path built from the markdown course in course/. The home page is a hub for both. - Design: the AI Engineer look becomes the design system. tokens.css holds the palette, fonts (Sora, Plus Jakarta Sans, JetBrains Mono) and two accents chosen by <html data-section>: teal for LeetCode, indigo for the AI section and hub. Every text colour still clears AA in both themes. - Shell: a dark sidebar, a 56px sticky top bar with search and the theme switch, and a progress rail on AI pages. Icons only under 1024px, a bottom tab bar under 720px. Lesson offsets keep the 56px bar. - AI Engineer: static track, module and lesson-step pages; quizzes, checklists, flashcards and the profile are Preact islands. Progress, XP and streak live in src/lib/progress.ts for the whole site. - Search: ⌘K also finds AI Engineer modules. - Audit: serves /x.html before /x/ like Cloudflare, checks the problem list at /leetcode, and checks the hub and a sample of AI pages for errors, overflow at 320 and 400px, and AA in both themes. npm run check and npm run audit pass (46 lessons).
One shared sidebar listed every section's pages, so a LeetCode link sat in the AI Engineer menu and each new course would have made it longer. - A section rail (icons, always visible) switches between Home, LeetCode, AI Engineer and Profile. On a phone it is the bottom tab bar. - A section sidebar shows only the current section's menu, defined in src/data/sections.ts: patterns for LeetCode; tracks with progress, practice, papers and projects for AI Engineer. The hub and profile have none. Under 1024px the menu becomes a strip of links under the top bar. - The hub's "Jump back in" shows a card per section you have used, most recent first: the last LeetCode problem opened, the next AI Engineer step. progress.ts records the last thing opened per section. - The hub and profile progress rail shows site-wide stats only. npm run check and npm run audit pass.
- Layout: the progress rail sits under the top bar, beside the page, and the footer runs under both, so neither is cut short. - XP is recorded per section. Each section shows its own streak and XP; the hub and profile show the total and each section. The daily goal counts every section. LeetCode lessons get "Mark as solved" (+20 XP), ticked on the problem list. Older saves migrate (their XP was all AI). - Study pace in hours a week (3, 6, 12, 25) replaces the XP goal choice. It sets the daily goal, and every AI Engineer time estimate is scaled from the course's ~13.5 h/week to your pace. - The AI Engineer plan is asked once (pace, then where to start) and then shown as "Your plan" with a link to change it in the profile. - ⌘K search stays in its section: problems on LeetCode pages, modules on AI Engineer pages, both on the hub and profile. - Problem list: no in-page pattern sidebar (the section menu has the patterns and highlights the one being read), no in-page search (⌘K) and no "With a solution" filter; a difficulty filter stays. npm run check and npm run audit pass.
… footer - Track 3 and the course's end goal are named AI Research Engineer everywhere: course markdown, track title, hub, overview, onboarding. - LeetCode lessons have "Mark as solved" beside the language switch at the top as well as at the foot; both stay in step. - The footer drops its first line. npm run check and npm run audit pass.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the AI Engineer course into this site as a second section, under one design system, with navigation that scales to more courses.
What changes for a reader
/is now a hub: "Jump back in" (the last LeetCode problem opened, the next AI Engineer step, most recent first) and a card per section./leetcodeis the problem list (it was at/). Lesson URLs (/leetcode/two-sum) are unchanged./ai-engineeris the course: tracks, module guides and lesson steps (concepts, resources, builds, quiz, checkpoint), flashcards, a paper reading list and portfolio projects. It is built from the markdown incourse/./profile: streaks and XP overall and per section, the study plan, export and import of progress.Design and navigation
tokens.css): Sora, Plus Jakarta Sans and JetBrains Mono, light and dark.<html data-section>picks the accent: teal for LeetCode, indigo for AI Engineer and the hub. Text colours still clear AA in both themes.src/data/sections.ts), so a new course adds one entry rather than lengthening a shared menu. Under 1024px the menu becomes a strip under the top bar; under 720px the rail is a bottom tab bar.Progress
src/lib/progress.tsholds progress for the whole site in localStorage: XP per section per day, streaks, crowns, solved problems, flashcard boxes, and the last thing opened per section. A signed-in sync can replace its load and save later.How it is built
@astrojs/preact); LeetCode pages load no framework.scripts/audit.mjsnow serves/x.htmlbefore/x/(as Cloudflare does), checks the problem list at/leetcode, and checks the hub and a sample of AI Engineer pages for page errors, overflow at 320px and 400px, and AA contrast in both themes./ai-engineer/track-2/2-7): a dot reads as a file extension to static servers. Every route was checked underwrangler dev.Checks
npm run check: 46 lessons, 0 failures.npm run audit: passed, 46 lessons plus the hub, problem list and AI Engineer pages.Fonts and colours changed on every lesson page; all 46 were stepped through by the audit in both themes.