Guest User

Untitled

a guest
Dec 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. import React from 'react';
  2. import {NavLink} from 'react-router-dom';
  3.  
  4. const Navbar = () => {
  5. return (
  6. <header style={{width:'100%'}}>
  7. <nav style={{width: 'inherit'}}>
  8. <ul style={{
  9. listStyle: 'none',
  10. margin: 0,
  11. padding: 0,
  12. width: '100%',
  13. textAlign: 'center'
  14. }}>
  15. <li style={{
  16. display: 'inline-block',
  17. margin: '20px',
  18. }}>
  19. <NavLink
  20. to="/users"
  21. exact
  22. activeStyle={{
  23. color: '#fa923f',
  24. textDecoration: 'underline',
  25. fontSize: '1.250em'
  26. }}>Users</NavLink>
  27. </li>
  28. <li style={{
  29. display: 'inline-block',
  30. margin: '20px',
  31. }}>
  32. <NavLink
  33. to="/courses"
  34. exact
  35. activeStyle={{
  36. color: '#fa923f',
  37. textDecoration: 'underline',
  38. fontSize: '1.250em'
  39. }}>Courses</NavLink>
  40. </li>
  41. </ul>
  42. </nav>
  43. </header>
  44. )
  45. }
  46.  
  47. export default Navbar;
Add Comment
Please, Sign In to add comment