feat: add HTML lessons mode and side-by-side comparison UI
- Add HTML mode support with new validation types (element_exists, element_count, attribute_value, element_text, parent_child, sibling) - Create 3 HTML lesson modules: Elements, Forms Basic, Forms Validation - Implement side-by-side preview comparison (Your Output vs Expected) - Add merge animation with "Perfect Match!" overlay on validation success - Render expected output from solutionCode field in lesson JSON - Update schema to support HTML mode and solutionCode - Reorder modules: HTML first, then CSS, then Tailwind - Update tests for new functionality
This commit is contained in:
@@ -6,9 +6,20 @@
|
||||
import basicSelectorsConfig from "../../lessons/00-basic-selectors.json";
|
||||
import advancedSelectorsConfig from "../../lessons/01-advanced-selectors.json";
|
||||
import tailwindConfig from "../../lessons/10-tailwind-basics.json";
|
||||
// HTML lessons
|
||||
import htmlElementsConfig from "../../lessons/20-html-elements.json";
|
||||
import htmlFormsBasicConfig from "../../lessons/21-html-forms-basic.json";
|
||||
import htmlFormsValidationConfig from "../../lessons/22-html-forms-validation.json";
|
||||
|
||||
// Module store
|
||||
const moduleStore = [basicSelectorsConfig, advancedSelectorsConfig, tailwindConfig];
|
||||
const moduleStore = [
|
||||
htmlElementsConfig,
|
||||
htmlFormsBasicConfig,
|
||||
htmlFormsValidationConfig,
|
||||
basicSelectorsConfig,
|
||||
advancedSelectorsConfig,
|
||||
tailwindConfig
|
||||
];
|
||||
|
||||
/**
|
||||
* Load all available modules
|
||||
|
||||
Reference in New Issue
Block a user