Skip to content

Instantly share code, notes, and snippets.

@ldco2016
Created February 9, 2019 23:43
Show Gist options
  • Select an option

  • Save ldco2016/dffe3fe1537b7313fafc44b44dac2772 to your computer and use it in GitHub Desktop.

Select an option

Save ldco2016/dffe3fe1537b7313fafc44b44dac2772 to your computer and use it in GitHub Desktop.
<Grid item xs={11}>
<img src="/images/brand.png" height="75px" width="75px" alt="application icon" />
<h2 className={classes.headerText}>
Welcome to Birdseye!
</h2>
<InputLabel shrink htmlFor="bootstrap-input" className={classes.bootstrapFormLabel}>
Email Address
</InputLabel>
<InputBase
id="bootstrap-input"
defaultValue=""
classes={{
root: classes.bootstrapRoot,
input: classes.bootstrapInput
}}
onChange={evt => this.setState({ username: evt.target.value })}
onKeyPress={(evt) => {
if (evt.key === 'Enter') {
this.setState({ username: evt.target.value })
authenticate({ variables: { username, password } })
}
}}
/>
<InputLabel shrink htmlFor="bootstrap-input" className={classes.bootstrapFormLabel}>
Password
</InputLabel>
<InputBase
id="bootstrap-input"
defaultValue=""
classes={{
root: classes.bootstrapRoot,
input: classes.bootstrapInput,
}}
onChange={evt => this.setState({ password: evt.target.value })}
onKeyPress={(evt) => {
if (evt.key === 'Enter') {
this.setState({ password: evt.target.value })
authenticate({ variables: { username, password } })
}
}}
/>
<Button
size="large"
color="primary"
onClick={() => authenticate({ variables: { username, password } })}
className={classNames(classes.button, classes.mT10)}
>
Sign in
</Button>
<Link href="#" className={classes.link}>Forgot Password</Link>
</Grid>
@ldco2016
Copy link
Author

ldco2016 commented Feb 9, 2019

bootstrapInput: {
      borderRadius: '2px',
      bottom: '0px',
      backgroundColor: theme.palette.common.white,
      border: '1px solid #CCC',
      padding: '22px 16px',
      transition: theme.transitions.create(['border-color', 'box-shadow']),
      '&:focus': {
        borderRadius: 4,
        borderColor: '#000052',
      },
      '@media screen and (max-width: 673px)': {
        flexDirection: 'column-reverse',
        width: '643px',
      },
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment