Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I_Helmet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J 62
I_Helmet
Commits
f3c89861
Commit
f3c89861
authored
Apr 18, 2022
by
Balasuriya D.A.M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sign up Component Frontend
parent
4a3542a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
5 deletions
+106
-5
IT18021080/Telemedicine-Chat-App/frontend/src/App.css
IT18021080/Telemedicine-Chat-App/frontend/src/App.css
+1
-0
IT18021080/Telemedicine-Chat-App/frontend/src/components/Authentication/Signup.js
...Chat-App/frontend/src/components/Authentication/Signup.js
+105
-5
No files found.
IT18021080/Telemedicine-Chat-App/frontend/src/App.css
View file @
f3c89861
...
...
@@ -6,4 +6,5 @@
background-image
:
url("./background.jpg")
;
background-size
:
cover
;
background-position
:
center
;
color
:
black
;
}
\ No newline at end of file
IT18021080/Telemedicine-Chat-App/frontend/src/components/Authentication/Signup.js
View file @
f3c89861
import
React
from
"
react
"
;
//Formercontrol,formerlabel from form-control
//Input,InputGroup from input
//VStack from layout
//everything import from react
import
{
Button
,
FormControl
,
FormLabel
,
Input
,
InputGroup
,
InputRightElement
,
VStack
}
from
"
@chakra-ui/react
"
;
import
React
,
{
useState
}
from
"
react
"
;
const
Signup
=
()
=>
{
const
[
show
,
setShow
]
=
useState
(
false
);
const
[
name
,
setName
]
=
useState
();
const
[
email
,
setEmail
]
=
useState
();
const
[
confirmpassword
,
setConfirmpassword
]
=
useState
();
const
[
password
,
setPassword
]
=
useState
();
const
[
pic
,
setPic
]
=
useState
();
const
handleClick
=
()
=>
setShow
(
!
show
);
const
postDetails
=
(
pics
)
=>
{
};
const
submitHandler
=
()
=>
{
};
return
(
<
div
>
Signup
<
/div
>
//Use vstack to allign verticaly
<
VStack
spacing
=
"
5px
"
color
=
"
black
"
>
<
FormControl
id
=
"
first-name
"
isRequired
>
<
FormLabel
>
Name
<
/FormLabel
>
<
Input
placeholder
=
"
Enter Your Name
"
onChange
=
{(
e
)
=>
setName
(
e
.
target
.
value
)}
/
>
<
/FormControl
>
<
FormControl
id
=
"
email
"
isRequired
>
<
FormLabel
>
Email
<
/FormLabel
>
<
Input
placeholder
=
"
Enter Your Email
"
onChange
=
{(
e
)
=>
setEmail
(
e
.
target
.
value
)}
/
>
<
/FormControl
>
<
FormControl
id
=
"
password
"
isRequired
>
<
FormLabel
>
Password
<
/FormLabel
>
<
InputGroup
>
<
Input
type
=
{
show
?
"
text
"
:
"
password
"
}
placeholder
=
"
Enter Your Password
"
onChange
=
{(
e
)
=>
setPassword
(
e
.
target
.
value
)}
/
>
<
InputRightElement
width
=
"
4.5rem
"
>
<
Button
h
=
"
1.75rem
"
size
=
"
sm
"
onClick
=
{
handleClick
}
>
{
show
?
"
Hide
"
:
"
Show
"
}
<
/Button
>
<
/InputRightElement
>
<
/InputGroup
>
<
/FormControl
>
<
FormControl
id
=
"
password
"
isRequired
>
<
FormLabel
>
Confirm
Password
<
/FormLabel
>
<
InputGroup
size
=
"
md
"
>
<
Input
type
=
{
show
?
"
text
"
:
"
password
"
}
placeholder
=
"
Confirm Password
"
onChange
=
{(
e
)
=>
setConfirmpassword
(
e
.
target
.
value
)}
/
>
<
InputRightElement
width
=
"
4.5rem
"
>
<
Button
h
=
"
1.75rem
"
size
=
"
sm
"
onClick
=
{
handleClick
}
>
{
show
?
"
Hide
"
:
"
Show
"
}
<
/Button
>
<
/InputRightElement
>
<
/InputGroup
>
<
/FormControl
>
<
FormControl
id
=
"
pic
"
isRequired
>
<
FormLabel
>
Upload
your
Picture
<
/FormLabel
>
<
Input
type
=
"
file
"
p
=
{.
5
}
accept
=
"
image/*
"
onChange
=
{(
e
)
=>
postDetails
(
e
.
target
.
files
[
0
])}
/
>
<
/FormControl
>
<
Button
colorScheme
=
"
blue
"
width
=
"
100%
"
style
=
{{
marginTop
:
15
}}
onClick
=
{
submitHandler
}
>
Sign
Up
<
/Button
>
<
/VStack
>
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment