Textbooks are mid. Master the bridge from HSK 4 to real-world talk.
The perfect fusion of academic precision and colloquial soul.
In traditional Chinese learning, there has always been a disconnect.
- The Red (่ตค): Represents the formal, structured HSK curriculumโessential for exams but often sounding "robotic" in real life.
- The Gold (้): Represents the colloquial, native rhythmโthe way people actually talk in the streets of Beijing or Shanghai.
RedGold bridges this gap. We transform the HSK 4 Standard Course into a premium, interactive experience that teaches you not just what to say, but how to say it like a native.
Our intelligent Scroll Engine in the TextSection component provides a seamless reading experience.
- Forward-Only Logic: The viewport only moves forward with the audio, preventing distracting "snaps" back to previous lines.
- Timing Heuristics: Calculates line changes based on character weight and audio duration for frame-perfect synchronization.
Unlike standard HSK tools, RedGold explicitly identifies and styles ไธๆๅ่ฏ (Proper Nouns) โ names, places, brands โ with pinyin AND English meaning right there, no lookup needed. Styled in the signature Modern Han Elegant gold theme.
Zero-latency transitions. The app predicts your learning path and pre-warms audio assets and lesson data as you browse, ensuring the next chapter is ready before you even click.
A premium "glassmorphic" interface designed for focus:
- Responsive Layout: Tailored for high-aspect-ratio mobile displays (Galaxy S26 / iPhone Pro Max).
- Sticky Navigation: Smooth tab switching between Vocab, Grammar, and Texts.
- Visual Selection: Browse lessons via high-resolution 3D-styled textbook covers.
The app header now shows the current version and last build date in real time โ no more guessing what's deployed.
Built for performance, scalability, and the Google Cloud ecosystem:
- Frontend: Vite + TypeScript
- Architecture: Vanilla Web Components (Shadow DOM, 0-dependency runtime)
- Styling: Vanilla CSS with a centralized token system (Modern Han Elegant)
- Backend: Firebase (Hosting, Auth, Firestore ready)
- CI/CD: GitHub Actions deploys
mainto GitHub Pages. Local git hooks bump the patch version (+0.0.1) before each commit and stamp that version into the commit message.
redgold/
โโโ data/ # HSK 4 Lesson JSONs (Vocab, Grammar, Texts)
โโโ plan/ # Technical specs and design documentation
โโโ public/ # Assets (Audio, Images, Logos)
โโโ scripts/ # Python automation for data processing
โโโ src/
โโโ components/ # Custom Web Components (TextSection, VocabCard, etc.)
โโโ styles/ # Global design tokens and CSS
โโโ utils/ # Security (XSS Sanitizer) and Helpers
โโโ web/ # Main App container and routing# Clone the repo
git clone https://github.com/heroyik/redgold.git
# Install dependencies
npm install# Start the dev server
npm run dev# Build for deployment
npm run build| Phase | Milestone | Status |
|---|---|---|
| UI/UX | Landing Page Refresh (Book Covers + Hip Tagline) | โ Done |
| Logic | Forward-only Scroll Sync Engine | โ Done |
| Pedagogy | Proper Nouns with Pinyin + English Meaning | โ Done |
| Versioning | Pre-commit patch bump + versioned commit messages + header badge | โ Done |
| Auth | Firebase Authentication Implementation | โ Done |
| Data | Mastery Quiz System & Progress Tracking | โณ Next |
Every local commit bumps the patch version by 0.0.1, and the commit message is auto-stamped with that exact version. Here's the human-readable tea:
Firebase Authentication & User Profile. Identity is now live.
- ๐ Firebase Authentication โ Implemented Google Sign-In with a custom
UserMenuWeb Component. - ๐ค User Profile UI โ Added a sleek, glassmorphic profile menu to both the landing page and lesson view header, showing user name, email, and photo.
- ๐ Auth Utility โ Created a centralized
auth.tsutility for handling user state and authentication logic. - ๐ข Version Bump โ Updated to v0.9.49 as part of the automated versioning workflow.
Mobile-First UX Optimization & Cloud Sync. The Review Tab gets a massive glow-up.
- โ๏ธ Firestore Integration โ Migrated local
lesson1.jsondata to Firebase Firestore, laying the groundwork for a true backend architecture. - ๐ฑ Mobile UI/UX Polish โ Complete overhaul of the Review tab for modern, high-aspect-ratio screens (Galaxy S26 / iPhone Pro). Eliminated rogue left-margins and packed the top header icons perfectly into a single responsive row.
- ๐ Click-to-Flip Refined โ Resolved PC vs Mobile interaction conflicts. Cards now flip flawlessly on a simple click or tap through a centralized
InteractionManager. - ๐ Perfect Card Boundaries โ Leveraged
dvhcalculations (calc(100dvh - 380px)) to aggressively subtract header real estate. Flashcard outlines now fit perfectly on-screen without clipping, and long texts (like complex meanings or examples) are neatly scrollable inside the card itself. - ๐ฏ Absolute Center Alignment โ Chinese characters on the front face are perfectly centered vertically and horizontally. Fixed descender drifts by applying
line-height: 1alongside precise flexbox layouts. - ๐ง Visual Audio Triggers โ Replaced text-based audio buttons with sleek, static PNG icons for better intuition.
- ๐ App Manifesto Update โ Rewrote the intro messaging to sound more colloquial and explicitly highlight the "HSK4 learners" target audience, while strictly preserving the GitHub footer link.
- โฌ
๏ธ Navigation Enhancements โ Added tactile left/right arrows flanking the progress counter (
< 1/31 >) for immediate visual navigation cues. - ๐งน Layout Compaction โ Reduced unnecessary padding between the version badge and the logo to grant more breathing room to core content.
The version system drops. Things just got official.
- ๐ข Version badge is live โ header now shows
vX.X.X+ last build date on both the landing page and the lesson view - โ๏ธ Automatic patch bump โ local git hooks patch
0.0.1before every commit and make sure the commit message includes the bumped version - ๐ท๏ธ ไธๆๅ่ฏ (Proper Nouns) overhaul โ corrected all proper noun entries to match the actual textbook pages (images > assumptions, always)
- ๐ Dialogue 2 data fix โ
ๆis the only proper noun.็้andๆ่ๅธwere wrongly listed; axed. Textbook is the source of truth. - โ ๅนธ็ฆ (xรฌngfรบ) added to Dialogue 2 vocabulary โ it was literally in the textbook and we missed it. Fixed.
- ๐ Vocabulary meanings tightened up โ part-of-speech labels (
adj.,v.,adv.) now match the textbook format exactly
Redgold is an educational tool designed to complement the HSK Standard Course 4 textbook series authorized by Hanban and published by BLCUP.
Built with โค๏ธ by the RedGold Team.
Speak the Language, Not Just the Grammar.
