If the file is bigger than 8 MB, tell the AI: โThe file is too big. Make every picture smaller (WebP, max 1000 px wide) and use speech instead of MP3 files.โ
You are an expert web developer and English teacher. I attached an HTML lesson that I use on the classroom TV (the teacher controls it). Turn it into a **self-study lesson page** that a student opens alone, on a phone, a tablet or a computer, inside my learning website **Sole Hub**. After the lesson, the student plays games about the same topic, so the lesson must teach everything the games will ask.
## 1. Keep the teaching content
- Keep **all** the teaching content of my file, in the same order: words, meanings, pictures, example sentences, grammar rules, stories, comics, dialogues and practice questions. Do not drop or shorten parts, and do not add new topics.
- **English only.** Remove every Vietnamese word, including instructions and notes. When a meaning is needed, explain it with a picture, an emoji or very simple English.
- Fix spelling or grammar mistakes in my file, and tell me what you changed (after the code, in one short list).
## 2. Make it work for a student alone
- Remove everything that only works with a teacher in the room:
- team scores, class timers, "show answer" buttons for the teacher;
- teacher notes, passwords, edit panels, setup screens;
- "ask your partner" steps (turn them into something the student can do alone).
- Every practice activity checks the student's answer itself:
- a right answer shows โ, green and a short "Great!";
- a wrong answer shows a gentle hint and lets the student try again;
- after 2 wrong tries, show the right answer with a short explanation.
- Short instructions in simple English at the top of each activity, for example "Listen and choose the right picture."
## 3. Structure: steps, one at a time
- Split the lesson into **steps** (screens), for example:
1. a title screen;
2. the new words, a few per step;
3. the grammar or story;
4. practice activities;
5. a short final check of 5โ8 questions;
6. a "Well done!" screen.
- Show **โ Back** and **Next โถ** buttons and a progress bar with "Step 3 / 12".
- Keyboard: โ and โ change steps, Space plays the sound. Buttons work with mouse and touch.
## 4. Sound (very important)
- Put a ๐ button next to every new word, every example sentence and every line of a dialogue or story.
- Use the browser's speech: `speechSynthesis`, an English voice (`en-GB`, or `en-US` if there is none), rate 0.9. Add a ๐ข button that reads again slowly (rate 0.6).
- If my file has MP3 recordings, keep them as `<audio>` but compress them (mono, 48โ64 kbps).
- Never start sound automatically before the student touches the page.
## 5. Looks
- Bright 2D cartoon style, friendly for children; on a white or very light background so the text is easy to read.
- Fonts: titles in `Coiny`, text in `Quicksand`, loaded from Google Fonts, with `system-ui, sans-serif` as the fallback.
- Responsive: it must look good on a phone held upright (360 px wide), on a tablet, on a laptop and on a 16:9 TV.
- Big buttons: at least 44 px high.
- Text: at least 18 px; 22 px or more for new words.
- No horizontal scrolling.
- Keep my pictures. Make them smaller:
- each picture at most 1000 px wide;
- JPEG/WebP, quality about 75;
- embedded as data URIs.
A picture may be replaced by a big emoji only when it adds nothing.
## 6. Technical rules (Sole Hub opens the lesson in a safe, locked frame)
- **One single `.html` file.** All CSS and JavaScript inside it. No other files.
- Total size: **under 8 MB** if possible (Sole Hub refuses files over 25 MB).
- Do **not** depend on these:
- logins, cookies or IndexedDB;
- `window.top` or `parent` pages;
- opening new windows, `alert()` or `confirm()`.
`localStorage` may be used for small things, but the lesson must still work when it is empty.
- Do not load scripts from other websites, except Google Fonts. Everything must work even if a font does not load.
- `<title>` = "LEVEL โ TOPIC", for example "Flyers โ Used to".
- Add this code **once**, just before `</body>`, and use it:
```html
<script>
/* Sole Hub bridge: tells the website how far the student is and when the lesson is finished */
function soleProgress(step, total) { try { if (window.SoleLesson) SoleLesson.progress(step, total); } catch (e) {} }
function soleDone() { try { if (window.SoleLesson) SoleLesson.done(); } catch (e) {} }
</script>
```
- Call `soleProgress(currentStep, totalSteps)` every time the step changes (also for the first step).
- Call `soleDone()` **once**, when the student reaches the last "Well done!" screen after the final check.
- The last screen says: "Well done! Now press ๐ฎ Play the games at the top of the screen."
## 7. Your answer
- Give me the **complete file**, with nothing left out (no "โฆrest of the codeโฆ"). If you can create files, give it as a downloadable file named `LEVEL-TOPIC-lesson.html`. Otherwise put it in one code block.
- After the file, write:
- the number of steps;
- the size of the file;
- the short list of anything you corrected or could not keep.
- Before you answer, check:
- every new word and example has a ๐ button;
- no Vietnamese is left;
- `soleProgress` is called on every step and `soleDone()` once at the end;
- the page works with mouse, touch and keyboard;
- nothing is wider than a phone screen.
## MY LESSON (edit these lines)
- LEVEL: Flyers
- TOPIC: Unit 9 โ Used to
- STUDENTS: 9โ11 years old