Skip to content

heroyik/redgold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

88 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Redgold Logo

โœจ REDGOLD โœจ

Textbooks are mid. Master the bridge from HSK 4 to real-world talk.
The perfect fusion of academic precision and colloquial soul.

Version Status Stack Design


๐Ÿฎ The Philosophy: Red Meets Gold

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.


๐Ÿš€ Core Features

๐ŸŽฌ Karaoke-Style Scroll Sync

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.

๐Ÿท๏ธ Proper Nouns Support

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.

โšก Smart Prefetching

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.

๐ŸŽจ Modern Han Elegant UI

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.

๐Ÿ”ข Live Version Badge

The app header now shows the current version and last build date in real time โ€” no more guessing what's deployed.


๐Ÿ›  Tech Stack & Architecture

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 main to GitHub Pages. Local git hooks bump the patch version (+0.0.1) before each commit and stamp that version into the commit message.

๐Ÿ“‚ Project Structure

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

๐Ÿ›  Installation & Development

1. Setup

# Clone the repo
git clone https://github.com/heroyik/redgold.git

# Install dependencies
npm install

2. Local Development

# Start the dev server
npm run dev

3. Production Build

# Build for deployment
npm run build

๐Ÿ—บ Roadmap

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

๐Ÿ“‹ Changelog

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:


v0.9.49 โ€” 2026-05-05

Firebase Authentication & User Profile. Identity is now live.

  • ๐Ÿ” Firebase Authentication โ€” Implemented Google Sign-In with a custom UserMenu Web 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.ts utility for handling user state and authentication logic.
  • ๐Ÿ”ข Version Bump โ€” Updated to v0.9.49 as part of the automated versioning workflow.

v0.9.46 โ€” 2026-05-03

Mobile-First UX Optimization & Cloud Sync. The Review Tab gets a massive glow-up.

  • โ˜๏ธ Firestore Integration โ€” Migrated local lesson1.json data 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 dvh calculations (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: 1 alongside 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.

v0.9.0 โ€” 2026-05-01

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.1 before 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

๐Ÿค Reference & Credits

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.

About

Level up your HSK 4 with the colloquial soul itโ€™s been missing. RedGold is where formal grammar meets native rhythm. Premium UI, zero fluff. ๐Ÿš€๐ŸฎA trendy Chinese language learning app focusing on formal and colloquial patterns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages