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