import React from 'react'; import { withRouter } from 'react-router-dom'; import SEO from 'components/SEO'; import NavBar from 'containers/NavBar'; import ChannelLoginForm from 'containers/ChannelLoginForm'; import ChannelCreateForm from 'containers/ChannelCreateForm'; class LoginPage extends React.Component { componentWillReceiveProps (newProps) { // re-route the user to the homepage if the user is logged in if (newProps.loggedInChannelName !== this.props.loggedInChannelName) { console.log('user logged into new channel:', newProps.loggedInChannelName); this.props.history.push(`/`); } } render () { return (

Channels allow you to publish and group content under an identity. You can create a channel for yourself, or share one with like-minded friends. You can create 1 channel, or 100, so whether you're documenting important events, or making a public repository for cat gifs (password: '1234'), try creating a channel for it!

Log in to an existing channel:

Create a brand new channel:

); } }; export default withRouter(LoginPage);