Home.jsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import React from 'react';
  2. import { Typography, Card, Row, Col, Statistic } from 'antd';
  3. import { UserOutlined, CalendarOutlined } from '@ant-design/icons';
  4. const { Title } = Typography;
  5. function Home() {
  6. return (
  7. <div>
  8. <Title level={2}>欢迎使用会友信息管理系统</Title>
  9. <p>当前时间: 2024-10-29 11:57:05</p>
  10. <Row gutter={16} style={{ marginTop: 20 }}>
  11. <Col span={8}>
  12. <Card>
  13. <Statistic
  14. title="总会友数"
  15. value={1128}
  16. prefix={<UserOutlined />}
  17. />
  18. </Card>
  19. </Col>
  20. <Col span={8}>
  21. <Card>
  22. <Statistic
  23. title="今日签到"
  24. value={93}
  25. prefix={<CalendarOutlined />}
  26. />
  27. </Card>
  28. </Col>
  29. <Col span={8}>
  30. <Card>
  31. <Statistic
  32. title="本月新增会友"
  33. value={28}
  34. prefix={<UserOutlined />}
  35. />
  36. </Card>
  37. </Col>
  38. </Row>
  39. </div>
  40. );
  41. }
  42. export default Home;