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'; 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, soapbox } = this.props; if (instance.isEmpty()) return null; const siteLogo = this.getSiteLogo(); return (
{siteLogo}
{instance.get('description')}

With an account on {instance.get('title')} you'll be able to follow people on any server in the fediverse.

♡{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);