Skip to content
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

Added Instructions Page UI #229

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions Origami/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class App extends React.Component {
this.setState({ displayLogin: '' });
}


rootApi
.checkRootSettings()
.then(data => {
Expand Down
Binary file added Origami/src/components/assets/backward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/code .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Origami/src/components/assets/doggie.jpg
Binary file not shown.
Binary file added Origami/src/components/assets/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/forward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/id.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/tools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Origami/src/components/assets/upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Origami/src/components/assets/vt.png
Binary file not shown.
Binary file added Origami/src/components/assets/wire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
import React from 'react';
import { PropTypes } from 'prop-types';
import { Layout, Icon, Button, Card, Row, Col, Input, Select } from 'antd';
const { Header, Content, Footer } = Layout;
import { Step, Stepper, StepLabel } from 'material-ui/Stepper';
import { red500, green500, grey900 } from 'material-ui/styles/colors';

class InstructionsPage extends React.Component {
constructor(props, context) {
super(props, context);
}

getStyles() {
return {
layout: {
background: '#F7F7F7',
},
content: {
margin: '24px 0 0 12px',
overflow: 'initial',
},
contentDiv: {
padding: '5px 0',
background: '#F7F7F7',
},

txt: {
fontFamily: '"Open Sans", "Helvetica", sans-serif',
fontSize: '1em',
fontWeight: 'bold',
},

box: {
flexGrow: '5.75',
minWidth: '300px',
padding: '30px',
backgroundColor: '#fffff',
},
box1: {
border: '1px solid #F3F2F2',
backgroundColor: 'White',
borderRadius: '10px',
padding: '10px',
},


download: {
width: '160px',
color: 'White',
backgroundColor: '#00c8f8',
height: '37px',
},
dwnbtm: {
width: '160px',
color: 'White',
backgroundColor: '#90caf9',
height: '4px',
marginTop: '0px',
},

upload: {
width: '160px',
color: 'White',
backgroundColor: '#00c8f8',
height: '37px',
marginLeft: '100%',
},
upldbtm: {
width: '160px',
color: 'White',
backgroundColor: '#90caf9',
height: '4px',
marginLeft: '100%',
},
logo: {
paddingLeft: '13px',
},
};
}
back() {
this.props.history.push('/demo_register');
}

render() {
console.log('aaya');
let styles = this.getStyles();

return (
<div style={{ backgroundColor: '#F7F7F7' }}>
<Layout style={styles.layout}>
<Content style={styles.content}>
<div style={styles.contentDiv}>
<Row>
<div
style={{
width: '100%',
maxWidth: 700,
margin: 'auto',
marginTop: '5px',
}}
>
<div className="sixteen wide column stretched">
<h1
style={{
textAlign: 'center',
fontSize: '20px',
fontWeight: 'bold',
}}
>
Configure bundled code
</h1>
</div>
<Stepper linear={false}>
<Step>
<StepLabel>
<b>Register Application</b>
</StepLabel>
</Step>
<Step active>
<StepLabel>Configure bundled code </StepLabel>
</Step>
</Stepper>
</div>
</Row>
<div>
<div
className="ui grid container"
style={{ position: 'relative' }}
>
<div className="ui grid container">
<div className="column aligned" style={styles.box}>
<div style={styles.box1}>
<h1
style={{
fontSize: '22px',
color: '##606470',
fontWeight: '600',
paddingTop: '30px',
paddingLeft: '30px',
}}
>
{' '}
You're Almost There{' '}
</h1>
<div
style={{
paddingLeft: '7%',
paddingTop: '10px',
fontSize: '15px',
color: '##606470',
}}
>
<div className="row">
1. Download the bundled Code.
</div>
<div className="row" style={{ paddingTop: '10px' }}>
2. Configure your Machine learning code with the
bundle .<text
style={{ color: '#00c8f8', paddingRight: '5px' }}
>
Read the docs
</text>{' '}
for bundling instructions .
</div>
<div className="row" style={{ paddingTop: '10px' }}>
3. Upload the modifed bundle.
</div>
</div>
<br />
<br />

<div
className="two column row"
style={{ paddingTop: '30px', marginLeft: '7%' }}
>
<div className="column">
<Button primary style={styles.download}>
<text style={styles.txt}>
Download
<span>
<a style={styles.logo}>
<img
src={require('../../assets/download.png')}
/>
</a>
</span>
</text>
</Button>

<div style={styles.dwnbtm} />
</div>
<div className="column" style={{ marginLeft: '30%' }}>
<Button primary style={styles.upload}>
<text style={styles.txt}>
Upload
<span>
<a style={styles.logo}>
<img
src={require('../../assets/upload.png')}
/>
</a>
</span>
</text>
</Button>
<div style={styles.upldbtm} />
</div>
</div>
<br />
<br />
</div>
<br />
<br />

<div className="two column row">
<div className="column" style={{ marginLeft: '35%' }}>
<div>
<img
src={require('../../assets/backward.png')}
onClick={this.back.bind(this)}
style={{ height: '49px', width: '49px' }}
/>
</div>
</div>
<div className="column" style={{ marginLeft: '14%' }}>
<div>
<img
src={require('../../assets/forward.png')}
style={{ height: '49px', width: '49px' }}
/>
</div>
</div>
</div>
<div className="two column row">
<div
className="column"
style={{ marginLeft: '33%', paddingTop: '10px' }}
>
<div style={{ fontSize: '18px', color: '#323643' }}>
Register Page
</div>
</div>
<div
className="column"
style={{ marginLeft: '8%', paddingTop: '10px' }}
>
<div style={{ fontSize: '18px', color: '#323643' }}>
Demo Page
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</Content>
</Layout>
</div>
);
}
}

export default InstructionsPage;
Loading