Banner.jsx 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import React from 'react';
  2. import { Row, Col, Card, Statistic } from 'antd';
  3. import { ArrowDownOutlined, ArrowUpOutlined, LikeOutlined } from '@ant-design/icons';
  4. export default (props) => {
  5. return (
  6. <Row gutter={24}>
  7. <Col span={6}>
  8. <Card>
  9. <Statistic title="Feedback" value={1128} prefix={<LikeOutlined />} />
  10. </Card>
  11. </Col>
  12. <Col span={6}>
  13. <Card>
  14. <Statistic title="Unmerged" value={93} suffix="/ 100" />
  15. </Card>
  16. </Col>
  17. <Col span={6}>
  18. <Card>
  19. <Statistic
  20. title="Active"
  21. value={11.28}
  22. precision={2}
  23. valueStyle={{ color: '#3f8600' }}
  24. prefix={<ArrowUpOutlined />}
  25. suffix="%"
  26. />
  27. </Card>
  28. </Col>
  29. <Col span={6}>
  30. <Card>
  31. <Statistic
  32. title="Idle"
  33. value={9.3}
  34. precision={2}
  35. valueStyle={{ color: '#cf1322' }}
  36. prefix={<ArrowDownOutlined />}
  37. suffix="%"
  38. />
  39. </Card>
  40. </Col>
  41. </Row>
  42. )
  43. }