Navigation.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. Copyright (C) 2017 Cloudbase Solutions SRL
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. import React, { Component, PropTypes } from 'react';
  15. import cx from 'classnames';
  16. import withStyles from 'isomorphic-style-loader/lib/withStyles';
  17. import s from './Navigation.scss';
  18. import Link from '../Link';
  19. class Navigation extends Component {
  20. static propTypes = {
  21. className: PropTypes.string,
  22. };
  23. render() {
  24. return (
  25. <div className={cx(s.root, this.props.className)} role="navigation">
  26. <Link className={s.link} to="/about">About</Link>
  27. <Link className={s.link} to="/contact">Contact</Link>
  28. <span className={s.spacer}> | </span>
  29. <Link className={s.link} to="/login">Log in</Link>
  30. <span className={s.spacer}>or</span>
  31. <Link className={cx(s.link, s.highlight)} to="/register">Sign up</Link>
  32. </div>
  33. );
  34. }
  35. }
  36. export default withStyles(Navigation, s);