-
Notifications
You must be signed in to change notification settings - Fork 1
/
my-profile.html
144 lines (139 loc) · 5.83 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!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" />
<link rel="icon" href="img/favicon.svg" type="image/svg+xml" />
<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/bootstrap.min.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<link rel="stylesheet" href="css/profile.css" />
<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;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-1">
<div class="container">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav w-100 justify-content-between">
<li class="nav-item">
<a class="nav-link" href="main.html">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="categories.html">Categorías</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sell.html">Vender</a>
</li>
<li class="nav-item">
<div id="navbarNavDarkDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="nav-userInfo" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"> Dropdown </a>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="cart.html">Mi Carrito</a></li>
<li><a class="dropdown-item" href="my-profile.html">Mi Perfil</a></li>
<li><a class="dropdown-item" id="closeSession">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</nav>
<main>
<div class="container mt-4">
<h2 class="fw-normal mb-4">Perfil</h2>
<form id="profileForm" class="needs-validation" novalidate>
<div class="row">
<div class="col-12">
<div class="col-12 mb-4">
<div>
<img src="./img/default-avatar.svg" id="currentAvatarImage" class="avatar-image col-3" alt="Foto de Perfil" />
</div>
<div class="mt-2">
<input type="file" id="imageInput" accept="image/jpeg, image/png, image/jpg" />
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 pb-4">
<label for="firstName" class="form-label">Primer Nombre*</label>
<input type="text" class="form-control" id="firstName" pattern="[A-Za-z]+" required />
<div class="invalid-feedback">Debe ingresar un primer nombre válido.</div>
</div>
<div class="col-12 col-md-6 pb-4">
<label for="middleName" class="form-label">Segundo Nombre</label>
<input type="text" class="form-control" id="middleName" pattern="[A-Za-z]+" />
<div class="invalid-feedback">Debe ingresar un segundo nombre válido.</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 pb-4">
<label for="lastName1" class="form-label">Primer Apellido*</label>
<input type="text" class="form-control" id="lastName1" pattern="[A-Za-z]+" required />
<div class="invalid-feedback">Debe ingresar un primer apellido válido.</div>
</div>
<div class="col-12 col-md-6 pb-4">
<label for="lastName2" class="form-label">Segundo Apellido</label>
<input type="text" class="form-control" id="lastName2" pattern="[A-Za-z]+" />
<div class="invalid-feedback">Debe ingresar un segundo apellido válido.</div>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-6 pb-4">
<label for="email" class="form-label">E-mail*</label>
<input type="email" class="form-control" id="email" disabled />
</div>
<div class="col-12 col-lg-6 pb-4">
<label for="phone" class="form-label">Teléfono de Contacto</label>
<input type="tel" class="form-control" id="phone" pattern="^([\+][0-9]{1,3}|0)?[0-9]{8}$" />
<div class="invalid-feedback">Debe ingresar un teléfono de contacto válido.</div>
</div>
</div>
<button type="submit" class="btn btn-primary">Guardar Cambios</button>
<div class="alert alert1 alert-success alert-dismissible fade show" role="alert">
<p class="mb-0">Datos guardados satisfactoriamente.</p>
<button type="button" class="btn-close btn-close1" aria-label="Close"></button>
</div>
<div class="alert alert2 alert-success alert-dismissible fade show" role="alert">
<p class="mb-0">Imagen guardada satisfactoriamente.</p>
<button type="button" class="btn-close btn-close2" aria-label="Close"></button>
</div>
</div>
</div>
</form>
</div>
</main>
<footer class="text-muted">
<div class="container">
<p class="float-end">
<a href="#">Volver arriba</a>
</p>
<p>Este sitio forma parte de <a href="https://jovenesaprogramar.edu.uy/" target="_blank">Jovenes a Programar</a> - 2022</p>
<p>Clickea <a target="_blank" href="Letra.pdf">aquí</a> para descargar la letra del obligatorio.</p>
</div>
</footer>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/init.js"></script>
<script src="js/my-profile.js"></script>
</body>
</html>