File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
src/components/NewUserExperience Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react'
2+
3+ const styles = {
4+ container : {
5+ display : 'flex' as 'flex' ,
6+ flexDirection : 'column' as 'column' ,
7+ backgroundColor : '#6a67ce' ,
8+ color : 'white' ,
9+ padding : '0.5rem' ,
10+ } ,
11+ title : {
12+ fontWeight : 'bold' ,
13+ } ,
14+ }
15+
16+ const NewUserExperienceTutorial = ( ) => {
17+ return (
18+ < div css = { styles . container } >
19+ < div >
20+ < h3 css = { styles . title } > What To Do</ h3 >
21+ < p > Update the editor code and press save to to complete the list of "Tasks".</ p >
22+ </ div >
23+ < div >
24+ < h3 css = { styles . title } > How It Works</ h3 >
25+ < p >
26+ When you press save in the editor, CodeRoad runs tests to check if you completed the current task and can
27+ continue to the next task.
28+ </ p >
29+ < p >
30+ Progress is tracked and advanced by using Git in the background. On startup, CodeRoad launches a new local Git
31+ repo. New tasks are loaded as new commits, and your task solution code is automatically saved as the next Git
32+ commit.
33+ </ p >
34+ </ div >
35+ < div >
36+ < h3 css = { styles . title } > How to Debug</ h3 >
37+ < p > You can debug a tutorial in a number of ways:</ p >
38+ < ol >
39+ < li > 1. Run the VSCode Debugger located in the left hand panel and add breakpoints to the code</ li >
40+ < li > 2. Run the tests in the command line (eg. `npm run test`)</ li >
41+ < li > 3. Press save in the editor and read the failed test output in the console output</ li >
42+ </ ol >
43+ </ div >
44+ </ div >
45+ )
46+ }
47+
48+ export default NewUserExperienceTutorial
Original file line number Diff line number Diff line change 1+ import { storiesOf } from '@storybook/react'
2+ import React from 'react'
3+ import { css , jsx } from '@emotion/core'
4+ import SideBarDecorator from './utils/SideBarDecorator'
5+ import NewUserExperienceTutorial from '../src/components/NewUserExperience/NuxTutorial'
6+
7+ storiesOf ( 'NewUserExperience' , module )
8+ . addDecorator ( SideBarDecorator )
9+ . add ( 'NUXTutorial' , ( ) => < NewUserExperienceTutorial /> )
You can’t perform that action at this time.
0 commit comments