-
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.
Merge pull request #35 from teamq-ec/DM2-2712-implementacion-de-formu…
…lario-de-registro-de-productos-visible-solo-despues-del-inicio-de-sesion Dm2 2712 implementacion de formulario de registro de productos visible solo despues del inicio de sesion
- Loading branch information
Showing
29 changed files
with
1,050 additions
and
304 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
export const RoutesConstants = { | ||
login: '/auth/login', | ||
register: '/auth/register', | ||
home: '', | ||
dashboard: '/pages/home', | ||
}; | ||
login: '/auth/login', | ||
register: '/auth/register', | ||
home: '', | ||
dashboard: '/pages/:userId/home', | ||
form: '/pages/:userId/form', | ||
root: '/', | ||
}; | ||
|
||
|
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,7 @@ | ||
export const ValidationConstants = { | ||
NAME_MIN_LENGTH: 1, | ||
NAME_MAX_LENGTH: 40, | ||
BRAND_MIN_LENGTH: 2, | ||
BRAND_MAX_LENGTH: 50, | ||
ADDRESSS_MAX_LENGTH: 100, | ||
}; |
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,17 @@ | ||
export interface ServiceRequest { | ||
user_id: number; | ||
first_name: string; | ||
last_name: string; | ||
email: string; | ||
phone_number: string; | ||
appliance_type: string; | ||
brand: string; | ||
problem_details: string; | ||
address: string; | ||
service_type: string; | ||
preferred_contact_method: string; | ||
damaged_appliance_image: string; | ||
state: string; | ||
application_date: string; | ||
} | ||
|
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,89 @@ | ||
body { | ||
background: linear-gradient(to right, rgba(0, 0, 255, 0.5), rgba(255, 255, 0, 0.5)); | ||
margin: 0; | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
.image-upload { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 20px; | ||
} | ||
|
||
.upload-area { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.image-upload-label { | ||
cursor: pointer; | ||
border: 2px dashed #cccccc; | ||
border-radius: 8px; | ||
padding: 20px; | ||
text-align: center; | ||
transition: border-color 0.3s; | ||
} | ||
|
||
.image-upload-label:hover { | ||
border-color: #888888; | ||
} | ||
|
||
.image-upload-placeholder { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.upload-icon { | ||
width: 40px; | ||
height: 40px; | ||
color: #888888; | ||
} | ||
|
||
.upload-text { | ||
margin-top: 10px; | ||
color: #666666; | ||
} | ||
|
||
input[type="file"] { | ||
display: none; | ||
} | ||
|
||
.image-preview { | ||
position: relative; | ||
margin-top: 20px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.image-preview img { | ||
max-width: 100%; | ||
max-height: 300px; | ||
border-radius: 8px; | ||
} | ||
|
||
.remove-image { | ||
position: absolute; | ||
top: 5px; | ||
right: 5px; | ||
background: rgba(0, 0, 0, 0.5); | ||
color: #ffffff; | ||
border: none; | ||
border-radius: 50%; | ||
width: 24px; | ||
height: 24px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 16px; | ||
cursor: pointer; | ||
} | ||
|
||
.remove-image:hover { | ||
background: rgba(0, 0, 0, 0.7); | ||
} |
Oops, something went wrong.