1
- <CoursePage::InstructionsCard @title =" How to pass this stage" id =" first-stage-tutorial-card" ...attributes>
2
- <:content >
3
- <div class =" prose dark:prose-invert mb-5" >
4
- <p >
5
- Since this is the first stage, we've included some commented code to help you get started. To pass this stage, simply uncomment the code and
6
- submit your changes.
7
- </p >
8
- </div >
1
+ {{ #if this.shouldShowAllStepsAtOnceForStage1 }}
2
+ <CoursePage::InstructionsCard @title =" How to pass this stage" id =" first-stage-tutorial-card" ...attributes>
3
+ <:content >
4
+ <div class =" prose dark:prose-invert mb-5" >
5
+ <p >
6
+ Since this is the first stage, we've included some commented code to help you get started. To pass this stage, simply uncomment the code and
7
+ submit your changes.
8
+ </p >
9
+ </div >
9
10
10
- <ExpandableStepList @steps ={{ this.steps }} @onManualStepComplete ={{ this.handleStepCompletedManually }} class =" scroll-mt-32" as |stepList|>
11
- {{ #if (eq stepList.expandedStep.id " navigate-to-file" )}}
12
- <CoursePage::CourseStageStep::FirstStageTutorialCard::NavigateToFileStep
13
- @repository ={{ @repository }}
14
- @courseStage ={{ @courseStage }}
15
- @isComplete ={{ this.navigateToFileStepIsComplete }}
16
- />
17
- {{ else if (eq stepList.expandedStep.id "uncomment-code")}}
11
+ <div class =" prose dark:prose-invert mb-3" >
12
+ <div class =" inline-flex items-center gap-1" >
13
+ {{ #if this.hasPassedTests }}
14
+ {{ svg-jar " check-circle" class =" w-6 h-6 text-teal-500 inline-flex mb-0.5" }}
15
+ {{ else }}
16
+ <b class =" text-teal-600" >Step 1:</b >
17
+ {{ /if }}
18
+ Open a file
19
+ </div >
20
+ </div >
21
+ <CoursePage::CourseStageStep::FirstStageTutorialCard::NavigateToFileStep
22
+ @repository ={{ @repository }}
23
+ @courseStage ={{ @courseStage }}
24
+ @isComplete ={{ false }}
25
+ />
26
+
27
+ <div class =" prose dark:prose-invert mt-6 mb-3 pt-4 border-t dark:border-white/5" >
28
+ <div class =" inline-flex items-center gap-1" >
29
+ {{ #if this.hasPassedTests }}
30
+ {{ svg-jar " check-circle" class =" w-6 h-6 text-teal-500 inline-flex mb-0.5" }}
31
+ {{ else }}
32
+ <b class =" text-teal-600" >Step 2:</b >
33
+ {{ /if }}
34
+ Uncomment code
35
+ </div >
36
+ </div >
37
+ <div class =" max-w-2xl" >
18
38
<CoursePage::CourseStageStep::FirstStageTutorialCard::UncommentCodeStep
19
39
@repository ={{ @repository }}
20
40
@courseStage ={{ @courseStage }}
21
- @isComplete ={{ this.uncommentCodeStepIsComplete }}
41
+ @isComplete ={{ false }}
22
42
/>
23
- {{ else if (eq stepList.expandedStep.id "submit-code")}}
24
- <CoursePage::CourseStageStep::FirstStageTutorialCard::SubmitCodeStep @isComplete ={{ this.submitCodeStepIsComplete }} />
25
- {{ /if }}
26
- </ExpandableStepList >
43
+ </div >
27
44
28
- {{! After step 2, step 3 already contains a note on Tests Failed, so we can hide this !}}
29
- {{ #unless this.uncommentCodeStepIsComplete }}
30
- <div class =" prose dark:prose-invert prose-sm prose-compact mt-5" >
45
+ <div class =" prose dark:prose-invert mt-8 mb-3 pt-4 border-t dark:border-white/5" >
46
+ <div class =" inline-flex items-center gap-1" >
47
+ {{ #if this.hasPassedTests }}
48
+ {{ svg-jar " check-circle" class =" w-6 h-6 text-teal-500 inline-flex mb-0.5" }}
49
+ {{ else }}
50
+ <b class =" text-teal-600" >Step 3:</b >
51
+ {{ /if }}
52
+ Submit changes
53
+ </div >
54
+ </div >
55
+ <CoursePage::CourseStageStep::FirstStageTutorialCard::SubmitCodeStep @isComplete ={{ this.hasPassedTests }} />
56
+ </:content >
57
+ </CoursePage::InstructionsCard >
58
+ {{ else }}
59
+ <CoursePage::InstructionsCard @title =" How to pass this stage" id =" first-stage-tutorial-card" ...attributes>
60
+ <:content >
61
+ <div class =" prose dark:prose-invert mb-5" >
31
62
<p >
32
- {{ svg-jar " information-circle" class =" w-5 h-5 mb-1 inline-flex text-sky-500" }}
33
- <b >Note:</b >
34
- After your first Git push, you should see
35
- <code class =" font-semibold text-red-700 dark:text-red-300 bg-red-100 dark:bg-red-900/30 border border-red-200 dark:border-red-800/40" >Tests
36
- failed</code >
37
- in the bar below this card. This is expected! Complete the steps above to pass the tests.
63
+ Since this is the first stage, we've included some commented code to help you get started. To pass this stage, simply uncomment the code and
64
+ submit your changes.
38
65
</p >
39
66
</div >
40
- {{ /unless }}
41
- </:content >
42
- </CoursePage::InstructionsCard >
67
+
68
+ <ExpandableStepList @steps ={{ this.steps }} @onManualStepComplete ={{ this.handleStepCompletedManually }} class =" scroll-mt-32" as |stepList|>
69
+ {{ #if (eq stepList.expandedStep.id " navigate-to-file" )}}
70
+ <CoursePage::CourseStageStep::FirstStageTutorialCard::NavigateToFileStep
71
+ @repository ={{ @repository }}
72
+ @courseStage ={{ @courseStage }}
73
+ @isComplete ={{ this.navigateToFileStepIsComplete }}
74
+ />
75
+ {{ else if (eq stepList.expandedStep.id "uncomment-code")}}
76
+ <CoursePage::CourseStageStep::FirstStageTutorialCard::UncommentCodeStep
77
+ @repository ={{ @repository }}
78
+ @courseStage ={{ @courseStage }}
79
+ @isComplete ={{ this.uncommentCodeStepIsComplete }}
80
+ />
81
+ {{ else if (eq stepList.expandedStep.id "submit-code")}}
82
+ <CoursePage::CourseStageStep::FirstStageTutorialCard::SubmitCodeStep @isComplete ={{ this.submitCodeStepIsComplete }} />
83
+ {{ /if }}
84
+ </ExpandableStepList >
85
+
86
+ {{! After step 2, step 3 already contains a note on Tests Failed, so we can hide this !}}
87
+ {{ #unless this.uncommentCodeStepIsComplete }}
88
+ <div class =" prose dark:prose-invert prose-sm prose-compact mt-5" >
89
+ <p >
90
+ {{ svg-jar " information-circle" class =" w-5 h-5 mb-1 inline-flex text-sky-500" }}
91
+ <b >Note:</b >
92
+ After your first Git push, you should see
93
+ <code
94
+ class =" font-semibold text-red-700 dark:text-red-300 bg-red-100 dark:bg-red-900/30 border border-red-200 dark:border-red-800/40"
95
+ >Tests failed</code >
96
+ in the bar below this card. This is expected! Complete the steps above to pass the tests.
97
+ </p >
98
+ </div >
99
+ {{ /unless }}
100
+ </:content >
101
+ </CoursePage::InstructionsCard >
102
+ {{ /if }}
0 commit comments