Skip to content

Commit 318d2f5

Browse files
committed
refactor
1 parent aa94726 commit 318d2f5

File tree

12 files changed

+491
-119
lines changed

12 files changed

+491
-119
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
7+
<title>AI辅助写代码提示词构造器</title>
88
</head>
99
<body>
1010
<div id="root"></div>

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@emotion/react": "^11.14.0",
1414
"@emotion/styled": "^11.14.0",
15-
"@mui/icons-material": "^6.4.3",
15+
"@mui/icons-material": "^6.4.4",
1616
"@mui/material": "^6.4.3",
1717
"@reduxjs/toolkit": "^2.5.1",
1818
"@types/node": "^22.13.1",

src/App.tsx

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
1+
// src/App.tsx
12
import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom';
23
import Home from './pages/Home';
34
import About from './pages/About';
5+
import ProfileList from './pages/ProfileList';
6+
import { AppBar, Toolbar, Container } from '@mui/material';
47

58
export default function App() {
69
return (
710
<Router>
8-
<div className="app-container">
9-
{/* 顶部导航栏 */}
10-
<nav className="top-nav">
11-
<ul>
12-
<li>
13-
<Link to="/">Home</Link>
14-
</li>
15-
<li>
16-
<Link to="/about">About</Link>
17-
</li>
18-
</ul>
19-
</nav>
11+
<AppBar position="static">
12+
<Toolbar>
13+
<Link to="/" style={{ textDecoration: 'none', color: 'white', marginRight: 20 }}>
14+
首页
15+
</Link>
16+
{/*<Link to="/profiles" style={{ textDecoration: 'none', color: 'white', marginRight: 20 }}>*/}
17+
{/* Profile列表*/}
18+
{/*</Link>*/}
19+
<Link to="/about" style={{ textDecoration: 'none', color: 'white' }}>
20+
关于
21+
</Link>
22+
</Toolbar>
23+
</AppBar>
2024

21-
{/* 路由内容 */}
22-
<div className="content">
23-
<Routes>
24-
<Route path="/" element={<Home />} />
25-
<Route path="/about" element={<About />} />
26-
</Routes>
27-
</div>
28-
</div>
25+
<Container maxWidth="xl" sx={{ mt: 3 }}>
26+
<Routes>
27+
<Route path="/" element={<Home />} />
28+
<Route path="/profiles" element={<ProfileList />} />
29+
<Route path="/profile/:id" element={<Home />} />
30+
<Route path="/about" element={<About />} />
31+
</Routes>
32+
</Container>
2933
</Router>
3034
);
3135
}

src/assets/cc11001100-weixin.png

332 KB
Loading

src/assets/qq-group-qrcode.jpg

409 KB
Loading

0 commit comments

Comments
 (0)