# 📖 User Guide — HMG ACADEMY CLASS DECK v9

End-user walkthrough for teachers, students, and parents.

---

## 👩‍🏫 For Teachers

### 1. Sign up

1. Open `teach.html` on your tablet, laptop, or phone.
2. Click **Create account** tab.
3. Fill in:
   - Your full name
   - Email
   - Phone (WhatsApp number — this is where your access key will be sent)
   - School (optional)
   - Password (≥ 8 characters)
4. Click **Start my 3-day free trial ➜**.

You are now in the **Teacher Studio**. No payment needed for the next 3 days.

### 2. The Studio

The Studio has two side-by-side panes, each of which can show one of:
- ✏ **Whiteboard** — draw, type, erase, add shapes
- 📄 **PDF** — open a PDF file
- 🌐 **Browser** — open any URL (with the education library shortcut)
- 🗒 **Notes** — a plain-text notepad
- 🖼 **Image** — show a picture
- 📈 **Graph** — plot a function
- 🎬 **Video** — play a local video
- 🧰 **Toolkit** — geometry tools (compass, ruler, etc.)
- 🃏 **Cards** — flashcards
- ⏱ **Timer** — stopwatch or countdown

Click a tab to switch. Drag the centre divider to resize.

### 3. Start a live class

1. Click **▶ Go Live** (top right).
2. A 6-character **room code** appears. Tell your students to open `join.html` and enter the code.
3. The Roster panel (👥) shows every student as they join.
4. To broadcast what you do, students see your composite stream automatically (whiteboard + PDF together).

### 4. Use the activities

Click the **Roster** drawer → **Tools** tab → choose:

- **💬 Open question** — type a prompt, students answer
- **☁ Word cloud** — students submit one word, real-time cloud
- **🎟 Exit ticket** — end-of-lesson check
- **👥 Random groups** — pick number of groups, students are shuffled
- **🔊 Noise meter** — class volume gauge on student screens
- **😊 Mood poll** — yes/no "how do you feel"
- **🏆 Quick quiz** — type `Question | Option1 | Correct! | Option3`

### 5. Assign homework

1. Click **📊 Dashboard** in top right → **Assignments** tab.
2. Fill in: title, category, weight, due date.
3. Click **Create**.
4. Students see the assignment on their screen (if they're in your class).
5. After the due date, click the assignment → grade each submission.

### 6. View analytics

Dashboard → **Analytics** tab → see engagement, grade distribution, badge leaders.

### 7. End class

Click **⏹ Stop Live** (top right).

### 8. After 3 days

When your trial expires, the Studio locks. Two options:

- **Buy an HMG ACCESS KEY** from <https://hmgacademy.pages.dev> — pay the small licence fee, receive a key on WhatsApp within minutes.
- Paste the key in the **Activate key** tab → **Activate**.

---

## 🎓 For Students

### Join a class

1. Open `join.html` (your teacher will give you the URL).
2. Enter the **room code** (6 characters, uppercase).
3. Enter your **name**.
4. (Optional) Enter the **class PIN** if your teacher set one.
5. Click **Join class ➜**.

You will see the teacher's screen (whiteboard + PDF together) and you can chat.

### React

The bottom row of buttons lets you:
- ✋ Raise your hand
- 👍 / ❤️ / 😂 / 🎉 / 😮 / 👏 Send a reaction

### Your personal whiteboard

If the teacher presses **🎨 Start boards**, you'll see a personal whiteboard. Only the teacher sees it. Tap to draw. **📺 Lesson** swaps back to the teacher's view.

### Submit homework

When the teacher creates an assignment, you'll see a submit button on your screen. Tap it, type your answer, submit.

### Camera / microphone

The teacher can ask you to share your camera/mic. You'll get a pop-up — accept or decline.

### Leave class

Click **🚪 Leave** in the top right.

---

## 👨‍👩‍👧 For Parents

### View your child's report

1. Ask the teacher for a **parent code** (6 characters).
2. Open `parent.html` (or the URL the teacher gave you).
3. Enter the code → **View report ➜**.

You see:
- Overall %
- Recent grades
- Badges earned
- Portfolio highlights

### Print / save as PDF

Click **🖨 Print / Save as PDF** at the top of the report.

---

## ⌨ Keyboard shortcuts

| Shortcut | Action |
|---|---|
| `Alt+C` | Toggle high-contrast |
| `Alt+D` | Toggle dyslexia-friendly font |
| `Alt+S` | Cycle text size (S → L → XL) |
| `Shift+?` or `F1` | Show shortcut overlay |
| `Esc` | Close any modal |

---

## 🌍 Languages

Click the 🌐 button in the top right to switch between:
- 🇬🇧 English
- 🇫🇷 Français
- 🇪🇸 Español
- 🇧🇷 Português
- 🇸🇦 العربية (RTL)
- 🇮🇳 हिन्दी
- 🇰🇪 Kiswahili
- 🇳🇬 Hausa
- 🇳🇬 Yorùbá
- 🇳🇬 Igbo

To add a new language: copy `locales/en.json` → translate → save as `locales/<your-code>.json` → reload.

---

## 📲 Install as an app

### On Android

1. Open the site in Chrome.
2. Tap the menu (⋮) → **Add to Home screen**.
3. The app installs to your home screen and works offline.

### On iPhone

1. Open the site in Safari.
2. Tap the Share button → **Add to Home Screen**.

### On laptop (Chrome / Edge)

1. Open the site.
2. Click the install icon in the URL bar.

Once installed, the app works **fully offline** — whiteboard, PDF, notes, toolkit, flashcards, timer. The live class still needs internet.

---

## 💡 Tips & tricks

- **Use Companion mode for Google Meet**: open `teach.html?meet=1`. The live-class panel is hidden so you can share your screen on Meet without distractions.
- **Drag the centre divider** in the Studio to give the whiteboard more room.
- **Press F1** for keyboard shortcuts any time.
- **Export everything** from the Dashboard's **📥 Export all** button — saves a single CSV with students, assignments, grades, poll responses.

---

## ❓ FAQ

See `docs/FAQ.md` for 30+ common questions.

---

## 🆘 Support

- File an issue: <https://github.com/hmgacademyhub/hmgacademyclassdeck/issues>
- Email: **[email protected]**
- WhatsApp: <https://hmgacademy.pages.dev>
