|
14 | 14 | <body> |
15 | 15 | <div id="app"> |
16 | 16 | <header class="app-header"> |
17 | | - <h1>QTI 3 Player Sandbox</h1> |
18 | | - <a |
19 | | - href="https://github.com/agencyenterprise/qti-3-player/tree/main/docs/qti_support" |
20 | | - target="_blank" |
21 | | - >QTI Support Docs</a |
22 | | - > |
| 17 | + <div class="header-left"> |
| 18 | + <div class="app-logo" aria-hidden="true"></div> |
| 19 | + <div class="app-title"> |
| 20 | + <h1>QTI 3 Player</h1> |
| 21 | + <span>Sandbox</span> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + <div class="header-actions"> |
| 25 | + <button id="theme-toggle" class="icon-btn" type="button" aria-label="Toggle theme"> |
| 26 | + <span |
| 27 | + class="icon-slot theme-icon theme-icon-sun" |
| 28 | + data-icon="sun" |
| 29 | + aria-hidden="true" |
| 30 | + ></span> |
| 31 | + <span |
| 32 | + class="icon-slot theme-icon theme-icon-moon" |
| 33 | + data-icon="moon" |
| 34 | + aria-hidden="true" |
| 35 | + ></span> |
| 36 | + <span class="theme-label">Dark</span> |
| 37 | + </button> |
| 38 | + <a |
| 39 | + class="link-btn" |
| 40 | + href="https://github.com/agencyenterprise/qti-3-player/tree/main/docs/qti_support" |
| 41 | + target="_blank" |
| 42 | + rel="noreferrer" |
| 43 | + >Docs</a |
| 44 | + > |
| 45 | + </div> |
23 | 46 | </header> |
24 | 47 | <div class="container"> |
25 | 48 | <div class="editor-pane"> |
26 | | - <h2>QTI XML Input</h2> |
27 | | - <h3 id="editor-title">Main</h3> |
28 | | - <textarea id="xml-input" placeholder="Paste your QTI XML here..."></textarea> |
29 | | - <div class="selector-container" id="xml-source-selector-container"> |
30 | | - <label id="xml-source-selector-label" for="xml-source-selector" class="selector-label"> |
31 | | - Switch XML (Main vs item-ref href) |
32 | | - </label> |
33 | | - <select id="xml-source-selector"></select> |
34 | | - </div> |
35 | | - <div class="controls"> |
36 | | - <button id="validate-btn">Validate XML</button> |
37 | | - <button id="render-btn">Render QTI</button> |
38 | | - <label class="toggle-control"> |
39 | | - <input type="checkbox" id="custom-css-toggle" /> |
40 | | - <span class="toggle-slider"></span> |
41 | | - <span class="toggle-label">Custom CSS</span> |
42 | | - </label> |
| 49 | + <div class="pane-header editor-header"> |
| 50 | + <div class="pane-left"> |
| 51 | + <div class="selector-container selector-top" id="xml-source-selector-container"> |
| 52 | + <select id="xml-source-selector" aria-label="XML Source"></select> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + <div class="pane-actions editor-actions"> |
| 56 | + <button id="validate-btn" class="btn btn-primary"> |
| 57 | + <span class="icon-slot" data-icon="check-circle" aria-hidden="true"></span> |
| 58 | + Validate |
| 59 | + </button> |
| 60 | + <button id="render-btn" class="btn btn-primary"> |
| 61 | + <span class="icon-slot" data-icon="play" aria-hidden="true"></span> |
| 62 | + Render |
| 63 | + </button> |
| 64 | + </div> |
43 | 65 | </div> |
| 66 | + <div id="xml-editor" class="code-editor" aria-label="QTI XML input"></div> |
44 | 67 | <div id="validation-result"></div> |
45 | 68 | </div> |
46 | 69 | <div class="resizer" id="dragMe"></div> |
47 | 70 | <div class="preview-pane"> |
48 | | - <div class="preview-header"> |
49 | | - <h2>Preview</h2> |
| 71 | + <div class="pane-bar pane-bar-top"> |
| 72 | + <div class="pane-actions pane-actions-left pane-actions-stack"> |
| 73 | + <button id="submit-btn" class="btn btn-primary">Submit Answer</button> |
| 74 | + <span id="submission-count" class="pane-subtitle">Submissions: 0</span> |
| 75 | + </div> |
| 76 | + <div class="pane-actions pane-actions-center"> |
| 77 | + <button id="prev-btn" class="btn btn-secondary" disabled>Previous</button> |
| 78 | + <button id="next-btn" class="btn btn-secondary" disabled>Next</button> |
| 79 | + </div> |
| 80 | + <div class="pane-actions pane-actions-right"> |
| 81 | + <label class="toggle-control compact"> |
| 82 | + <input type="checkbox" id="custom-css-toggle" /> |
| 83 | + <span class="toggle-slider"></span> |
| 84 | + <span class="toggle-label">Custom CSS</span> |
| 85 | + </label> |
| 86 | + </div> |
50 | 87 | </div> |
51 | 88 | <div class="renderer-wrapper"> |
52 | 89 | <div id="qti-container"></div> |
53 | 90 | </div> |
54 | | - <div class="controls preview-controls"> |
55 | | - <span id="submission-count">Submissions: 0</span> |
56 | | - <button id="prev-btn" class="secondary-btn" disabled>Previous</button> |
57 | | - <button id="next-btn" class="secondary-btn" disabled>Next</button> |
58 | | - <button id="submit-btn" class="primary-btn">Submit Answer</button> |
59 | | - </div> |
60 | 91 | </div> |
61 | 92 | </div> |
62 | 93 | </div> |
|
0 commit comments