2016-05-04 04:40:46 +08:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
import styles from './styles.scss';
|
|
|
|
import { FormattedMessage, FormattedDate } from 'react-intl';
|
|
|
|
|
2016-05-20 22:13:06 +08:00
|
|
|
import Button from '../button/component';
|
|
|
|
|
2016-05-04 04:40:46 +08:00
|
|
|
export default class Whiteboard extends Component {
|
2016-05-20 22:13:06 +08:00
|
|
|
handleClick() {
|
|
|
|
console.log('dummy handler');
|
|
|
|
}
|
|
|
|
|
2016-05-04 04:40:46 +08:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div className={styles.whiteboard}>
|
2016-05-20 22:13:06 +08:00
|
|
|
<p>
|
|
|
|
<FormattedMessage
|
|
|
|
id="app.home.greeting"
|
|
|
|
description="Message to greet the user."
|
|
|
|
defaultMessage="Welcome {name}! Your presentation will begin shortly..."
|
|
|
|
values={{ name: 'James Bond' }}
|
|
|
|
/>
|
|
|
|
<br/>
|
|
|
|
Today is {' '}<FormattedDate value={Date.now()} />
|
|
|
|
<br/>
|
|
|
|
Here is some button examples
|
|
|
|
<br/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Button
|
|
|
|
label={'Small'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
size={'sm'}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Medium'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Large'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
size={'lg'}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Button
|
|
|
|
label={'Default'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Primary'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'primary'}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Danger'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'danger'}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Success'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'success'}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Button
|
|
|
|
label={'Default'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
ghost={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Primary'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'primary'}
|
|
|
|
ghost={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Danger'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'danger'}
|
|
|
|
ghost={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Success'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'success'}
|
|
|
|
ghost={true}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Button
|
|
|
|
label={'With Icon'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
icon={'circle-add'}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Ghost With Icon'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'primary'}
|
|
|
|
icon={'circle-add'}
|
|
|
|
ghost={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Icon Right'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'danger'}
|
|
|
|
icon={'circle-add'}
|
|
|
|
ghost={true}
|
|
|
|
iconRight={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Icon Right'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'success'}
|
|
|
|
icon={'circle-add'}
|
|
|
|
iconRight={true}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<Button
|
|
|
|
label={'Small'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
icon={'audio'}
|
|
|
|
size={'sm'}
|
|
|
|
circle={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Medium'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'primary'}
|
|
|
|
icon={'audio'}
|
|
|
|
ghost={true}
|
|
|
|
circle={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Large'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'danger'}
|
|
|
|
icon={'audio'}
|
|
|
|
size={'lg'}
|
|
|
|
ghost={true}
|
|
|
|
circle={true}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={'Icon Right'}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
color={'success'}
|
|
|
|
icon={'audio'}
|
|
|
|
size={'sm'}
|
|
|
|
iconRight={true}
|
|
|
|
circle={true}
|
|
|
|
/>
|
|
|
|
</p>
|
2016-05-04 04:40:46 +08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|