-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6aba9a4
commit 453f65e
Showing
12 changed files
with
930 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react' | ||
import {ButtonBase,Typography} from '@material-ui/core' | ||
|
||
import GoogleLogo from '../../res/icons/google.png' | ||
|
||
|
||
function GoogleLoginButton(props){ | ||
const onClick = props.onClick; | ||
|
||
return( | ||
<div> | ||
<ButtonBase onClick={onClick} > | ||
<div style={{display:"flex", flexDirection:"row", justifyContent:"center", margin:20, }}> | ||
<img src = {GoogleLogo} style={{height:20, width:20}}/> | ||
<Typography style={{marginLeft:10}}> | ||
SignIn with Google | ||
</Typography> | ||
</div> | ||
</ButtonBase> | ||
</div> | ||
|
||
) | ||
} | ||
|
||
export default GoogleLoginButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react' | ||
|
||
import { FormControl, TextField,InputLabel, FilledInput,InputAdornment,IconButton } from '@material-ui/core' | ||
import {Visibility,VisibilityOff} from '@material-ui/icons' | ||
|
||
function CandidateLogin(props){ | ||
const onSubmit = props.onSubmit; | ||
var data = { | ||
email:"", | ||
password:"", | ||
} | ||
const handleForm = (event)=>{ | ||
|
||
} | ||
return ( | ||
<div> | ||
<TextField | ||
label="Email" | ||
variant="outlined" | ||
onChange={(event)=>{data.email = event.target.value}}/> | ||
<FormControl className={clsx(classes.margin, classes.textField)} variant="filled"> | ||
<InputLabel htmlFor="filled-adornment-password">Password</InputLabel> | ||
<FilledInput | ||
id="filled-adornment-password" | ||
type={values.showPassword ? 'text' : 'password'} | ||
value={values.password} | ||
onChange={handleChange('password')} | ||
endAdornment={ | ||
<InputAdornment position="end"> | ||
<IconButton | ||
aria-label="toggle password visibility" | ||
onClick={handleClickShowPassword} | ||
onMouseDown={handleMouseDownPassword} | ||
edge="end" | ||
> | ||
{values.showPassword ? <Visibility /> : <VisibilityOff />} | ||
</IconButton> | ||
</InputAdornment> | ||
} | ||
/> | ||
</FormControl> | ||
</div> | ||
) | ||
} | ||
|
||
export default CandidateLogin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from 'react' | ||
|
||
import { FormControl, TextField,InputLabel, OutlinedInput,InputAdornment,IconButton,Button } from '@material-ui/core' | ||
import {Visibility,VisibilityOff} from '@material-ui/icons' | ||
|
||
function InterviewerLogin(props){ | ||
const onSubmit = props.onSubmit; | ||
var data = { | ||
email:"", | ||
password:"", | ||
} | ||
|
||
|
||
const [showPassword,setShowPassword] = React.useState(false); | ||
return ( | ||
<div style={{ | ||
display:"flex", | ||
flexDirection:"column" | ||
}}> | ||
<TextField | ||
style={{marginTop:10}} | ||
label="Email" | ||
variant="outlined" | ||
onChange={(event)=>{data.email = event.target.value}}/> | ||
<FormControl variant="outlined" style={{marginTop:10}}> | ||
<InputLabel>Password</InputLabel> | ||
<OutlinedInput | ||
type={showPassword? 'text' : 'password'} | ||
onChange={(event)=>{data.password = event.target.value}} | ||
endAdornment={ | ||
<InputAdornment position="end"> | ||
<IconButton | ||
onClick={()=>setShowPassword(!showPassword)} | ||
edge="end" | ||
> | ||
{showPassword ? <Visibility /> : <VisibilityOff />} | ||
</IconButton> | ||
</InputAdornment> | ||
} | ||
/> | ||
</FormControl> | ||
<Button style={{marginTop:10}} onClick={()=>onSubmit(data)} variant="contained" color="primary"> | ||
Login | ||
</Button> | ||
</div> | ||
) | ||
} | ||
|
||
export default InterviewerLogin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,8 @@ | |
display: flex; | ||
flex-grow: 1; | ||
flex-direction: column; | ||
} | ||
|
||
.dialog{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const firebaseConfig = { | ||
apiKey: "AIzaSyDXXNwj9yIB_o0FpGd3txLeBBvU_MfnhZM", | ||
authDomain: "codeview-b41a7.firebaseapp.com", | ||
databaseURL: "https://codeview-b41a7.firebaseio.com", | ||
projectId: "codeview-b41a7", | ||
storageBucket: "codeview-b41a7.appspot.com", | ||
messagingSenderId: "41880489918", | ||
appId: "1:41880489918:web:79e07ec87d00fe420673ef", | ||
measurementId: "G-91HW2VKV8V" | ||
}; | ||
|
||
const googleConfig = { | ||
|
||
} | ||
|
||
export {firebaseConfig,googleConfig}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|