-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTopBar.jsx
32 lines (20 loc) · 956 Bytes
/
TopBar.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
import './topbar.css'
function TopBar() {
const user = true;
return (
<div className='top'>
<div className='topleft'><i class="fas fa-feather-alt"></i></div>
<div className='topcenter'>
<ul className='toplist'>
<li className='toplistitem'><a href='/home'>Home</a></li>
{user && <li className='toplistitem'><a href="/write">Write</a></li>}
{!user && <li className='toplistitem'><a href="/login">Login</a></li>}
<li className='toplistitem'>{user && "Logout"}</li> <div className='topright'>
<li className='toplistIcon'><a href='/settings'><i class="fas fa-user-circle"></i></a></li>
<li className='toplistIcon'><a><i class="fas fa-search"></i></a></li>
<li className='toplistIcon'><input type='text' placeholder='Search'></input></li></div>
</ul></div>
</div>
)
}
export default TopBar