956303669 | 9e95ae3 | 2025-06-02 21:42:11 +0800 | [diff] [blame] | 1 | import React from 'react';
|
| 2 | import { useParams } from 'react-router-dom';
|
| 3 | import './App.css';
|
| 4 |
|
| 5 | export default function TorrentDetailPage() {
|
| 6 | const { torrentId } = useParams();
|
| 7 |
|
| 8 | return (
|
| 9 | <div className="container">
|
| 10 | <h1>种子详情页</h1>
|
ssq | 5067cb9 | 2025-06-05 11:44:23 +0000 | [diff] [blame^] | 11 | <h2 style={{ fontSize: 'inherit', fontWeight: 'normal', textAlign: 'left' }}>标题: 种子{torrentId}</h2>
|
| 12 | <p style={{ fontSize: 'inherit', textAlign: 'left' }}>简介: 这是种子{torrentId}的详细信息。</p>
|
956303669 | 9e95ae3 | 2025-06-02 21:42:11 +0800 | [diff] [blame] | 13 | <div style={{ textAlign: 'center', marginTop: '20px' }}>
|
ssq | 5067cb9 | 2025-06-05 11:44:23 +0000 | [diff] [blame^] | 14 | <button style={{ padding: '10px 20px', fontSize: '16px', cursor: 'pointer', backgroundColor: '#d3f0ff', border: 'none', borderRadius: '4px' }}>
|
956303669 | 9e95ae3 | 2025-06-02 21:42:11 +0800 | [diff] [blame] | 15 | 下载
|
| 16 | </button>
|
| 17 | </div>
|
| 18 | </div>
|
| 19 | );
|
| 20 | }
|