import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { Link } from 'react-router-dom'; import LoginForm from 'gabsocial/features/auth_login/components/login_form'; import RegistrationForm from './components/registration_form'; import NotificationsContainer from 'gabsocial/features/ui/containers/notifications_container'; const mapStateToProps = (state, props) => ({ instance: state.get('instance'), soapbox: state.get('soapbox'), }); class LandingPage extends ImmutablePureComponent { getSiteLogo = () => { const { instance, soapbox } = this.props; const logos = { imgLogo: ({instance.get('title')}), textLogo: (

{instance.get('title')}

), }; return soapbox.get('logo') ? logos.imgLogo : logos.textLogo; } render() { const { instance } = this.props; if (instance.isEmpty()) return null; const siteLogo = this.getSiteLogo(); return (
{siteLogo}
{instance.get('description')}
♡{new Date().getFullYear()}. Copying is an act of love. Please copy and share.
  • About
  • Terms of Service
  • Privacy Policy
  • DMCA
  • Source Code
); } } export default connect(mapStateToProps)(LandingPage);