This commit is contained in:
zuiidea
2016-11-24 14:19:23 +08:00
parent 5cf8923442
commit ace8c2568f
15 changed files with 135 additions and 126 deletions
+6 -6
View File
@@ -1,15 +1,15 @@
import React, {PropTypes} from 'react'
import {Icon} from 'antd'
import React, { PropTypes } from 'react'
import { Icon } from 'antd'
import styles from './numberCard.less'
function NumberCard(props) {
const {icon, color, title, number} = props
const { icon, color, title, number } = props
return (
<div className={styles.numberCard}>
<Icon className={styles.iconWarp} style={{color}} type={icon}/>
<Icon className={styles.iconWarp} style={{ color }} type={icon} />
<div className={styles.content}>
<p className={styles.title}>{title||'No Title'}</p>
<p className={styles.number}>{number||'10,000'}</p>
<p className={styles.title}>{title || 'No Title'}</p>
<p className={styles.number}>{number || '10,000'}</p>
</div>
</div>
)
+3 -1
View File
@@ -1,7 +1,9 @@
.numberCard{
box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.05);
box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.01);
padding: 32px;
font-family: monospace;
background-color: #fff;
margin-bottom: 24px;
.iconWarp{
font-size: 54px;
float: left;