blob: bf82c2ed959ab02463a10a143c0562e4b4399882 [file] [log] [blame]
刘嘉昕441fc372025-06-09 17:47:11 +08001// src/pages/MainPage.jsx
2import React from 'react';
3import { useNavigate } from 'react-router-dom';
4import Navbar from '../components/Navbar';
5import ActivityBoard from '../components/ActivityBoard';
6import './MainPage.css';
7import RecommendPreview from'../components/RecommendPreview'; // 引入推荐预览样式
8
9const MainPage = () => {
10 const navigate = useNavigate();
11 const currentUser = {
12 id: 2,
13 username: '测试用户',
14 };
15
16 return (
17 <div className="main-page-wrapper">
18 {/* 顶部导航栏 */}
19 <Navbar />
20
21 <main className="main-page-content">
22
23 {/* 公告区域 */}
24 <section className="card-section">
25 <ActivityBoard />
26 </section>
27
28 {/* 推荐下载资源预留区域 */}
29 <section className="card-section">
30 {/* <h2 className="section-title">📥 推荐下载资源</h2>
31 <div className="placeholder-box"> */}
32 {/* <p className="placeholder-text">这里将展示为你推荐的种子资源,敬请期待~</p> */}
33 <RecommendPreview/>
34 {/* </div> */}
35 </section>
36 </main>
37 </div>
38 );
39};
40
41export default MainPage;