@@ -5,6 +5,7 @@ import { CloudUploadOutlined } from '@material-ui/icons';
55import Grid from '@material-ui/core/Grid' ;
66import { Button } from '@material-ui/core' ;
77import IconButton from '@material-ui/core/IconButton' ;
8+ import Switch from '@material-ui/core/Switch' ;
89import { HighlightOffOutlined } from '@material-ui/icons' ;
910
1011function Home ( props ) {
@@ -149,13 +150,13 @@ function Home(props) {
149150 < div className = "spinner" > </ div >
150151 </ div >
151152 < div className = "loader" style = { { display : currentState === 6 ? "" : "none" } } >
152- < font color = "red" > { error . current } </ font >
153+ < font color = "red" > { error . current } </ font >
153154 </ div >
154155 < div className = "grid" >
155156 < form onSubmit = { ( e ) => sendImage ( e ) } >
156157 < Grid container direction = "row" justify = "space-around" alignItems = "center" >
157158 < div > < br />
158- < div { ...getRootProps ( { className : 'dropzone' } ) } className = "image-container" > < input { ...getInputProps ( ) } />
159+ < div { ...getRootProps ( { className : 'dropzone' } ) } className = "image-container" > < input { ...getInputProps ( ) } />
159160 { image [ 0 ] ?
160161 < div className = "input-image" >
161162 < img src = { image [ 0 ] } alt = "Selected Form" />
@@ -174,20 +175,38 @@ function Home(props) {
174175 < HighlightOffOutlined />
175176 </ IconButton > </ h6 > </ center > : "" }
176177 </ div >
177- < div className = "submit-button" >
178- < Button variant = "outlined" href = "https://github.com/cod-ed/handwrite/raw/dev/handwrite_sample.pdf" > Download Sample Form</ Button > < br /> < br />
179- < Button type = "submit" variant = "outlined" disabled = { loading ( ) || currentState === 0 } >
180- CREATE FONT
181- </ Button >
182- < br /> < br />
183- < div className = "form-check" >
184- < input className = "form-check-input" type = "checkbox" id = "researchOption" defaultChecked > </ input >
185- < label className = "form-check-label" htmlFor = "flexCheckChecked" >
186- Opt-in for research use.
187- </ label >
188- </ div >
189- < br /> < br />
190- < Button variant = "outlined" href = { font } download = "font.ttf" style = { { display : Boolean ( font ) ? "" : "none" } } > Download your font</ Button >
178+ < div className = "settings-wrap" >
179+ < h2 > Font Settings</ h2 >
180+ < form >
181+ < div className = "input-wrap" >
182+ < label className = "form-label" for = "file-name" > File name</ label >
183+ < input className = "form-input" type = "text" id = "file-name" placeholder = "" autoComplete = 'off' />
184+ </ div >
185+ < div className = "input-wrap" >
186+ < label className = "form-label" for = "font-family" > Font family</ label >
187+ < input className = "form-input" type = "text" id = "font-family" autoComplete = 'off' />
188+ </ div >
189+ < div className = "input-wrap" >
190+ < label className = "form-label" for = "font-style" > Font style</ label >
191+ < input className = "form-input" type = "text" id = "font-style" autoComplete = 'off' />
192+ </ div >
193+ < br />
194+ < div className = "form-check" >
195+ < input className = "form-check-input" type = "checkbox" id = "researchOption" defaultChecked > </ input >
196+ < label className = "form-check-label" htmlFor = "flexCheckChecked" >
197+ Opt-in for research use.
198+ </ label >
199+ </ div >
200+ < br /> < br />
201+ < div className = "submit-button" >
202+ < Button variant = "outlined" href = "https://github.com/cod-ed/handwrite/raw/dev/handwrite_sample.pdf" > Download Sample Form</ Button > < br /> < br />
203+ < Button type = "submit" variant = "outlined" disabled = { loading ( ) || currentState === 0 } >
204+ CREATE FONT
205+ </ Button >
206+ < br /> < br />
207+ < Button variant = "outlined" href = { font } download = "font.ttf" style = { { display : Boolean ( font ) ? "" : "none" } } > Download your font</ Button >
208+ </ div >
209+ </ form >
191210 </ div >
192211 </ Grid >
193212 </ form >
0 commit comments