diff --git a/src/App.css b/src/App.css
index 94526e5..d5f35e9 100644
--- a/src/App.css
+++ b/src/App.css
@@ -7,12 +7,33 @@
height: 100vh;
}
-.navbar {
- background: #2196f3;
- color: white;
- padding: 15px;
- border-radius: 4px;
- margin-bottom: 20px;
+.nav {
+ height: 48px;
+ border-bottom: 1px solid #e5e5e5;
+ display: flex;
+ align-items: center;
+ padding: 0 16px;
+}
+
+.nav-list {
+ list-style: none;
+ display: flex;
+ gap: 16px;
+ padding: 0;
+ margin: 0;
+}
+
+.nav-link {
+ text-decoration: none;
+ color: #666;
+ font-size: 14px;
+}
+
+.nav-link.active {
+ color: #1677ff;
+ font-weight: 600;
+ border-bottom: 2px solid #1677ff;
+ padding-bottom: 4px;
}
.page {
diff --git a/src/App.js b/src/App.js
index 1b5526c..c003f0b 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,18 +1,26 @@
-import {HashRouter as Router, Routes, Route} from 'react-router-dom';
+import {HashRouter as Router, Routes, Route, NavLink} from 'react-router-dom';
import TimestampPage from './pages/TimestampPage';
+import ElectronicWoodenFishPage from "./pages/ElectronicWoodenFishPage";
import './App.css';
function App() {
- return (
-
-
-
- }/>
- }/>
-
-
-
- );
+ return (
+
+
+
+
+
+ }/>
+ }/>
+ }/>
+
+
+ );
}
export default App;
diff --git a/src/assets/images/dzmy.png b/src/assets/images/dzmy.png
new file mode 100644
index 0000000..929b7fc
Binary files /dev/null and b/src/assets/images/dzmy.png differ
diff --git a/src/components/DatetimeToTimestamp.js b/src/components/DatetimeToTimestamp.js
index aacd844..b85d5f6 100644
--- a/src/components/DatetimeToTimestamp.js
+++ b/src/components/DatetimeToTimestamp.js
@@ -16,11 +16,12 @@ export function DatetimeToTimestamp() {
return (
日期时间转时间戳
-
+
setDateValue(e.target.value)}/>
-
-
)
+
);
+
}
\ No newline at end of file
diff --git a/src/pages/ElectronicWoodenFishPage.js b/src/pages/ElectronicWoodenFishPage.js
new file mode 100644
index 0000000..7826446
--- /dev/null
+++ b/src/pages/ElectronicWoodenFishPage.js
@@ -0,0 +1,32 @@
+import dzmyImg from '../assets/images/dzmy.png';
+import {useState} from "react";
+
+const ElectronicWoodenFishPage = () => {
+ const [active, setActive] = useState(false);
+
+ const clickAnimation = () => {
+ setActive(true);
+ setTimeout(() => {
+ setActive(false);
+ }, 120);
+ };
+
+ return (
+ 电子木鱼
+

+
);
+};
+
+export default ElectronicWoodenFishPage;
\ No newline at end of file