-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-profile.html
124 lines (112 loc) · 5.04 KB
/
my-profile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>eMercado - Todo lo que busques está aquí</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/modal.css" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
#userPicture {
width: 150px;
height: 150px;
object-fit: cover;
transition: transform .2s;
}
#userPicture:hover {
cursor: pointer;
transform: scale(1.05);
}
</style>
<script src="js/functional/checkUserLogged.js"></script>
</head>
<body>
<main>
<div id="successAlert" class="alert alert-success d-block d-none" role="alert" style="z-index:999;">
¡Datos Actualizados!
</div>
<div class="container d-flex justify-content-center mt-2 w-75">
<div class="row" style="width: 80%;">
<div class="row row-cols-2">
<div class="col-8">
<p class="fs-1 mb-0 py-3">Perfil</p>
<hr>
</div>
<div class="col-4 text-end pe-5">
<img id="userPicture" src="" alt="your profile picture" onclick="showModal(this)">
<div id="modal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="modal-img">
<div id="modal-caption"></div>
</div>
</div>
</div>
<form id="userData" class="row row-cols-2 pt-4 pb-3 needs-validation" novalidate>
<div class="col">
<label for="firstName" class="form-label w-100">Primer Nombre *
<input type="text" name="firstName" id="firstName" class="form-control" required>
</label>
</div>
<div class="col">
<label for="middleName" class="form-label w-100">Segundo Nombre
<input type="text" name="middleName" id="middleName" class="form-control">
</label>
</div>
<div class="col">
<label for="firstSurname" class="form-label w-100">Primer Apellido *
<input type="text" name="firstSurname" id="firstSurname" class="form-control" required>
</label>
</div>
<div class="col">
<label for="secondSurname" class="form-label w-100">Segundo Apellido
<input type="text" name="secondSurname" id="secondSurname" class="form-control">
</label>
</div>
<div class="col">
<label for="userEmail" class="form-label w-100">Email *
<input type="email" name="userEmail" id="userEmail" class="form-control" required>
</label>
</div>
<div class="col">
<label for="userPicture" class="form-label w-100">Imagen de perfil
<input type="file" class="form-control" id="userPictureInput" name="userPicture"
aria-label="Upload profile picture">
</label>
</div>
<div class="col">
<label for="telNumber" class="form-label w-100">Teléfono de contacto *
<input type="numeric" name="telNumber" id="telNumber" class="form-control" required>
</label>
</div>
</form>
<hr>
<div class="row row-cols-2 mt-3">
<div class="col-4">
<button id="saveChangesBtn" type="button" class="btn btn-primary">Guardar Cambios</button>
</div>
</div>
</div>
</div>
</main>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/init.js"></script>
<script src="js/structural/navbar-footer.js"></script>
<script src="js/my-profile.js"></script>
</body>
</html>