-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathSponsors.tsx
More file actions
37 lines (33 loc) · 1.06 KB
/
Sponsors.tsx
File metadata and controls
37 lines (33 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
import { FC } from 'react';
import { Button, Card, Col, Container, Row } from 'react-bootstrap';
import { ArticleMeta } from '../../pages/api/core';
import { SectionTitle } from './SectionTitle';
interface SponsorsProps {
sponsors: ArticleMeta[];
}
export const Sponsors: FC<SponsorsProps> = ({ sponsors }) => (
<div className="py-5 w-100 m-0 bg-light">
<Container>
<SectionTitle title="赞助商" />
<Row className="g-4" xs={1} sm={2} md={3}>
{sponsors.map(({ name, meta }) => (
<Col key={name}>
<Card>
<Card.Body>
<Card.Title className="text-dark">{name}</Card.Title>
<Card.Text className="text-dark">
{meta?.description || '暂无描述'}
</Card.Text>
</Card.Body>
</Card>
</Col>
))}
</Row>
<div className="text-center mt-4">
<Button variant="outline-primary" size="lg" href="/article/Partner">
成为赞助商 →
</Button>
</div>
</Container>
</div>
);