diff --git a/app/gabsocial/features/landing_page/components/registration_form.js b/app/gabsocial/features/landing_page/components/registration_form.js new file mode 100644 index 000000000..b45719607 --- /dev/null +++ b/app/gabsocial/features/landing_page/components/registration_form.js @@ -0,0 +1,77 @@ +import React from 'react'; +import ImmutablePureComponent from 'react-immutable-pure-component'; +import ImmutablePropTypes from 'react-immutable-proptypes'; +import { connect } from 'react-redux'; +import { Link } from 'react-router-dom'; +import { TextInput } from 'gabsocial/features/forms'; + +const mapStateToProps = (state, props) => ({ + instance: state.get('instance'), +}); + +export default @connect(mapStateToProps) +class RegistrationForm extends ImmutablePureComponent { + + static propTypes = { + instance: ImmutablePropTypes.map, + } + + render() { + const { instance } = this.props; + + return ( +
+
+
+

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

+
+ + + + +
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+
+
+ ); + } + +} diff --git a/app/gabsocial/features/landing_page/index.js b/app/gabsocial/features/landing_page/index.js index 265a0cc09..573767ece 100644 --- a/app/gabsocial/features/landing_page/index.js +++ b/app/gabsocial/features/landing_page/index.js @@ -3,6 +3,7 @@ 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) => ({ @@ -62,46 +63,7 @@ class LandingPage extends ImmutablePureComponent {
-
-
-
-

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

-
-
-
-
- -
-
-
-
- -
-
- -
-
- -
-
-
-
-
- -
- -
-
-
-
-
- -
-
-
-
+