-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
75 lines (69 loc) · 2.21 KB
/
index.js
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
/* eslint-disable no-unused-vars */
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import {
ListItem, ListItemText, Button, Avatar, Container, List,
} from '@mui/material';
import './style.css';
import Logo from '../../asstes/logo.png';
import PresonImg from '../../asstes/avatar.png';
function NavBar() {
const [logged, setLogged] = useState(true);
return (
<Container maxWidth="xl">
<nav className="container">
<Link to="/">
<img src={Logo} alt="logo-housy" className="img-logo" />
</Link>
{' '}
<List
className="list"
sx={{ justifyContent: 'space-between' }}
style={{
marginRight: '150px', alignSelf: 'center', color: '#797B7D',
}}
>
<Link to="/" style={{ color: '#797B7D', textDecoration: 'none' }}>
<ListItem button style={{ textDecoration: 'none' }}>
<ListItemText primary="Home" />
</ListItem>
</Link>
<Link to="/signup" style={{ color: '#797B7D', textDecoration: 'none' }}>
<ListItem button>
<ListItemText primary="About" />
</ListItem>
</Link>
<Link to="/" style={{ color: '#797B7D', textDecoration: 'none' }}>
<ListItem button>
<ListItemText primary="Buy" />
</ListItem>
</Link>
<Link to="/" style={{ color: '#797B7D', textDecoration: 'none' }}>
<ListItem button>
<ListItemText primary="Rent" />
</ListItem>
</Link>
</List>
<div className="agent">
<Button style={{
marginRight: '30px', alignSelf: 'center', backgroundColor: '#3781CB', color: '#FFFFFF', textTransform: 'none',
}}
>
{' '}
<Link to="/login" className="btn-host">
<ListItemText primary="Host my House" style={{ color: '#fff' }} />
</Link>
</Button>
{logged ? (
<Link to="/">
<Avatar src={PresonImg} />
</Link>
) : (
''
)}
</div>
</nav>
</Container>
);
}
export default NavBar;