-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavbar.js
96 lines (87 loc) · 3.13 KB
/
Navbar.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import React from 'react'
import { useState } from 'react';
import logo1 from '../Assets/logo1.png'
import { FaBars, FaTimes, FaLinkedin, FaGithub ,} from "react-icons/fa";
import {HiOutlineMail} from "react-icons/hi"
import {BsFillPersonFill} from 'react-icons/bs'
function Navbar() {
const [show,setshow]=useState(false);
function handleNav() {
setshow(!show);
};
return (
<div className="fixed w-full h-[80px] flex justify-between items-center px-4 bg-black text-gray-300 ">
<div>
<img src={logo1} alt="logo I mage" style={{ width: "50px" }} />
</div>
{/* menu*/}
<ul className="hidden md:flex">
<li>Home</li>
<li>About</li>
<li>Skils</li>
<li>Work</li>
<li>Contact</li>
</ul>
{/*hamburger */}
<div onClick={handleNav} className="md:hidden z-10">
<div>{!show ? <FaBars size={30} /> : <FaTimes size={30} />}</div>
</div>
{/*mobile menu*/}
<ul
className={
!show
? "hidden"
: "md:hidden absolute top-0 left-0 w-full h-screen bg-[#0a192f] flex flex-col justify-center items-center uppercase"
}
>
<li className="py-6 text-4xl">Work</li>
<li className="py-6 text-4xl">Contact</li>
<li className="py-6 text-4xl">Home</li>
<li className="py-6 text-4xl">Skils</li>
<li className="py-6 text-4xl">About</li>
</ul>
{/*social icons */}
<div className="hidden lg:flex fixed flex-col top-[35%] left-0">
<ul>
<li className="w-[160px] h-[60px] flex justify-between items-center ml-[-100px] hover:ml-[-10px] duration-300 bg-blue-600 ">
<a
className="flex justify-between items-center w-full text-gary-300"
href=""
>
LinKedin
<FaLinkedin size={30} />
</a>{" "}
</li>
<li className="w-[160px] h-[60px] flex justify-between items-center ml-[-100px] hover:ml-[-10px] duration-300 bg-[#333333] ">
<a
className="flex justify-between items-center w-full text-gary-300"
href=""
>
FaGithub
<FaGithub size={30} />
</a>{" "}
</li>
<li className="w-[160px] h-[60px] flex justify-between items-center ml-[-100px] hover:ml-[-10px] duration-300 bg-[#6fc20] ">
<a
className="flex justify-between items-center w-full text-gary-300"
href=""
>
Mail
<HiOutlineMail size={30} />
</a>{" "}
</li>
<li className="w-[160px] h-[60px] flex justify-between items-center ml-[-100px] hover:ml-[-10px] duration-300 bg-[#565f69] ">
<a
className="flex justify-between items-center w-full text-gary-300"
href=""
>
Resume
<BsFillPersonFill size={30} />
</a>{" "}
</li>
</ul>
</div>
</div>
);
}
export default Navbar;