-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
253 lines (238 loc) · 12.4 KB
/
contact.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Sicorp</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500&family=Roboto:wght@500;700;900&display=swap" rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/lightbox/css/lightbox.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="css/style.css" rel="stylesheet">
<!-- SweetAlert2 Stylesheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
</head>
<body>
<!-- Spinner Start -->
<div id="spinner" class="show bg-white position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center">
<div class="spinner-border text-primary" style="width: 3rem; height: 3rem;" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!-- Spinner End -->
<!-- Topbar Start -->
<div class="container-fluid bg-dark p-0">
<div class="row gx-0 d-none d-lg-flex">
<div class="col-lg-7 px-5 text-start">
<div class="h-100 d-inline-flex align-items-center me-4">
<small class="fa fa-map-marker-alt text-light me-2"></small>
<small>Pellegrini , San Nicolas de los Arroyos</small>
</div>
<div class="h-100 d-inline-flex align-items-center">
<small class="far fa-clock text-light me-2"></small>
<small>Lunes a Viernes : 9:00 a 15:00 hs</small>
</div>
</div>
<div class="col-lg-5 px-5 text-end">
<div class="h-100 d-inline-flex align-items-center me-4">
<small class="fa fa-phone-alt text-light me-2"></small>
<small>+54 9 3364027967</small>
</div>
</div>
</div>
</div>
<!-- Topbar End -->
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light sticky-top p-0">
<a href="index.html" class="navbar-brand d-flex align-items-center border-end px-4 px-lg-5">
<h2 class="m-0 text-primary">Sicorp</h2>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="index.html" class="nav-item nav-link">Home</a>
<a href="about.html" class="nav-item nav-link">Nosotros</a>
<a href="project.html" class="nav-item nav-link">Proyectos</a>
<a href="contact.html" class="nav-item nav-link">Contacto</a>
</div>
</div>
</nav>
<!-- Navbar End -->
<!-- Page Header Start -->
<div class="container-fluid page-header py-5 mb-5">
<div class="container py-5">
<h1 class="display-3 text-white mb-3 animated slideInDown">Contacto</h1>
</div>
</div>
<!-- Page Header End -->
<!-- Contact Start -->
<div class="container-fluid bg-light overflow-hidden px-lg-0" style="margin: 6rem 0;">
<div class="container contact px-lg-0">
<div class="row g-0 mx-lg-0">
<div class="col-lg-6 contact-text py-5 wow fadeIn" data-wow-delay="0.5s">
<div class="p-lg-5 ps-lg-0">
<h6 class="text-primary">Contactate con Nosotros</h6>
<h1 class="mb-4"></h1>
<p class="mb-4">Complete el formulario, cuéntenos en qué podemos ayudarlo y nos pondremos en contacto con usted</p>
<form id="contact-form">
<div class="row g-3">
<div class="col-md-6">
<div class="form-floating">
<input type="text" class="form-control" id="name" placeholder="Your Name" required>
<label for="name">Nombre</label>
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<input type="email" class="form-control" id="email" placeholder="Your Email" required>
<label for="email">Email</label>
</div>
</div>
<div class="col-12">
<div class="form-floating">
<input type="text" class="form-control" id="telefono" placeholder="telefono" required>
<label for="telefono">Teléfono</label>
</div>
</div>
<div class="col-12">
<div class="form-floating">
<textarea class="form-control" placeholder="Leave a message here" id="message" style="height: 100px" required></textarea>
<label for="message">Mensaje</label>
</div>
</div>
<div class="col-12">
<button class="btn btn-primary rounded-pill py-3 px-5" type="submit">Enviar</button>
</div>
</div>
</form>
</div>
</div>
<!-- <div class="col-lg-6 pe-lg-0" style="min-height: 400px;">
<div class="position-relative h-100">
<iframe class="position-absolute w-100 h-100" style="object-fit: cover;"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3001156.4288297426!2d-78.01371936852176!3d42.72876761954724!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4ccc4bf0f123a5a9%3A0xddcfc6c1de189567!2sNew%20York%2C%20USA!5e0!3m2!1sen!2sbd!4v1603794290143!5m2!1sen!2sbd"
frameborder="0" allowfullscreen="" aria-hidden="false"
tabindex="0"></iframe>
</div> -->
</div>
</div>
</div>
</div>
<!-- Contact End -->
<!-- Footer Start -->
<div class="container-fluid bg-dark text-body footer mt-5 pt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="container py-5">
<div class="row g-5">
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Dirección</h5>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>Pellegrini , San Nicolas de los Arroyos</p>
</div>
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Contacto</h5>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>+54 9 3364027967</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>[email protected]</p>
</div>
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Nuestro Sitio</h5>
<a class="btn btn-link" href="index.html">Home</a>
<a class="btn btn-link" href="about.html">Nosotros</a>
<a class="btn btn-link" href="project.html">Proyectos</a>
<a class="btn btn-link" href="contact.html">Contacto</a>
</div>
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Siguenos</h5>
<div class="d-flex pt-2">
<a class="btn btn-square btn-outline-body me-0" href="https://www.linkedin.com/company/sicorp-srl/"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
</div>
<div class="container-fluid copyright py-4">
<div class="container">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
© <a href="#">Sicorp Web</a>, Todos los derechos reservados.
</div>
<div class="col-md-6 text-center text-md-end">
<!-- -->
Designed By <a href="https://htmlcodex.com">Sicorp SRL</a>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/lightbox/js/lightbox.min.js"></script>
<!-- EmailJS SDK -->
<script src="https://cdn.emailjs.com/dist/email.min.js"></script>
<!-- SweetAlert2 SDK -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
<script>
(function(){
emailjs.init("xWy4cPF-lTb096U4z"); // Usar la clave pública aquí
})();
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
// Obtener los valores del formulario
var name = document.getElementById('name').value;
var email = document.getElementById('email').value;
var telefono = document.getElementById('telefono').value;
var message = document.getElementById('message').value;
// Definir los parámetros de la plantilla
var templateParams = {
from_name: name,
from_email: email,
from_telefono: telefono,
message: message
};
// Enviar el correo usando EmailJS
emailjs.send('service_xq873me', 'template_t8de4vr', templateParams)
.then(function(response) {
console.log('SUCCESS!', response.status, response.text);
Swal.fire({
title: '¡Correo enviado exitosamente!',
text: 'Gracias por contactarnos. Nos pondremos en contacto contigo pronto.',
icon: 'success',
confirmButtonText: 'Aceptar'
});
document.getElementById('contact-form').reset(); // Limpiar el formulario
}, function(error) {
console.log('FAILED...', error);
Swal.fire({
title: 'Error al enviar el correo',
text: 'Por favor, intenta nuevamente más tarde.',
icon: 'error',
confirmButtonText: 'Aceptar'
});
});
});
</script>
</body>
</html>