-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathLatestBlogs.tsx
More file actions
40 lines (38 loc) · 1.13 KB
/
LatestBlogs.tsx
File metadata and controls
40 lines (38 loc) · 1.13 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
38
39
40
import Link from 'next/link';
import { Button,Card, Col, Container, Row } from 'react-bootstrap';
export const LatestBlogs = () => (
<Container className="my-5">
<h2 className="text-center mb-4">最新博客文章</h2>
<Row className="g-4" xs={1} sm={2} md={3}>
<Col>
<Card>
<Card.Body>
<Card.Title>如何学习 TypeScript?</Card.Title>
<Card.Text>发布日期: 2025年3月10日</Card.Text>
<a href="#" className="btn btn-secondary">
阅读文章
</a>
</Card.Body>
</Card>
</Col>
<Col>
<Card>
<Card.Body>
<Card.Title>React 18 新特性</Card.Title>
<Card.Text>发布日期: 2025年2月25日</Card.Text>
<a href="#" className="btn btn-secondary">
阅读文章
</a>
</Card.Body>
</Card>
</Col>
</Row>
<div className="text-center mt-4">
<Link href="/blog" passHref>
<Button variant="outline-primary" size="lg">
查看全部文章 →
</Button>
</Link>
</div>
</Container>
);