File size: 1,556 Bytes
f5071ca |
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 |
import { useNavigate } from "react-router-dom";
import { assets } from "../assets/assets";
const Navbar = () => {
const naviagte = useNavigate()
return (
<>
<div className="w-full flex justify-between items-center font-semibold">
<div className="flex items-center gap-2">
<img
className="w-8 bg-black p-2 rounded-2xl cursor-pointer"
src={assets.arrow_left}
alt=""
onClick={()=>naviagte(-1)}
/>
<img
className="w-8 bg-black p-2 rounded-2xl cursor-pointer"
src={assets.arrow_right}
alt=""
onClick={()=>naviagte(+1)}
/>
</div>
<div className="flex items-center gap-4">
<p className="bg-white text-black text-[15px] px-4 py-1 rounded-2xl hidden md:block cursor-pointer">
Explore Premium
</p>
<p className="bg-black py-1 px-3 rounded-2xl text-[15px] cursor-pointer">
Install App
</p>
<p className="bg-purple-500 text-black w-7 h-7 rounded-full flex items-center justify-center cursor-pointer">
B
</p>
</div>
</div>
<div className="flex items-center gap-2 mt-4">
<p className="bg-white text-black px-4 py-1 rounded-2xl">All</p>
<p className="bg-[#242424] cursor-pointer px-4 py-1 rounded-2xl">Music</p>
<p className="bg-[#242424] cursor-pointer px-4 py-1 rounded-2xl">Podcasts</p>
</div>
</>
);
};
export default Navbar;
|