Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DBMS inventory manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shrey Patel
DBMS inventory manager
Commits
f09a56d4
Commit
f09a56d4
authored
1 year ago
by
Sarthak Shrivastava
Browse files
Options
Downloads
Patches
Plain Diff
login and account updating working correctly
parent
9747dc9f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory-manager/src/components/user/Register.css
+32
-0
32 additions, 0 deletions
inventory-manager/src/components/user/Register.css
inventory-manager/src/components/user/Register.jsx
+59
-48
59 additions, 48 deletions
inventory-manager/src/components/user/Register.jsx
with
91 additions
and
48 deletions
inventory-manager/src/components/user/Register.css
0 → 100644
+
32
−
0
View file @
f09a56d4
.register-form-container
{
max-width
:
400px
;
margin
:
0
auto
;
padding
:
20px
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
}
.register-form
{
display
:
flex
;
flex-direction
:
column
;
gap
:
10px
;
}
.form-group
{
display
:
flex
;
flex-direction
:
column
;
}
button
{
width
:
100%
;
padding
:
10px
;
background-color
:
#007bff
;
color
:
#fff
;
border
:
none
;
border-radius
:
5px
;
cursor
:
pointer
;
}
button
:hover
{
background-color
:
#0056b3
;
}
This diff is collapsed.
Click to expand it.
inventory-manager/src/components/user/Register.jsx
+
59
−
48
View file @
f09a56d4
import
'
./Register.css
'
import
React
,
{
useState
}
from
"
react
"
;
import
Axios
from
"
axios
"
;
...
...
@@ -22,59 +23,69 @@ export const Register = (props) => {
};
return
(
<
div
className
=
"auth-form-container"
>
<
h2
>
Register
</
h2
>
<
form
className
=
"register-form"
onSubmit
=
{
handleSubmit
}
>
<
label
htmlFor
=
"fname"
>
First name
</
label
>
<
input
value
=
{
fname
}
onChange
=
{
(
e
)
=>
setFname
(
e
.
target
.
value
)
}
name
=
"fname"
id
=
"fname"
placeholder
=
"First Name"
/>
<
div
className
=
"register-form-container"
>
<
h2
>
Register
</
h2
>
<
form
className
=
"register-form"
onSubmit
=
{
handleSubmit
}
>
<
div
className
=
"form-group"
>
<
label
htmlFor
=
"fname"
>
First name
</
label
>
<
input
value
=
{
fname
}
onChange
=
{
(
e
)
=>
setFname
(
e
.
target
.
value
)
}
name
=
"fname"
id
=
"fname"
placeholder
=
"First Name"
/>
</
div
>
<
label
htmlFor
=
"lname"
>
Last name
</
label
>
<
input
value
=
{
lname
}
onChange
=
{
(
e
)
=>
setLname
(
e
.
target
.
value
)
}
name
=
"lname"
id
=
"lname"
placeholder
=
"Last Name"
/>
<
div
className
=
"form-group"
>
<
label
htmlFor
=
"lname"
>
Last name
</
label
>
<
input
value
=
{
lname
}
onChange
=
{
(
e
)
=>
setLname
(
e
.
target
.
value
)
}
name
=
"lname"
id
=
"lname"
placeholder
=
"Last Name"
/>
</
div
>
<
label
htmlFor
=
"email"
>
Email
</
label
>
<
input
value
=
{
email
}
onChange
=
{
(
e
)
=>
setEmail
(
e
.
target
.
value
)
}
name
=
"email"
id
=
"email"
placeholder
=
"pid@vt.edu"
type
=
"email"
/>
<
div
className
=
"form-group"
>
<
label
htmlFor
=
"email"
>
Email
</
label
>
<
input
value
=
{
email
}
onChange
=
{
(
e
)
=>
setEmail
(
e
.
target
.
value
)
}
name
=
"email"
id
=
"email"
placeholder
=
"pid@vt.edu"
type
=
"email"
/>
</
div
>
<
label
htmlFor
=
"phoneNumber"
>
Phone Number
</
label
>
<
input
value
=
{
phoneNumber
}
onChange
=
{
(
e
)
=>
setPhoneNumber
(
e
.
target
.
value
)
}
id
=
"phoneNumber"
name
=
"phoneNumber"
placeholder
=
"###-###-####"
/>
<
div
className
=
"form-group"
>
<
label
htmlFor
=
"phoneNumber"
>
Phone Number
</
label
>
<
input
value
=
{
phoneNumber
}
onChange
=
{
(
e
)
=>
setPhoneNumber
(
e
.
target
.
value
)
}
id
=
"phoneNumber"
name
=
"phoneNumber"
placeholder
=
"###-###-####"
/>
</
div
>
<
label
htmlFor
=
"password"
>
Password
</
label
>
<
input
value
=
{
pass
}
onChange
=
{
(
e
)
=>
setPass
(
e
.
target
.
value
)
}
id
=
"password"
name
=
"password"
placeholder
=
"********"
type
=
"password"
/>
<
div
className
=
"form-group"
>
<
label
htmlFor
=
"password"
>
Password
</
label
>
<
input
value
=
{
pass
}
onChange
=
{
(
e
)
=>
setPass
(
e
.
target
.
value
)
}
id
=
"password"
name
=
"password"
placeholder
=
"********"
type
=
"password"
/>
</
div
>
<
button
type
=
"submit"
>
Log In
</
button
>
</
form
>
</
div
>
<
button
type
=
"submit"
>
Register
</
button
>
</
form
>
</
div
>
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment