| import React from 'react'; |
| import { Button, Divider, List, Typography, Space, Tag } from 'antd'; |
| import { CloudDownloadOutlined } from '@ant-design/icons'; |
| import { useNavigate } from 'react-router-dom'; |
| const { Title, Paragraph, Text } = Typography; |
| const navigate = useNavigate(); |
| <div className="space-y-6"> |
| <div className="text-center py-8"> |
| <Title level={1}>欢迎来到 PT 网站</Title> |
| <Paragraph className="text-lg text-slate-500"> |
| <Button type="primary" size="large" icon={<CloudDownloadOutlined />} onClick={() => navigate('/torrents')}> |
| title={<Space><Text strong>{item.title}</Text><Tag color="blue">{item.date}</Tag></Space>} |
| description={item.content} |