/* eslint react/prop-types: 0 */ import React, { Component } from "react"; import { withTranslation } from "react-i18next"; import { Container, Row, Col, Button, Input } from "reactstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faRocket } from "@fortawesome/free-solid-svg-icons"; import { Redirect } from "react-router-dom"; import logoLine from "../../logos/logo-line-white.svg"; class Home extends Component { constructor(props) { super(props); this.state = { title: null, redirect: false }; this.focusInput = React.createRef(); } handleSubmit = event => { event.preventDefault(); this.setState({ redirect: true }); }; handleChangeTitle = event => { //console.log(this.context.routesServer.setElection); this.setState({ title: event.target.value }); }; render() { const { t } = this.props; const redirect = this.state.redirect; if (redirect) { return ( ); } return (
logo

{t( "Simple and free: organize an election with Majority Judgment." )}

{t("No advertising or ad cookies")}

); } } export default withTranslation()(Home);