You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
import React, { FC, useEffect } from 'react'
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
import { faIdCard, faKey } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import PageHeader from 'src/components/page-header'
|
|
import TextField from 'src/components/forms/text-field'
|
|
import PasswordField from 'src/components/forms/password-field'
|
|
|
|
interface Props {
|
|
initForm: () => void
|
|
}
|
|
|
|
const Login: FC<Props> = ({ initForm }) => {
|
|
useEffect(() => {
|
|
initForm()
|
|
}, [])
|
|
|
|
return (
|
|
<div>
|
|
<PageHeader title="Log In to Flexor" />
|
|
|
|
<div className="main-content">
|
|
<div className="centered-content">
|
|
<div className="centered-content-icon">
|
|
<span className="icon is-large has-text-primary">
|
|
<FontAwesomeIcon icon={faKey} size="lg" />
|
|
</span>
|
|
</div>
|
|
|
|
<TextField icon={faIdCard} name="name" label="Username" placeholder="Your Username/ID" />
|
|
<br />
|
|
<PasswordField placeholder="Your password" />
|
|
<br />
|
|
<button className="button is-primary">Log In</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Login
|