|
1 | 1 | <section class="training-main"> |
2 | | - |
3 | 2 | <div class="training-body"> |
4 | | - |
5 | | - <div class="training-top"> |
6 | | - |
| 3 | + <div class="training-top" ng-style='allGone'> |
7 | 4 | <div class="kata-name-container"> |
8 | | - |
9 | 5 | <div class="kata-name-container-top"> |
10 | 6 | <img src="./assets/imgs/5_kyu_icon.png" alt="Difficulty" id="difficulty-icon"> |
11 | 7 | <h3 class="font16-reg" id="kata-name"> |
12 | 8 | Name of Kata |
13 | 9 | </h3> |
14 | 10 | </div> |
15 | | - |
16 | | - |
17 | 11 | <div class="kata-stats"> |
18 | 12 | <p>Here's where stats go</p> |
19 | 13 | <p>Here's where stats go</p> |
20 | 14 | <p>Here's where stats go</p> |
21 | 15 | </div> |
22 | | - |
23 | | - </div> <!--End kata-name-container div--> |
24 | | - |
| 16 | + </div> |
| 17 | + <!--End kata-name-container div--> |
25 | 18 | <div class="selection-div"> |
26 | | - <select class="language-select-dropdown select-dropdown" ng-init="selectedLanguage = languages[0]" ng-model="selectedLanguage" ng-options="x for x in languages"> |
| 19 | + <select class="language-select-dropdown select-dropdown" ng-init="selectedLanguage = languages[0]" ng-model="selectedLanguage" |
| 20 | + ng-options="x for x in languages"> |
27 | 21 |
|
28 | 22 | </select> |
29 | | - <select class="language-version-select-dropdown select-dropdown" ng-init="selectedVersion = versions[0]" ng-model="selectedVersion" ng-options="x for x in versions"> |
| 23 | + <select class="language-version-select-dropdown select-dropdown" ng-init="selectedVersion = versions[0]" ng-model="selectedVersion" |
| 24 | + ng-options="x for x in versions"> |
30 | 25 |
|
31 | 26 | </select> |
32 | 27 | </div> |
33 | | - |
34 | 28 | <div class="assorted-options"> |
35 | 29 | <div class="view-options">Here's where view options go</div> |
36 | 30 | <div class="view-options">Here's where view options go</div> |
37 | 31 | <div class="view-options">Here's where view options go</div> |
38 | 32 | </div> |
39 | | - |
40 | 33 | </div> |
41 | | - |
42 | 34 | <div class="kata"> |
43 | | - |
44 | | - <div class="instructions"> |
45 | | - <div class="instructions-head"> |
46 | | - <button class="instructions-selector font13-reg-gray" ng-click="showInstructions()">Instructions</button> |
47 | | - <button class="instructions-selector font13-reg-gray" ng-click="showOutput()">Output</button> |
| 35 | + <!-- <div class="instructions"> |
| 36 | + <div class="instructions-head"> |
| 37 | + <button class="instructions-selector font13-reg-gray">Instructions</button> |
| 38 | + <button class="instructions-selector font13-reg-gray">Output</button> |
| 39 | + </div> |
| 40 | + <hr> |
| 41 | + <h2 class="font20-reg">Name of Kata</h2> |
| 42 | + <div> |
| 43 | + <p>Here's where the instructions go. We have to think about how to present code samples.</p> |
| 44 | + <div ng-repeat="test in output"> |
| 45 | + <p>{{test.test}}</p> |
| 46 | + <p>{{test.result}}</p> |
48 | 47 | </div> |
49 | | - <hr> |
50 | | - <show-output ng-hide="showOutputShow"></show-output> |
51 | | - <show-instructions ng-hide="showInstructionsShow"></show-instructions> |
| 48 | + </div> |
| 49 | + </div> --> |
| 50 | + <div class="instructions" ng-style="instructionStyle"> |
| 51 | + <div class="instructions-head"> |
| 52 | + <button class="instructions-selector font13-reg-gray" ng-click="showInstructions()">Instructions</button> |
| 53 | + <button class="instructions-selector font13-reg-gray" ng-click="showOutput()">Output</button> |
| 54 | + </div> |
| 55 | + <hr> |
| 56 | + <show-output ng-hide="showOutputShow"></show-output> |
| 57 | + <show-instructions ng-hide="showInstructionsShow"></show-instructions> |
52 | 58 | </div> |
53 | | - |
54 | | - <div class="kata-right"> |
55 | | - <div> |
| 59 | + <div class="kata-right" ng-style='kataStyle'> |
56 | 60 | <div class="solution-div font14-lit-gray"> |
57 | | - <p>Solution:</p> |
58 | | - <div> |
59 | | - <textarea name="solution" id="solution-input" ng-init="solutionInput = 'var a = 1;'"ng-model="solutionInput"></textarea> |
| 61 | + <div class="solutions-header"> |
| 62 | + <p>Solution:</p> |
| 63 | + <button value='small' ng-click="kataStyle={'width':'40vw'}; instructionStyle={'width':'60vw'}; allGone={'height':'100px'}">small</button> |
| 64 | + <button value='medium' ng-click="kataStyle={'width':'60vw'}; instructionStyle={'width':'40vw'}; allGone={'height':'100px'}">medium</button> |
| 65 | + <button value='large' ng-click="kataStyle={'width':'100vw','margin':'15px'}; instructionStyle={'display':'none'}; allGone={'height':'100px'}">large</button> |
| 66 | + <button value='full-screen' ng-click="kataStyle={'width':'100vw','margin':'15px'}; instructionStyle={'display':'none'}; allGone={'display':'none'}; exampleGone={'display':'none'}">full screen</button> |
| 67 | + </div> |
| 68 | + <div ng-style="exampleGone" class='example'> |
| 69 | + <textarea name="solution" id="solution-input" ng-init="solutionInput = 'var a = 1;'" ng-model="solutionInput"></textarea> |
60 | 70 | </div> |
61 | 71 | </div> |
62 | | - |
63 | 72 | <div class="example-tests-div font14-lit-gray"> |
64 | 73 | <p>Example Tests:</p> |
65 | | - <form> |
66 | | - <textarea name="examples" id="example-input" ng-init="examplesInput = 'Test.assertEquals(a, 1);'" id="example-tests-input" ng-model="examplesInput"></textarea> |
67 | | - </form> |
68 | | - <button ng-click="testExamples()" class="test-examples-button font12-reg-blue">RUN EXAMPLES</button> |
69 | | - <button ng-click="testSuite()" class="test-suite-button font12-reg-black" style=""><i class="fa fa-caret-right fa-lg" style="margin-right: 2px" aria-hidden="true"></i>ATTEMPT</button> |
70 | | - </div> |
| 74 | + <textarea name="examples" id="example-input" ng-init="examplesInput = 'Test.assertEquals(a, 1);'" id="example-tests-input" |
| 75 | + ng-model="examplesInput"></textarea> |
| 76 | + <div class='button-div'> |
| 77 | + <button ng-click="testExamples()" class="test-examples-button font12-reg-blue">RUN EXAMPLES</button> |
| 78 | + <button ng-click="testSuite()" class="test-suite-button font12-reg-black"><i class="fa fa-caret-right fa-lg" style="margin-right: 2px" aria-hidden="true"></i>ATTEMPT</button> |
| 79 | + </div> |
71 | 80 | </div> |
72 | 81 | </div> |
73 | | - |
74 | 82 | </div> |
75 | | - |
76 | 83 | </div> |
77 | | - |
78 | 84 | </section> |
0 commit comments