-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
280 lines (253 loc) · 10.1 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
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
279
280
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="Index">
<title>Matias' Portfolio</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="wp-content\images\assets\img\brand\favicon.ico" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hover.css/2.1.1/css/hover-min.css" integrity="sha512-SJw7jzjMYJhsEnN/BuxTWXkezA2cRanuB8TdCNMXFJjxG9ZGSKOX5P3j03H6kdMxalKHZ7vlBMB4CagFP/de0A==" crossorigin="anonymous" />
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/emailjs-com@2/dist/email.min.js">
</script>
<script type="text/javascript">
(function(){
emailjs.init("user_6Z3mCm9NiTNUQqYhMfV8E");
})();
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==" crossorigin="anonymous">
<style>
.wrapper {
max-width: 1170px;
margin-left: auto;
margin-right: auto;
padding: 1.5em;
}
.ul {
list-style: none;
padding: 0;
}
.logo {
text-align: center;
font-size: 3em;
}
.logo span {
color: #B70E21;
}
.contact-wrapper {
box-shadow: 0 0 20px 0 rgba(255, 255, 255, .3);
}
.contact-wrapper > * {
padding: 1em;
}
.contact-form {
background: #f0f0f0;
}
.contact-form form {
display: grid;
grid-template-columns: 1fr 1fr;
}
.contact-form form label {
display: block;
}
.contact-form form p {
margin: 0;
padding: 1em;
}
.contact-form form .block {
grid-column: 1 / 3;
}
.contact-form form button,
.contact-form form input,
.contact-form form textarea {
width: 100%;
padding: .7em;
border: none;
background: none;
outline: 0;
border-bottom: 1px solid #ccc;
}
.contact-form form button {
background: #ccc;
border: 0;
text-transform: uppercase;
padding: 1em;
color: #000;
}
.contact-form form button:hover,
.contact-form form button:focus {
background: #aeaeae;
transition: background-color 0.3s;
outline: 0;
}
/* CONTACT INFO */
.contact-info {
background: #ccc;
}
.contact-info h4, .contact-info ul, .contact-info p {
text-align: center;
margin: 0 0 1rem 0;
}
/* LARGE SIZE */
@media(min-width: 768px) {
.wrapper {
padding: 0 4em;
}
.contact-wrapper {
display: grid;
grid-template-columns: 2fr 1fr;
}
.contact-wrapper > * {
padding: 2em;
}
.contact-info h4,
.contact-info ul,
.contact-info p {
text-align: left;
}
}
</style>
</head>
<body style="height: 700px;" onload="myFunction()" onoffline="offline()" ononline="online()">
<div id="loader" style="overflow: hidden;">
<div class="sk-chase">
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
</div>
</div>
<div style="display:none;" id="myDiv">
<nav class="navbar navbar-expand-lg navbar-light bg-body sticky-top p-4">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="wp-content/images/assets/img/brand/portfolio-logo.svg" style="width:50px;" alt="Logo" class="me-3"> Matias' Portfolio</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse ms-auto" id="navbarNavDropdown">
<ul class="navbar-nav navbar-nav-scroll ms-auto" style="--bs-scroll-height: 1000px;">
<li class="nav-item">
<a class="nav-link my-lg-2 link" href="/"><span data-content="Página principal">Página principal</span></a>
</li>
<li class="nav-item dropdown">
<a class=" nav-link my-lg-2 dropdown-toggle link" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<span data-content="Proyectos">Proyectos</span>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="projects/dgrafix.html">D'grafix</a></li>
<li><a class="dropdown-item" href="projects/projects.html">Ver todos <i class="bi bi-chevron-double-right"></i></a></li>
</ul>
</li>
<li class="nav-item">
<a class=" nav-link my-lg-2 link" href="aboutme.html"><span data-content="Sobre mí">Sobre mí</span></a>
</li>
<li class="nav-item">
<a class=" nav-link my-lg-2 link active" aria-current="page" href="contact.html"><span data-content="Contacto">Contacto</span></a>
</li>
</ul>
</nav>
<div class="position-fixed bottom-0 start-0 p-3" style="z-index: 5;">
<div id="offline" style="display:block;"></div>
</div>
<div class="container" id="formContainer">
<h1 class="display-3 mb-5">Contacto</h1>
<div class="content">
<div class="contact-wrapper animate__animated animate__fadeInUp">
<div class="contact-form">
<form action="contact.htm?redirect=true&contactservice=success" class="contact">
<p>
<label>Nombre completo</label>
<input type="text" name="fullname" class="name-form">
</p>
<p>
<label>Email</label>
<input type="email" name="email" class="email-form">
</p>
<p>
<label>Numero de telefono</label>
<input type="tel" name="phone">
</p>
<p>
<label>Asunto</label>
<input type="text" name="affair">
</p>
<p class="block">
<label>Mensaje</label>
<textarea name="message" rows="3"></textarea>
</p>
<p class="block">
<button class="btn-email spinner btn btn-secondary">
Enviar
</button>
</p>
</form>
</div>
<div class="contact-info">
<h4><i class="bi bi-person-lines-fill"></i> Más Información</h4>
<ul class="ul">
<li class="mt-5 mb-2"><i class="bi bi-geo-alt-fill"></i> Chongón, Guayaquil, Ecuador</li>
<li><i class="bi bi-envelope-open-fill"></i> [email protected]</li>
</ul>
<p class="mt-5">Rellene el siguiente formulario para ser respondido y ayudarle. El servicio se extiende por todo el Ecuador. El correo y su nombre serán guardados en un lugar seguro para poder contactarlo.</p>
</div>
</div>
</div>
</div>
<footer>
<ul class="nav justify-content-center" style="background:#cccccc;margin-top: 400px;">
<li class="nav-item">
<a class="nav-link" href="index.html">Página principal</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/projects/projects.html">Proyectos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="aboutme.html">Sobre mí</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contacto</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="search.html">Buscar</a>
</li>
</ul>
<small class="footer-text" style="text-align:center;"><img class="nav-brand-footer" src="wp-content/images/assets/img/brand/portfolio-logo.svg" alt="Por"></img> - © 2021 - Esta página tiene la <a href="https://creativecommons.org/licenses/by-sa/3.0/" class="cc-link" target="_blank">licencia de Creative Commons BY-SA 3.0</a>, lo que significa que puedes publicar y remezclar mi contenido.</small>
</footer>
<script>
var myVar;
function myFunction() {
myVar = setTimeout(showPage, 3000);
}
function showPage() {
document.getElementById("loader").style.display = "none";
document.getElementById("myDiv").style.display = "block";
}
// Envío de recibo a contacto
const formv = document.querySelector('.email-form')
const form = document.querySelector('.btn-email');
const namem = document.querySelector('.name-form');
form.addEventListener('click', addSpinnerAndEmail);
function addSpinnerAndEmail() {
form.classList.add('disabled')
form.innerHTML += `<span class="spinner-border spinner-border-sm ms-2" role="status" aria-hidden="true"></span>`
emailjs.send('service_gmail', 'template_portfolio', { to_email: formv.value, to_name: namem.value, userID: 'user_6Z3mCm9NiTNUQqYhMfV8E' })
.then(function (response) {
console.log('SUCCESS!', response.status, response.text);
}, function (error) {
console.log('FAILED...', error);
});
}
</script>
</div>
<script src="main.js"></script>
</body>
</html>