-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavBar.jsx
81 lines (76 loc) · 3.15 KB
/
NavBar.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import React from "react";
import {FaGithub} from "react-icons/fa";
import {FaBilibili} from "react-icons/fa6";
import {CiShare1} from "react-icons/ci";
import {Link} from "react-router-dom";
import {Divider} from '@douyinfe/semi-ui';
const NavBar = ({skipUrl}) => {
return (
<nav className="dark:bg-gray-800 dark:text-white px-4 py-2 shadow-md">
<div className="container mx-auto flex justify-between items-center">
{/* 左侧 */}
<div className="flex items-center space-x-10">
{/* 头像 */}
<Link to="/">
<span className="font-bold text-lg">
buyfakett
</span>
</Link>
{/*分割线*/}
<Divider layout="vertical" margin='20px' className="bg-white"/>
{/* 链接 */}
{/*<Link*/}
{/* to="/tools"*/}
{/* className="flex items-center text-lg font-bold dark:hover:text-blue-400 transition-colors duration-200"*/}
{/*>*/}
{/* Tools*/}
{/*</Link>*/}
<Link
to="/urls"
className="flex items-center text-lg font-bold dark:hover:text-blue-400 transition-colors duration-200"
>
Urls
</Link>
<a
href={skipUrl.note}
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-lg font-bold dark:hover:text-blue-400 transition-colors duration-200"
>
Note
<CiShare1 className="ml-1 w-3 h-3"/>
</a>
<a
href={skipUrl.blog}
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-lg font-bold dark:hover:text-blue-400 transition-colors duration-200"
>
Blog
<CiShare1 className="ml-1 w-3 h-3"/>
</a>
</div>
{/* 右侧 */}
<div className="flex space-x-10">
<a
href={skipUrl.github}
target="_blank"
rel="noopener noreferrer"
className="hover:text-gray-400 transition-colors duration-200"
>
<FaGithub size={24}/>
</a>
<a
href={skipUrl.bili}
target="_blank"
rel="noopener noreferrer"
className="hover:text-gray-400 text-blue-400 transition-colors duration-200"
>
<FaBilibili size={24}/>
</a>
</div>
</div>
</nav>
);
};
export default NavBar;