Section 1 โ€” Architecture Overview Think & Speak Technical Workshop

Platform Architecture
Overview

Modular component architecture built on React/Next.js enabling feature isolation and independent deployment across the T&S ecosystem.

โš™๏ธ Technology Stack

React + Next.js frontend with TypeScript strict mode. Redux for global state management. Ant Design component library. SCSS Modules for scoped styling. ECharts + react-circular-progressbar for data visualization. next-i18next for trilingual support.

๐Ÿงฉ Component Hierarchy

pageComponents/ โ”œโ”€โ”€ account/ โ”‚ โ””โ”€โ”€ pages/login/ โ”œโ”€โ”€ questionnaire/ โ””โ”€โ”€ assessment/
pageComponents/ directory colocates page-level styles with components. CSS Modules prevent leakage between Dashboard, Course Adventure, and Live Translation.

๐Ÿ—๏ธ Design Philosophy

Dual-interface architecture: Teacher portal (analytics dashboard) and Student portal (immersive learning). Responsive design adapts across desktop, tablet, and mobile. Component-level state isolation. SCSS + Tailwind hybrid styling.

๐Ÿ“‹ Production URLs & Deployment Architecture โ–ผ
  • Production: app.thinkandspeak.com โ€” Live student/teacher access
  • UAT: uat-app.thinkandspeak.com โ€” Testing environment
  • Test Accounts: Teacher: test_teacher@seechange-edu.com / Student: test_student1@seechange-edu.com (Password: Aa123456)
  • Framework: Next.js server-side rendering with API routes. Code-splitting via next/dynamic. Barrel exports for tree-shaking. CSS Modules with global :root design tokens.
Section 2 โ€” Visual Identity

Mascot Character System: 20 Variants

Functional UI components communicating learning modes โ€” not mere decoration. Each character reduces cognitive load through consistent visual cues.

๐ŸŸข

Green โ€” Media & Active

๐ŸŽง Live Translation active
๐Ÿฅฝ VR Immersive Training
๐ŸŽง Vocabulary Gamification
๐ŸŽ’ Student Onboarding state

๐Ÿ”ต

Blue โ€” Analytical & Literacy

๐Ÿ” Exam Simulation mode
๐Ÿ“– Vocabulary Collection
๐Ÿ‘“ Teacher Dashboard
๐Ÿ’ช Confidence State
็ฐก ็น Chinese Detection

๐ŸŸก

Yellow โ€” Creative & STEM

๐Ÿง  Higher-Order Thinking
๐ŸŽจ Creative Expression
๐ŸŽค Speaking Performance

๐Ÿ”ด

Orange/Purple โ€” Comms & Explore

๐ŸŒ Global Classroom
๐ŸŽค Public Speaking Debate
๐Ÿ” Research & Discovery
๐Ÿซ‚ Collaborative Learning
๐Ÿ˜ฐ Struggling State (AI Coach)

๐Ÿง  Emotional States & Color Psychology Theory โ–ผ
  • Emotional Design: Worried mascot (after failed login) reduces anxiety via empathetic non-verbal reassurance
  • Time-Aware: Sleepy mascot triggers during late-hour study sessions โ€” suggests breaks before user even accesses Dashboard
  • Celebratory: Holding stars/certificates/diplomas triggers upon achievement milestones โ€” dopaminergic reinforcement
  • Krashen's Affective Filter: Color psychology maps to cognitive stages โ€” cooler blues = concrete operational, warmer oranges = abstract reasoning maturity
  • Implementation: .mascot-state--frustrated, .mascot-state--tired, .mascot-state--celebratory classes dynamically swap via login pattern detection
Section 3 โ€” Gateway Architecture

Login Component: Gateway Styling Layer

The modular SCSS architecture initializes the personalized visual experience and implements security-centric styling aligned with the mascot color system.

๐Ÿ” Visual Encryption & Anti-Phishing

  • Environment-specific visual cues: Production (app.thinkandspeak.com) vs UAT (uat-app.thinkandspeak.com) distinguished by background gradients
  • Subtle desaturation in sandbox (vibrant for live) prevents accidental data modification
  • Brand-protection visual hashes: unique gradient patterns + mascot positioning (Image 18 confidence pose) on legitimate domains only
  • Input field micro-animations with phoneme-level color coding โ€” orange warning/instruction, green valid/ready

๐Ÿ‘ค Dual-Portal Architecture

Teacher Portal

.teacherPortal โ€” 60/40 grid: analytics preview + auth form. Simulated classroom heatmaps for engagement monitoring.

Student Portal

.studentPortal โ€” 100% immersive auth with Image 16 (backpack student). Immediate Assessment onboarding.

๐Ÿ”ค Credential Input Psychology & Password Strength โ–ผ
  • Touch Targets: 48px+ minimum for young primary students on tablets โ€” Vocabulary Builder access optimized
  • Bilingual Placeholders: Text animations alternate English and Chinese (Images 19/20 variants) to subconsciously reassure multilingual users
  • Password Strength: Vocabulary Collection metaphor โ€” scattered letters (weak) โ†’ structured grid (strong) visually communicates password quality
  • State Persistence: CSS custom properties persist selected mascot color theme throughout session for visual continuity
Section 4 โ€” Color Psychology

Age-Based Color Psychology System

Calculated color-psychology gradient mirroring cognitive development stages โ€” from warm inviting tones for early childhood to professional seriousness for adult learning.

6-8

Early Childhood

Warm inviting tones. Concrete thinking. Curiosity-driven learning foundations.

9-11

Middle Childhood

Balanced engaging hues. Growing cognitive abilities. Increasing focus.

12-14

Early Adolescence

Calming trustworthy tones. Concrete operational thinking. Systematic learning.

15-17

Mid Adolescence

Energetic mature colors. Abstract reasoning. DSE preparation readiness.

18+

Adult Learning

Professional tones. Academic focus. University and career contexts.

๐ŸŽจ SCSS Implementation & Cross-Feature Continuity โ–ผ
  • Implementation: $age-primary-6-8, $age-primary-9-11, etc. SCSS variables cascade via data-age-group attribute selectors
  • Live Translation Integration: Same color system applied to cohort indicators during real-time classroom sessions โ€” students instantly identify their assigned learning cohort
  • Assessment โ†’ Course Adventure Continuity: Selected age color persists from assessment phase into all subsequent learning modules, creating visual cohesion
Section 5 โ€” Assessment System

Assessment Module: Profile Data Collection

Immediately post-login, users encounter the personalized assessment interface โ€” capturing essential profiling for the AI personalization engine.

๐ŸŽฏ

Age Group

Visual badge selection
6-8, 9-11, 12-14, 15-17, 18+

โ†’
๐Ÿ“Š

Proficiency

Adaptive assessment
Beginner โ†’ Advanced

โ†’
โค๏ธ

Interests

Topic preferences
11 categories

โ†’
๐Ÿง 

Learning Style

8 methods detected
Games, Stories, Speak & Act

โ†’
๐ŸŽ“

Dashboard

Personalized interface
generated

๐Ÿ“‹ Data Captured

  • Age group & learning stage
  • English proficiency level (1-10 scale)
  • Interests: 11 categories incl. Space, Animals, Sports
  • Learning personas: 9 types (Debate Hero, Story Explorer, etc.)
  • Curious subjects: 22 academic topics incl. HKDSE-relevant
  • Motivation factors: 8 categories

โšก Personalization Output

  • Vocabulary difficulty curve adjusted to proficiency
  • Conversation Role Play scenario selection based on interests
  • Reading Comprehension mode (Guided vs Exam) based on level
  • AI Coach interaction parameters calibrated to learning style
  • Content delivery speed adapted to age group
  • Assessment data feeds Vocabulary Trainer & Course Adventure
Section 6 โ€” Emotional Design

Mascot State Machine: Emotional Intelligence

Dynamic state switching creates personalized emotional support from the first platform interaction โ€” Krashen's Affective Filter theory in action.

๐Ÿ˜ฐ

Idle State

Image 14 (shy blue)
Gentle pulse animation
Encourages hesitant learners

โ†’
๐Ÿ“–

Typing State

Image 3 (reading book)
Lightbulb activates on
.edu.com domain detection

โ†’
๐Ÿ’ช

Validation State

Image 18 (crossed arms)
Slides in via translateX()
Successful credential check

๐ŸŽญ Emotional State Library

  • Worried/Contemplative: Post-failure empathetic reassurance โ€” reduces anxiety
  • Surprised/Shouting: Dynamic feedback for unexpected events
  • Sleepy/Relaxed: Late-hour study session โ€” suggests breaks proactively
  • Celebratory: Achievement milestones โ€” holding stars/certificates
  • Shy/Confused: Struggling learner state triggers AI Coach intervention

๐ŸŒ Language Detection Visuals

  • Image 19 (็ฎ€ไฝ“ไธญๆ–‡): Simplified Chinese detection โ€” zh-CN locale activates
  • Image 20 (็น้ซ”ไธญๆ–‡): Traditional Chinese detection โ€” zh-HK/zh-TW locale
  • CSS backdrop-filter blur keeps login form legible during language detection
  • Language toggle (EN/ไธญๆ–‡) morphs button shapes and flag indicators
Section 7 โ€” Multilingual UI

Conversational UI & Multilingual Typography

๐Ÿ’ฌ Speech Bubble Architecture

  • Bubble Styling: border-radius: 24px + filter: drop-shadow() floating dialogue containers
  • Directional Tails: CSS clip-path or ::after pseudo-element โ€” dynamically repositioned based on mascot location
  • Multilingual Flexibility: Generous padding & min-height โ€” CJK character sets (Mandarin/Cantonese) with greater line-height requirements render without breakage
  • Dynamic Injection: React props enable real-time content updates during authentication flow โ€” welcome messages, contextual help

๐Ÿ”ค Font Engineering for Trilingual Support

font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", /* Simplified */ "Noto Sans CJK TC", /* Traditional */ sans-serif;
  • CJK Optimization: Line-height 1.6-1.8 for Chinese character stroke clarity
  • Interface Toggle: .languageToggle โ€” EN โ†” Mandarin โ†” Cantonese without page reload
  • Future RTL: [dir="rtl"] qualifications for Arabic/Hebrew expansion
Section 8 โ€” Responsive Architecture

Responsive Design for Multi-Device Accessibility

Hong Kong students frequently access content on smartphones during MTR commutes โ€” mobile-first design ensures learning continues anywhere.

๐Ÿ“ฑ

Mobile (<768px)

  • Single-column immersive auth
  • Touch targets 56px+ minimum
  • Bottom-sheet modals
  • Icon-only control modes
๐Ÿ“Ÿ

Tablet (768-1024px)

  • Two-column adaptive grid
  • Collapsible sidebar
  • Gesture support for drag-drop
  • BYOD classroom optimized
๐Ÿ–ฅ๏ธ

Desktop (1025px+)

  • Full 3-column layout
  • 20px+ typography
  • 40px desktop title scaling
  • Teacher dashboard optimized
โ™ฟ WCAG 2.1 AA Compliance & Accessibility โ–ผ
  • High Contrast: All text meets 4.5:1 minimum contrast ratio for body text
  • Focus States: Visible outline with :focus-visible pseudo-class โ€” 3px solid blue outline
  • Screen Readers: ARIA labels on all interactive elements. Live regions for dynamic content updates
  • Reduced Motion: @media (prefers-reduced-motion) respects user motion sensitivity preferences
  • Touch Targets: 44px minimum (exceeds WCAG) โ€” critical for primary education tablet usage
Section 9 โ€” Onboarding System

Progressive Onboarding Architecture

LocalStorage-based preference memory enables seamless daily access โ€” returning users skip assessment while new users receive guided introduction.

๐Ÿ”„ Returning vs New User Optimization

  • Returning: .returning-user modifier โ€” faster transitions (600msโ†’300ms). Previous assessment completed โ†’ skip to Dashboard.
  • New User: .new-user classes โ€” elaborate mascot introduction animations. Full assessment flow activation.
  • Preference Observation: Hover time on age badges, mascot preference clicks โ†’ pre-configure Vocabulary Trainer difficulty curves & Conversation Role Play scenarios
  • Cross-Device: LocalStorage persists age badge selection and mascot color theme across sessions

๐ŸŽฏ Assessment โ†’ Dashboard Flow

Step 1: Authentication โ€” Mascot-guided welcome, role detection
Step 2: Age Selection โ€” Visual badge grid (6-8 through 18+)
Step 3: Profiling โ€” Proficiency level capture + interest selection
Step 4: Dashboard โ€” Personalized interface generated from profile
Section 10 โ€” Live Translation

Live Translation & Group Collaboration

Real-time classroom translation supporting English โ†” Cantonese/Mandarin โ€” turning every class into a learning ecosystem.

๐ŸŒ Real-Time Translation Features

  • Session Codes: Monospace font session ID for quick teacher entry during live classroom setup
  • Language Toggle: .languageToggle โ€” EN โ†” Mandarin โ†” Cantonese switching without page reload. CSS transitions morph button shapes.
  • Cohort Colors: Same age-group color system applied to translation cohort indicators โ€” students instantly identify their assigned cohort during real-time sessions
  • In-Context Capture: Saved sentences store temporal metadata (where in lecture) and semantic context โ†’ "Auto Vocabulary โ†’ Flashcards" pipeline

๐Ÿ‘ฅ Group Teaching Support

  • State Indicators: "Class In Progress" / "Group Session Active" badges alongside auth fields
  • Split-View: CSS Grid template-areas โ€” login alongside Live Translation preview or heatmap
  • Broadcast Tools: Simultaneous content delivery to entire class โ€” vocabulary introduction, grammar explanations
  • Targeted Assignment: Differentiated tasks to student subgroups based on assessment levels
  • Engagement Heatmap: Real-time comprehension visualization โ€” Green (understand), Yellow (neutral), Red (confused/question)

"Turn every class into a learning ecosystem"

Section 11 โ€” Performance & Security

Performance Optimization & Security

โšก Performance Strategies

content-visibility: auto

Off-screen mascot illustrations deferred โ€” faster initial load

contain: layout paint

Isolates auth form from reflows caused by CJK font loading

WebP/AVIF + fallback

Next.js Image component โ€” optimized mascot assets

will-change: transform

GPU acceleration for 60fps mascot animations on school devices

๐Ÿ”’ Security Architecture

๐Ÿ” JWT Authentication

Encrypted tokens for API security. Role-based access (Teacher/Student)

๐Ÿซ School Data Segregation

School Program type disables/lock schoolName field

๐Ÿ‘ถ K12 Privacy

Optional PII fields (sourceOfReferral) โ€” no validation = minimal collection

๐Ÿ“ง Secure Onboarding

6-digit verification codes. "Check email and spam box" guidance

๐Ÿ“Š Bandwidth Adaptation & Low-Connectivity Strategies โ–ผ
  • Rural Schools: Image lazy-loading and animation deferral until critical content renders โ€” limited bandwidth environments accommodated
  • MTR Tunnels: Core translation features load immediately; supplementary practice modules load on demand โ€” essential functionality prioritized
  • Input Responsiveness: Containment isolation prevents dynamic font loading from causing layout shifts during credential entry on touch devices
Section 12 โ€” Integration

Platform Ecosystem Integration

Assessment data propagates to all learning modules โ€” the closed-loop personalization pipeline.

๐Ÿ”„ Personalization Data Flow

  • Assessment โ†’ Vocabulary: Proficiency determines initial word list difficulty for "Words" and "Vocabulary Builder"
  • Assessment โ†’ Course Adventure: recommendedLevel determines entry point into progressive learning paths
  • Assessment โ†’ Conversation: Proficiency data calibrates Role Play scenario difficulty and topic selection
  • Assessment โ†’ Reading: Determines starting mode โ€” Guided Learning vs Exam Simulation for DSE preparation
  • Assessment โ†’ Live Translation: Establishes baseline language support configuration (ENโ†”ZH, ENโ†”Cantonese)

๐Ÿ”— LMS Integration Potential

  • Micro-Frontend: iframe-based assessment enables content updates without full app redeployment
  • SSO Integration: Token passing via URL parameters supports Single Sign-On with school identity providers
  • Export Capability: Assessment result data accessible via Redux store for institutional reporting tools
  • API Extensibility: Custom mascot theming for institutional branding. Configurable assessment forms for school-specific benchmarks

The Closed Learning Loop

Assessment โ†’ Personalization โ†’ Activity โ†’ Analytics โ†’ Improvement โ†’ Reassessment
Listen โ†’ Capture โ†’ Review โ†’ Master โ€” every class becomes a reusable learning asset.

Summary

Key Takeaways

๐Ÿ—๏ธ

Modular Architecture

CSS Modules + component colocation enables independent feature updates without disrupting the learning experience

๐ŸŽจ

Emotional Intelligence

20 mascot variants with dynamic emotional states reduce learner anxiety through empathetic non-verbal feedback

๐Ÿ”„

Closed-Loop Learning

Assessment data flows to all modules โ€” Vocabulary, Course Adventure, Conversation, Reading, and Translation

๐ŸŒ

Trilingual Support

EN โ†” Cantonese โ†” Mandarin via Noto Sans CJK font stack and next-i18next infrastructure

๐Ÿ“ฑ

Device Agnostic

Mobile-first responsive design โ€” students continue learning during MTR commutes and across BYOD classrooms

๐Ÿ”’

Secure & Compliant

JWT auth, K12 privacy compliance, school data segregation โ€” school-ready technology for institutional deployment

Ready to Transform Your Classroom?

Contact us at support@thinkandspeak.com for a personalized demo

โ† โ†’ Navigate | N Speaker Notes | A Accordions