Personal Dashboard

Navbar.jsx 1.6KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react'
  2. import { Menu, MenuItem, MenuDivider } from "@blueprintjs/core";
  3. import { Popover, PopoverInteractionKind, Position } from '@blueprintjs/core';
  4. const userMenu =
  5. <Menu>
  6. <MenuItem iconName="user" text="Profile" />
  7. <MenuItem text="Settings..." iconName="cog" />
  8. <MenuDivider />
  9. <MenuItem text="Log out" iconName="power" />
  10. </Menu>
  11. const Navbar = () =>
  12. <div>
  13. <nav className="pt-navbar pt-dark">
  14. <div className="pt-navbar-group pt-align-left">
  15. <div className="pt-navbar-heading">Lighthouse</div>
  16. <button className="pt-button pt-minimal pt-icon-home">Home</button>
  17. <button className="pt-button pt-minimal pt-icon-document">Files</button>
  18. </div>
  19. <div className="pt-navbar-group pt-align-right">
  20. <input className="pt-input" placeholder="Search files..." type="text" />
  21. <span className="pt-navbar-divider"></span>
  22. <Popover content={<div>No notifications</div>} position={Position.BOTTOM_RIGHT}
  23. popoverClassName="pt-popover-content-sizing"
  24. interactionKind={PopoverInteractionKind.HOVER}>
  25. <button className="pt-button pt-minimal pt-icon-notifications"></button>
  26. </Popover>
  27. <Popover content={userMenu} position={Position.BOTTOM_RIGHT}
  28. interactionKind={PopoverInteractionKind.CLICK}>
  29. <button className="pt-button pt-minimal pt-icon-user"></button>
  30. </Popover>
  31. </div>
  32. </nav>
  33. </div>
  34. export default Navbar