How bonillajose2022-eng/thereisthereare.index.html works
This is a static, client-only educational web app (no backend) built with vanilla HTML/CSS/JS. The “system” is essentially the browser runtime executing app.js against the DOM in index.html, styled by styles.css, using localStorage for persistence, and loading SVG assets (plus Google Fonts).
File-structure-driven architecture (map files to components)
From the tree:
• index.html
UI composition + content (all sections: explanations, exercises, quiz, teacher mode entry point). This is the “View + content source of truth” in a static site.
• styles.css
Presentation layer (responsive layout, animations, themes). No runtime logic, but important for “UI layer” separation.
• app.js
Application/controller logic:
• exercise interactivity (8 exercise types)
• scoring + progress bar
• final quiz rules (15 questions, one attempt per device)
• teacher mode (password gate, reveal answers, reset quiz)
• localStorage read/write (progress + attempts)
• assets/*
Static media (SVG illustrations referenced by HTML/CSS/JS).
• README.md
Docs + run/deploy notes (GitHub Pages / static hosting).
This is basically an SPA-like experience without a framework: one HTML page, JS controlling sections, state, and UI updates.
Delivery / Hosting (optional but useful)
• Static Host (GitHub Pages / any static server)
• serves: index.html, styles.css, app.js, assets/*.svg
Client Runtime (the core)
Inside the Browser boundary, split into:
UI / DOM Layer
• Navigation bar (includes “Teacher” button)
• Grammar content sections
• Exercise sections (8 types)
• Final quiz section
• Progress bar / score display
• Answer reveal areas (affected by Teacher Mode)
App Logic Layer (app.js) — break into subcomponents
• Router/Section Controller (even if implicit): shows/hides sections, manages navigation state
• Exercise Engine
• generators/checkers per exercise type (fill blank, MCQ, matching, etc.)
• validation + feedback rendering
• Scoring & Progress Manager
• updates progress bar
• aggregates scores across exercises
• Final Quiz Manager
• enforces “one attempt per device”
• grades 15 questions
• locks/unlocks based on stored attempt state
• Teacher Mode Manager
• password verification (TEACHER123)
• toggles “show answers” UI states
• resets final quiz attempt state
• Persistence Adapter
• localStorage read/write for:
• progress / scores
• final quiz attempt flag
• possibly per-exercise completion
External Resources
• Google Fonts (network dependency)
• (Optionally) “Inline/External SVG assets” as a static resource dependency
Architectural patterns to highlight (accurate to this repo)
• Client-only / JAMstack-style static site (no API, no DB server)
• Event-driven DOM programming (vanilla JS)
• Stateful UI via localStorage (persistence per device)
• Feature modules inside one JS file (conceptually modular even if physically monolithic)
Labels
Use labels that match the repo + domain:
• “Exercise Engine (8 types)”
• “Final Quiz Manager (15 Q, single attempt/device)”
• “Teacher Mode (password gated, show answers, reset quiz)”
• “Persistence (localStorage: progress, score, quizAttempt)”
Use this as your component inventory:
• Static Host (GitHub Pages / local server)
• serves: index.html, styles.css, app.js, assets/*.svg
• Browser (Client)
• UI Sections (index.html)
• Grammar lessons
• Exercises (8 types)
• Final Quiz
• Teacher Button / Teacher UI
• Progress Bar / Score UI
• Styling (styles.css)
• App Logic (app.js)
• Section Controller
• Exercise Engine
• Scoring & Progress Manager
• Final Quiz Manager
• Teacher Mode Manager
• localStorage Adapter
• localStorage (progress, scores, quizAttempt flag)
• External
• Google Fonts CDN