Skip to content

add tutorial completion page (basic) #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add tutorial completion page (basic)
  • Loading branch information
ShMcK committed Mar 2, 2020
commit 207375a104857a7f90092760d65b8cef87d8bcd8
42 changes: 36 additions & 6 deletions web-app/src/containers/Tutorial/CompletedPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ import { css, jsx } from '@emotion/core'
import Button from '../../components/Button'

const styles = {
options: {
padding: '0rem 1rem',
page: {
padding: '1rem',
},
section: {
marginTop: '1rem',
marginBottom: '2rem',
},
buttonContainer: {
marginTop: '1rem',
},
}

Expand All @@ -19,10 +26,33 @@ const CompletedPage = (props: Props) => {
props.send('SELECT_TUTORIAL')
}
return (
<div>
<h3>Tutorial Complete</h3>
<div css={styles.options}>
<Button onClick={selectNewTutorial}>Continue</Button>
<div css={styles.page}>
<h1>Tutorial Complete!</h1>
<div css={styles.section}>
<p>Thank you for demoing the CodeRoad beta!</p>
</div>
<div css={styles.section}>
<h3>Subscribe!</h3>
<p>Sign up to our mailing list to be first to hear about future tutorials.</p>
<div css={styles.buttonContainer}>
<a href="https://tiny.cc/coderoad">
<Button type="primary">Subscribe to Mailing List</Button>
</a>
</div>
</div>
<div css={styles.section}>
<h3>Contact Us</h3>
<p>We'd love to hear your comments, ideas & feedback.</p>
<p>
Reach out at <a href="mailto:[email protected]">[email protected]</a>!
</p>
</div>
<div css={styles.section}>
<h3>Continue</h3>
<p>To try another tutorial, open a new VSCode workspace and launch the CodeRoad app</p>
<div css={styles.buttonContainer}>
<Button onClick={selectNewTutorial}>Return to Tutorial List</Button>
</div>
</div>
</div>
)
Expand Down
9 changes: 9 additions & 0 deletions web-app/stories/Completed.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { action } from '@storybook/addon-actions'
import { storiesOf } from '@storybook/react'
import React from 'react'
import CompletedPage from '../src/containers/Tutorial/CompletedPage'
import SideBarDecorator from './utils/SideBarDecorator'

storiesOf('Completed', module)
.addDecorator(SideBarDecorator)
.add('Page', () => <CompletedPage context={{}} send={action('send')} />)