ybt | da5978b | 2025-05-31 15:58:05 +0800 | [diff] [blame] | 1 | import React from 'react'; |
| 2 | import { Button, Divider, List, Typography, Space, Tag } from 'antd'; |
| 3 | import { CloudDownloadOutlined } from '@ant-design/icons'; |
| 4 | |
| 5 | const { Title, Paragraph, Text } = Typography; |
| 6 | |
| 7 | const HomePage = () => ( |
| 8 | <div className="space-y-6"> |
| 9 | <div className="text-center py-8"> |
| 10 | <Title level={1}>欢迎来到 PT 网站</Title> |
| 11 | <Paragraph className="text-lg text-slate-500"> |
| 12 | 高清资源分享,互助共赢的PT资源社区 |
| 13 | </Paragraph> |
| 14 | <Button type="primary" size="large" icon={<CloudDownloadOutlined />}> |
| 15 | 浏览资源 |
| 16 | </Button> |
| 17 | </div> |
| 18 | |
| 19 | <Divider>最新公告</Divider> |
| 20 | |
| 21 | <List |
| 22 | itemLayout="horizontal" |
| 23 | dataSource={[ |
| 24 | { |
| 25 | title: '网站升级通知', |
| 26 | date: '2023-06-15', |
| 27 | content: '网站将于本周六进行系统升级,届时将暂停服务4小时。' |
| 28 | }, |
| 29 | { |
| 30 | title: '新规则发布', |
| 31 | date: '2023-06-10', |
| 32 | content: '关于发布资源的新规则已经生效,请会员查看详情。' |
| 33 | }, |
| 34 | { |
| 35 | title: '新用户注册开放', |
| 36 | date: '2023-06-01', |
| 37 | content: '本站现已开放新用户注册,每天限额100名。' |
| 38 | } |
| 39 | ]} |
| 40 | renderItem={(item) => ( |
| 41 | <List.Item> |
| 42 | <List.Item.Meta |
| 43 | title={<Space><Text strong>{item.title}</Text><Tag color="blue">{item.date}</Tag></Space>} |
| 44 | description={item.content} |
| 45 | /> |
| 46 | </List.Item> |
| 47 | )} |
| 48 | /> |
| 49 | </div> |
| 50 | ); |
| 51 | |
| 52 | export default HomePage; |