2020-01-14 09:53:40 +01:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
import { faUser, faBuilding, faLock } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
|
|
|
|
const RegisterForm = props => {
|
|
|
|
const isDeveloperAccount = props.accountType === "developer";
|
|
|
|
const isDeveloperIcon = <span>{isDeveloperAccount ? <FontAwesomeIcon icon={faUser} /> : <FontAwesomeIcon icon={faBuilding} /> }</span>
|
|
|
|
const lockIcon = <span><FontAwesomeIcon icon={faLock} /></span>
|
|
|
|
|
|
|
|
return (
|
2020-01-14 15:23:01 +01:00
|
|
|
<div className="page-content-center">
|
2020-01-15 19:43:39 +01:00
|
|
|
<h1>Rejestracja konta {isDeveloperAccount ? 'programisty' : 'firmy'} do systemu Task-O!</h1>
|
2020-01-14 09:53:40 +01:00
|
|
|
<form>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
{isDeveloperIcon}
|
|
|
|
<input type="text" placeholder={isDeveloperAccount ? "Podaj imię" : "Podaj nazwę firmy"} />
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{isDeveloperIcon}
|
|
|
|
<input type="text" placeholder={isDeveloperAccount ? "Podaj nazwisko" : "Podaj numer NIP"}/>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{isDeveloperIcon}
|
|
|
|
<input type="email" placeholder="Podaj adres e-mail" />
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{lockIcon}
|
|
|
|
<input type="password" placeholder="Podaj hasło" />
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{lockIcon}
|
|
|
|
<input type="password" placeholder="Powtórz hasło" />
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<button>Zarejestruj się</button>
|
|
|
|
<button>Zaloguj się</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RegisterForm;
|