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.2 KiB
41 lines
1.2 KiB
import React, { FC, useEffect } from 'react'
|
|
import { faIdCard } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
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>
|
|
<section className="hero is-success is-bold">
|
|
<div className="hero-body">
|
|
<div className="container">
|
|
<h1 className="title">Login</h1>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div className="main-content">
|
|
<div className="columns">
|
|
<div className="column is-8 is-offset-2">
|
|
<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>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Login
|