Download task_016/instruction.md from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_016/instruction.md
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_016/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_016/instruction.md
Local bilingual vocabulary lessons
Extend the supplied offline learning demo at /app/index.html. Keep src/LoginScreen.tsx, src/register.tsx, and src/lesson.tsx and the starter's data-testid hooks. The HTML page must run without installing or contacting external services.
Login and lessons
Only the local demo credentials admin / admin may enter language selection. A failed login clears any previous authorization and lesson view. A logged-out user must not reach a lesson through hidden controls or scripted activation. This is a local gate, not server-side authentication.
Keep the native language-select dropdown. Offer Chinese and English (the labels 中文 and 英文 are also accepted) and at least one unsupported language. Only the supported options may proceed. An unsupported selection shows a dismissible popup containing unsupport and closes any open lesson. Use a native alert or a visible HTML dialog with an accessible Close/OK button; the popup is sufficient without a duplicate status message.
In both supported lessons, display the vocabulary pairs boy / 男孩, women / 女人, man / 男人, and apple / 苹果. Provide learning prompts appropriate to the selected language.
Acceptance Checklist
- The offline page renders and retains the source files and starter controls. Correct credentials open language selection; a wrong username or password does not.
- Both supported choices open their lesson and display all four vocabulary terms.
- Unsupported choices show the dismissible warning and never leave an old lesson visible. A later failed login resets authorization and cannot be bypassed through a hidden control.