-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathNavbar.tsx
More file actions
47 lines (42 loc) · 1.67 KB
/
Navbar.tsx
File metadata and controls
47 lines (42 loc) · 1.67 KB
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
import React from 'react'
import Artificialintelligence from '../../../assets/Artificial intelligence.png'
import { NavLink } from 'react-router-dom'
const Navbar: React.FC = () => {
const navLinkClass = ({ isActive }: { isActive: boolean }) =>
isActive
? 'text-blue-400 font-semibold underline underline-offset-8'
: 'text-white hover:text-blue-300 transition-colors'
return (
<div className="fixed top-2 left-1/2 z-30 flex gap-x-50 items-center justify-between -translate-x-1/2 bg-zinc-900/40 backdrop-blur-md px-5 py-2 rounded-full border border-zinc-500/50 text-white">
<div className="flex gap-x-4 items-center">
<img src={Artificialintelligence} className="w-6 h-6" alt="LocalMind logo" />
<h1 className="uppercase font-Satoshi tracking-wider font-bold text-xl">LocalMind</h1>
</div>
<div className="flex gap-x-5 items-center">
<NavLink to="/" className={navLinkClass}>
Home
</NavLink>
<NavLink to="/docs" className={navLinkClass}>
Docs
</NavLink>
<NavLink to="/models" className={navLinkClass}>
Models
</NavLink>
<NavLink to="/play-ground" className={navLinkClass}>
PlayGround
</NavLink>
</div>
<NavLink
to="/login"
className={({ isActive }) =>
isActive
? 'bg-blue-600 text-white px-8 py-1.5 rounded-full font-medium transition-colors hover:bg-blue-700 whitespace-nowrap'
: 'bg-blue-500 text-white px-8 py-1.5 rounded-full font-medium transition-colors hover:bg-blue-600 whitespace-nowrap'
}
>
Sign Up
</NavLink>
</div>
)
}
export default Navbar