-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCommunityStats.tsx
More file actions
27 lines (26 loc) · 951 Bytes
/
CommunityStats.tsx
File metadata and controls
27 lines (26 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Card,Col, Container, Row } from 'react-bootstrap';
export const CommunityStats = () => (
<Container className="my-5 text-center">
<h2 className="mb-4">
社区数据
{/* <div className="mx-auto mt-2" style={{ width: '50px', height: '3px', backgroundColor: '#FFC107' }}></div> */}
</h2>
<Row className="justify-content-center">
{[
{ number: '1000+', label: '社区成员' },
{ number: '50+', label: '举办活动' },
{ number: '200+', label: '技术文章' },
{ number: '30+', label: '开源项目' },
].map((stat, index) => (
<Col key={index} xs={12} sm={6} md={3} className="mb-3">
<Card className="border-0 shadow-sm p-3">
<Card.Body>
<h3 className="fw-bold">{stat.number}</h3>
<p className="mb-0">{stat.label}</p>
</Card.Body>
</Card>
</Col>
))}
</Row>
</Container>
);