-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver.html
278 lines (248 loc) · 11.3 KB
/
driver.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="generator" content="Hugo 0.88.1">
<title>OnTheWay</title>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/product/">
<!-- Bootstrap core CSS
<link href="css/bootstrap.min.css" rel="stylesheet">
-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<!-- Alertas de base de datos -->
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>
<body class="bg-light">
<!-- Nav (Barra de navegación)-->
<header class="site-header sticky-top py-1">
<nav
class="navbar navbar-expand-lg navbar-light container">
<a class="navbar-brand" href="index.html">
<h3 class="ontheway titulo2" style="color: #ccff00; font-weight: bold;">OnTheWay</h3>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li>
<a class="nav-item nav-link" href="./index.html">
<h5>Inicio</h5>
</a>
</li>
<li>
<a class="nav-item nav-link" href="./traveler.html">
<h5>Pasajero</h5>
</a>
</li>
<li>
<a class="nav-item nav-link active" href="./driver.html">
<h5>Conductor</h5>
</a>
</li>
</ul>
</div>
<div class="navbar-nav ms-auto">
<ul class="navbar-nav ms-auto">
<li>
<a class="nav-item nav-link fuera active" style="display: block;" href="#" data-toggle="modal" data-target="#signinModal" >
<h5>Iniciar sesión</h5>
</a>
</li>
<li>
<a class="nav-item nav-link fuera active" style="display: block;"href="#" data-toggle="modal" data-target="#signupModal">
<h5>Resgístrate</h5>
</a>
</li>
<li>
<a class="nav-item nav-link dentro active" style="display: none;" href="#" id="logout">
<h5>Cerrar sesión</h5>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<!-- (Formulario de registro viaje)-->
<div class="d-md-flex flex-md-equal w-100 my-md-3 ps-md-3">
<div class="me-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden" style="background-color: #ccff00;">
<div class="my-3 p-3" >
<h2 class="display-5">Para empezar tu viaje llena el siguiente formulario.</i></h2>
<p class="lead">Coincide con personas que compartan tu misma ruta.</p>
</div>
</div>
</div>
<div class="d-md-flex flex-md-equal w-100 my-md-3 ps-md-3">
<div class="bg-light me-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden">
<div class="bg-dark shadow-sm mx-auto">
<form style="color: aliceblue; " id="form_register">
<div class="col-md-6 offset-md-3 p-4 d-grid gap-2" >
<br>
<h2>Registra tu viaje aqui</h2>
<br>
<input type="text" class="form-control me-md-3 mx-auto" id="start" placeholder="¿Donde empieza tu viaje?">
<br>
<input type="text" class="form-control" id="destiny" placeholder="¿Donde termina tu viaje?">
<br>
<input type="text" class="form-control" id="number" pattern="[3][0-9]{9}" title="Número celular no valido" placeholder="¿A que numero pueden contactarte?">
<br>
<input type="text" class="form-control" id="cupos" placeholder="¿Con cuantos cupos cuentas?">
<br>
<textarea class="form-control" placeholder="¿Puntos importantes por tu camino?" id="descriptions" style="height: 100px"></textarea>
<br>
<label for="days">¿Que dias planeas hacer tu viaje?</label>
<select name="days" id="days" class="form-control">
<option value="lunes">Lunes</option>
<option value="martes">Martes</option>
<option value="miercoles">Miercoles</option>
<option value="jueves">Jueves</option>
<option value="viernes">Viernes</option>
<option value="sabado">Sabado</option>
</select>
<br>
<label for="days">¿En que horario sera tu viaje?</label>
<input type="time" class="form-control" id="horarios" placeholder="¿En que horario es tu viaje?">
<br>
<button id="registrarviaje" type="submit" class="btn btn-primary btn-lg" style="background-color: #ccff00;">Registra tu viaje</button>
<br>
<br>
</div>
</form>
</div>
</div>
</div>
</main>
<!-- Modals (Ventana Emergente para SignUp)-->
<div class="modal" id="signupModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Regístrate</h5>
</div>
<div class="modal-body">
<form id="signup-form" action="">
<div class="form-group mb-3">
<input type="text" id="signup-name" class="form-control" placeholder="Nombre" required autofocus>
</div>
<div class="form-group mb-3">
<input type="text" id="signup-lastName" class="form-control" placeholder="Apellidos" required autofocus>
</div>
<div class="form-group mb-3">
<input type="tel" id="signup-numCel" pattern="[3][0-9]{9}" title="Número celular no valido" class="form-control" placeholder="Número celular" required autofocus>
</div>
<div class="form-group mb-3">
<input type="text" id="signup-email" class="form-control" placeholder="Correo institucional" required autofocus>
</div>
<div class="form-group mb-3">
<input type="password" id="signup-password" class="form-control" placeholder="Contraseña" required>
</div>
<div class="row mb-3">
<div class="col"></div>
<div class="col" style="text-align: center; justify-content: center;align-items: center; display: flex; background-color: rgb(39, 40, 56); border-radius: 10%;"><h6 style="color:#ccff00;">Pasajero</h6></div>
<div class="col">
<input type="checkbox" id="toggle" value="pasajero; otro" class="form-control offscreen"/>
<label for="toggle" class="switch"></label>
</div>
<div class="col" style="text-align: center; justify-content: center;align-items: center; display: flex; background-color: #ccff00; border-radius: 10%;"><h6 style="color:black;">Conductor</h6></div>
<div class="col"></div>
</div>
<div class="d-grid gap-2 d-md-block">
<button type="submit" class="btn btn-outline-primary btn-block" style="color: black; background-color: #ccff00; border: black;">Registrarse</button>
<button type="button" class="btn btn-light" data-dismiss="modal" aria-label="Close">Cerrar</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modals (Ventana Emergente para SignIn)-->
<div class="modal" id="signinModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Iniciar sesión</h5>
</div>
<div class="modal-body">
<form id="login-form" action="">
<div class="form-group mb-3">
<input type="text" id="login-email" class="form-control" placeholder="Email" autofocus required>
</div>
<div class="form-group mb-3">
<input type="password" id="login-password" class="form-control" placeholder="Password" required>
</div>
<div class="d-grid gap-2 d-md-block">
<button type="submit" class="btn btn-outline-primary btn-block" style="color: black; background-color: #ccff00; border: black;">Login</button>
<button type="button" class="btn btn-light" data-dismiss="modal" aria-label="Close">Cerrar</button>
</div>
</form>
</div>
</div>
</div>
</div>
<footer class="container py-5">
<div style="text-align: center;" class="">
<h5>Sobre nosotros</h5>
<ul class="list-unstyled text-small">
<li><a class="link-secondary" href="#">Contáctenos</a></li>
</ul>
</div>
<div style="text-align: center;" class="row">
<div class="col-12 col-md">
<small class="d-block mb-3 text-muted">© 2022</small>
</div>
</div>
</footer>
<script>
if( "serviceWorker" in navigator){
navigator.serviceWorker.register("sw.js");
}
</script>
<script type="text/javascript" src="js/jquery.slim.min.js"></script>
<script type="text/javascript" src="js/tether.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-firestore.js"></script>
<script>
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyALyNwAbNMn9y_FyKBMd9tANnHclyUGSek",
authDomain: "ontheway-85dd5.firebaseapp.com",
projectId: "ontheway-85dd5",
storageBucket: "ontheway-85dd5.appspot.com",
messagingSenderId: "473452703765",
appId: "1:473452703765:web:315ec5e4a1e29005c45e1c"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
const auth = firebase.auth();
const fs = firebase.firestore();
</script>
<script src="js/app.js"></script>
</body>
</html>