-
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) · 972 Bytes
/
CommunityStats.tsx
File metadata and controls
27 lines (26 loc) · 972 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';
import { SectionTitle } from './SectionTitle';
export const CommunityStats = () => (
<div className="py-5 bg-white w-100 m-0">
<Container className="text-center">
<SectionTitle title="社区数据" />
<Row className="justify-content-center">
{[
{ number: '1000+', label: '社区成员' },
{ number: '50+', label: '举办活动' },
{ number: '200+', label: '技术文章' },
{ number: '30+', label: '开源项目' },
].map(({ number, label }) => (
<Col key={label} xs={12} sm={6} md={3} className="mb-3">
<Card className="border-0 shadow-sm p-3">
<Card.Body>
<strong className="text-dark">{number}</strong>
<h3 className="mb-0 text-dark">{label}</h3>
</Card.Body>
</Card>
</Col>
))}
</Row>
</Container>
</div>
);