Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 1 commit intomasterfromtutorial-completion-page
Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes fromall 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
42 changes: 36 additions & 6 deletionsweb-app/src/containers/Tutorial/CompletedPage.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff 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:coderoadapp@gmail.com">coderoadapp@gmail.com</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 deletionsweb-app/stories/Completed.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff 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')} />)

[8]ページ先頭

©2009-2025 Movatter.jp