mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 16:50:56 +00:00
theme
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import React, { PropTypes } from 'react'
|
||||
import { Icon } from 'antd'
|
||||
import { Icon, Card } from 'antd'
|
||||
import styles from './numberCard.less'
|
||||
|
||||
function NumberCard(props) {
|
||||
const { icon, color, title, number } = props
|
||||
return (
|
||||
<div className={styles.numberCard}>
|
||||
<Card className={styles.numberCard} bordered={false} bodyStyle={{padding:0}}>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
@import "../vars.less";
|
||||
.numberCard{
|
||||
box-shadow: @shadow-1;
|
||||
padding: 32px;
|
||||
font-family: monospace;
|
||||
background-color: #fff;
|
||||
margin-bottom: 24px;
|
||||
cursor: pointer;
|
||||
transition: @transition-ease-in;
|
||||
&:hover{
|
||||
box-shadow: @shadow-2;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.iconWarp{
|
||||
font-size: 54px;
|
||||
float: left;
|
||||
|
||||
Reference in New Issue
Block a user