mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 08:14:06 +00:00
dashbord
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user