Skip to content

Commit

Permalink
Doctor and Patient svg added
Browse files Browse the repository at this point in the history
  • Loading branch information
AykhanAhmadli committed Sep 27, 2023
1 parent e7c3d90 commit 5d02ec5
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
Binary file added packages/app/src/assets/doctor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/app/src/assets/doctor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/app/src/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ export { default as bg2 } from './bg2.png';
export { default as bg3 } from './bg3.png';
export { default as bg4 } from './bg4.png';
export { default as bg5 } from './bg5.png';
export { default as doctor } from './doctor.svg';
export { default as patient } from './patient.svg';
Binary file added packages/app/src/assets/patient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/app/src/assets/patient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 14 additions & 12 deletions packages/app/src/pages/ProviderRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ import Checkbox from '@mui/material/Checkbox';
import FormControlLabel from '@mui/material/FormControlLabel';
import Button from '@mui/material/Button';

// import { ReactComponent as DoctorSVG } from '../assets/doctor.svg';
// import { ReactComponent as PatientSVG } from '../assets/patient.svg';

type Props = {
name?: string;
email?: string;
phoneNumber?: string;
};

const ProviderRegistration = (props: Props): JSX.Element => {
const handleSubmit = (event: any): void => {
event.preventDefault();
// TODO: form submission structure
};

return (
<Box sx={{ display: 'flex', flexDirection: 'row', height: '100vh' }}>
<p>{props.name}</p>
Expand All @@ -42,7 +50,10 @@ const ProviderRegistration = (props: Props): JSX.Element => {
</Typography>
</Box>
<Box sx={{ height: '74%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
{/* Content will go here */}
<Box sx={{ height: '74%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
{/* <DoctorSVG style={{ width: '50px', height: '50px', marginRight: '20px' }} />
<PatientSVG style={{ width: '50px', height: '50px', marginLeft: '20px' }} /> */}
</Box>
</Box>
<Box
sx={{
Expand All @@ -68,9 +79,8 @@ const ProviderRegistration = (props: Props): JSX.Element => {
<Typography sx={{ fontSize: '1.25rem', color: '#4AC0F2', paddingTop: '1%', paddingBottom: '1%' }}>
Provider registration
</Typography>
<form>
<form onSubmit={handleSubmit}>
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'left', paddingY: '1.5rem' }}>
{/* Title */}
<FormControl variant="outlined" sx={{ width: '26.4rem', marginBottom: '1rem' }}>
<InputLabel>Title</InputLabel>
<Select label="Title">
Expand All @@ -79,32 +89,24 @@ const ProviderRegistration = (props: Props): JSX.Element => {
<MenuItem value="assistant">Assistant</MenuItem>
</Select>
</FormControl>
{/* First Name */}
<TextField variant="outlined" label="First Name" sx={{ width: '26.4rem', paddingBottom: '1rem' }} />
{/* Last Name */}
<TextField variant="outlined" label="Last Name" sx={{ width: '26.4rem', paddingBottom: '1rem' }} />
{/* Room Name */}
<TextField variant="outlined" label="Room Name" sx={{ width: '26.4rem', paddingBottom: '1rem' }} />
{/* Email Address */}
<TextField variant="outlined" label="Email Address" sx={{ width: '26.4rem', paddingBottom: '1rem' }} />
{/* Password */}
<TextField
variant="outlined"
label="Password"
type="password"
sx={{ width: '26.4rem', paddingBottom: '1rem' }}
/>
{/* I am not a patient Checkbox */}
<FormControlLabel control={<Checkbox />} label="I am not a patient" />

{/* I accept the terms and conditions Checkbox */}
<FormControlLabel control={<Checkbox />} label="I accept the terms and conditions" />
{/* SIGN UP Button */}
<Button
type="submit"
variant="contained"
sx={{
width: '28rem',
width: '26.4rem',
backgroundColor: '#2896C6',
color: 'white',
marginTop: '1rem',
Expand Down

0 comments on commit 5d02ec5

Please sign in to comment.