This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LogInForm extends Component { | |
constructor(props) { | |
super(props); | |
this.fields = ['email', 'password']; | |
this.state = this.createFields(() => ''); | |
this.handleChange = this.handleChange.bind(this); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const join = ([args], character = ':') => { | |
return args | |
.filter(value => !!value) | |
.join(character); | |
}; | |
const database = () => process.env.POSTGRES_DB || process.env.POSTGRES_USER; | |
const source = () => | |
join([process.env.POSTGRES_HOST, process.env.POSTGRES_PORT]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ui segment"> | |
<form id="nova-partida" class="ui form"> | |
<h3 class="ui header">Crie uma partida</h3> | |
<div class="ui two column very relaxed stackable grid"> | |
<div class="column"> | |
<div class="field"> | |
<label>Nome do time</label> | |
<input type="text" name="time1"> | |
</div> | |
<h4 class="ui dividing header">Jogadores</h4> |