-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
465 lines (430 loc) · 24.6 KB
/
index.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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<!DOCTYPE html>
<html lang="es-AR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>La Casita - Claromecó Alquileres</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<link rel="icon" href="img/logo.jpeg" type="image/jpeg">
<style>
body {
font-family: 'Poppins', sans-serif;
}
.carousel {
position: relative;
width: 100%;
height: 80vh;
overflow: hidden;
background-color: #f3f4f6;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.carousel-inner {
display: flex;
transition: transform 0.5s ease-in-out;
height: 100%;
}
.carousel-item {
min-width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
box-sizing: border-box;
}
.carousel-item img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 0.25rem;
transition: transform 0.3s ease;
}
.carousel-control {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
color: white;
padding: 1rem;
text-decoration: none;
font-size: 1.5rem;
transition: background 0.3s ease;
z-index: 10;
}
.carousel-control:hover {
background: rgba(0,0,0,0.7);
}
.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }
.carousel-indicators {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 0.5rem;
z-index: 10;
}
.carousel-indicator {
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
background-color: rgba(255,255,255,0.5);
cursor: pointer;
transition: background-color 0.3s ease;
}
.carousel-indicator.active {
background-color: white;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: rgba(0,0,0,0.9);
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: none;
max-height: none;
cursor: move;
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
z-index: 1001;
}
.flatpickr-day.reserved {
background-color: #ffcccb !important;
color: #333 !important;
text-decoration: line-through;
}
.flatpickr-day.selected {
background-color: #4299e1 !important;
color: white !important;
}
.flatpickr-day.selected.startRange, .flatpickr-day.selected.endRange {
background-color: #2b6cb0 !important;
}
#dateRangeConfirmation {
display: none;
background-color: #e6fffa;
border: 1px solid #4fd1c5;
border-radius: 0.375rem;
padding: 1rem;
margin-top: 1rem;
}
</style>
</head>
<body class="bg-gray-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<header class="py-4 bg-white shadow-md mb-8 flex justify-between items-center">
<img src="img/logo.jpeg" alt="La casita" class="h-12">
<nav class="hidden md:block">
<ul class="flex space-x-4">
<li><a href="#inicio" class="text-gray-600 hover:text-gray-900">Inicio</a></li>
<li><a href="#galeria" class="text-gray-600 hover:text-gray-900">Galería</a></li>
<li><a href="#contacto" class="text-gray-600 hover:text-gray-900">Contacto</a></li>
</ul>
</nav>
</header>
<section id="inicio" class="mb-12">
<h1 class="text-4xl font-bold mb-6 text-gray-800">La Casita</h1>
<div class="property-info flex flex-wrap gap-6 mb-8 items-center bg-white p-6 rounded-lg shadow-md">
<span class="flex items-center text-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46.999 46.999" class="w-6 h-6 mr-2 text-blue-500">
<path fill="currentColor" d="M39,14.999c0-0.329-0.161-0.637-0.433-0.823l-14.5-10c-0.342-0.236-0.793-0.236-1.135,0l-14.5,10 C8.161,14.363,8,14.67,8,14.999v30H6v2h3h6h6h17h3v-2h-2V14.999z M16,44.999v-9h4v9H16z M22,44.999v-10c0-0.553-0.447-1-1-1h-6 c-0.553,0-1,0.447-1,1v10h-4V15.525l13.5-9.311L37,15.525v29.475H22z"></path>
</svg>
Casa
</span>
<span class="flex items-center text-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" class="w-6 h-6 mr-2 text-blue-500">
<path fill="currentColor" d="M111.13672,158.97681a56.00028,56.00028,0,1,0-46.27246-.00025,92.23328,92.23328,0,0,0-52.13867,36.11719,3.99985,3.99985,0,1,0,6.541,4.60547A84.01746,84.01746,0,0,1,156.73,199.69434a4.00014,4.00014,0,0,0,6.541-4.60645A92.23237,92.23237,0,0,0,111.13672,158.97681ZM40.00049,108a48,48,0,1,1,48,48A48.05436,48.05436,0,0,1,40.00049,108Zm203.82519,92.66162a3.99923,3.99923,0,0,1-5.57373-.96728A84.17363,84.17363,0,0,0,169.522,164a4,4,0,0,1,0-8,48,48,0,1,0-13.02636-94.2124,4,4,0,1,1-2.166-7.70117A55.99661,55.99661,0,0,1,192.6582,158.97681,92.23507,92.23507,0,0,1,244.793,195.08789,4.0002,4.0002,0,0,1,243.82568,200.66162Z"></path>
</svg>
4 Huéspedes
</span>
<span class="flex items-center text-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="w-6 h-6 mr-2 text-blue-500">
<path fill="currentColor" d="M31 29h-2.961l-1.304-1.903H5.265L3.961 29H1V16.951h2.092l1.951-8.244h2.478c0-1.046.881-1.903 1.957-1.903h5.217c.5 0 .958.185 1.305.488a1.98 1.98 0 0 1 1.305-.488h5.217c1.076 0 1.956.857 1.956 1.903h2.478l1.952 8.244H31ZM14.695 11.878H9.478c-1.076 0-1.957-.856-1.957-1.903H6.086l-1.659 6.976h23.145l-1.659-6.976h-1.435c0 1.047-.88 1.903-1.956 1.903h-5.217c-.5 0-.958-.185-1.305-.488a1.98 1.98 0 0 1-1.305.488Zm14.048 15.853h.953v-9.512H2.304v9.512h.952l1.305-1.902h22.871Zm.953-15.219h-1.305V4.268H3.609v8.244H2.304V3h27.392ZM9.478 8.073a.646.646 0 0 0-.653.634v1.268c0 .349.294.634.653.634h5.217a.645.645 0 0 0 .652-.634V8.707a.645.645 0 0 0-.652-.634Zm7.827 0a.646.646 0 0 0-.653.634v1.268c0 .349.294.634.653.634h5.217a.645.645 0 0 0 .652-.634V8.707a.645.645 0 0 0-.652-.634Z"></path>
</svg>
2 Habitaciones
</span>
<span class="flex items-center text-gray-700">
<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 mr-2 text-blue-500">
<path fill="currentColor" d="M411.619,218.98H215.09V42.171C215.081,18.88,196.218,0,172.919,0h-67.663C81.964,0,63.093,18.871,63.084,42.171v229.944v4.302V512h255.924v-65.739c14.477-3.882,28.568-11.141,41.86-20.871c15.452-11.335,29.887-25.77,42.557-41.658l0.017-0.025c13.141-16.612,24.384-34.828,32.441-53.161c8.041-18.334,12.964-36.785,13.032-54.102v-0.026v-4.302v-15.847C448.908,235.666,432.212,218.98,411.619,218.98z M80.292,42.171c0.025-12.058,8.57-22.116,19.939-24.45c1.621-0.336,3.302-0.513,5.024-0.513h67.663c13.788,0.016,24.938,11.174,24.963,24.963v194.016v35.928H80.292V42.171z M431.372,281.047c-0.194,3.286-0.588,6.663-1.193,10.142c-0.034,0.194-0.076,0.387-0.109,0.588c-2.588,14.435-8.553,30.332-16.947,46.078c-0.605,1.109-1.278,2.218-1.899,3.327c-1.538,2.773-3.084,5.529-4.764,8.276c-2.302,3.73-4.73,7.428-7.26,11.074c-0.143,0.201-0.261,0.412-0.404,0.614c-2.823,4.032-5.78,8.008-8.848,11.881l0.042-0.05c-0.008,0.017-0.025,0.033-0.034,0.042c-0.009,0.016-0.025,0.025-0.034,0.042c-8.764,10.981-18.401,21.14-28.458,29.828c-0.227,0.192-0.446,0.395-0.673,0.588c-3.108,2.655-6.251,5.142-9.427,7.495c-0.369,0.286-0.748,0.571-1.125,0.84c-3.177,2.319-6.37,4.453-9.562,6.411c-0.294,0.176-0.58,0.362-0.866,0.529c-10.444,6.276-20.938,10.604-30.954,12.419l-1.689,0.302c-0.538,0.084-1.076,0.202-1.605,0.27l-3.764,0.47v0.235v62.345H80.292V280.719h351.105C431.389,280.828,431.38,280.938,431.372,281.047z M431.708,272.115H206.486v-35.928h205.133c11.09,0.016,20.073,8.999,20.089,20.081V272.115z"></path>
</svg>
2 Baños
</span>
</div>
</section>
<section id="galeria" class="mb-12">
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Galería</h2>
<div class="carousel rounded-lg shadow-lg overflow-hidden">
<div class="carousel-inner">
<div class="carousel-item">
<img src="img/arbol.jpg" alt="arbol" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/playa.jpg" alt="playa" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/entrada.jpg" alt="entrada" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/cocina.jpg" alt="cocina" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/matrimonial.jpg" alt="matrimonial" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/cucheta.jpg" alt="cucheta" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/baño1.jpg" alt="baño1" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/porton.jpg" alt="porton" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/parrilla.jpg" alt="parrilla" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/patio.jpg" alt="patio" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/lavadero.jpg" alt="lavadero" class="rounded-lg">
</div>
<div class="carousel-item">
<img src="img/baño2.jpg" alt="baño2" class="rounded-lg">
</div>
</div>
<a href="#" class="carousel-control prev"><</a>
<a href="#" class="carousel-control next">></a>
<div class="carousel-indicators"></div>
</div>
</section>
<div class="flex flex-col lg:flex-row gap-8 mt-8">
<!-- Descripción de la propiedad -->
<div class="property-details lg:w-2/3">
<div class="property-description bg-white p-6 rounded-lg shadow-md">
<h2 class="text-2xl font-bold text-gray-800 border-b-2 border-blue-500 pb-2">Descripción de la Propiedad</h2>
<p class="mt-4 text-gray-700 leading-relaxed">
En <strong>Claromecó</strong>, sobre <em>Avenida 42 y calle 21</em>, se encuentra esta encantadora casa diseñada
para una experiencia inolvidable. Perfecta para <strong>4 personas</strong>, ¡disfruta de su ubicación privilegiada
con una vista espectacular al mar!
</p>
<div class="highlight bg-blue-50 p-4 rounded-lg mt-4 shadow-sm">
<h3 class="text-lg font-semibold text-blue-600">Detalles Principales:</h3>
<ul class="list-disc list-inside mt-2 space-y-2 text-gray-700">
<li><strong>Living-comedor:</strong> Amplio y acogedor con hogar y sillón.</li>
<li><strong>Cocina:</strong> Equipada con anafe, horno, microondas, y amplia mesada.</li>
<li><strong>Habitaciones:</strong>
<ul class="list-circle ml-4">
<li>Principal con cama matrimonial.</li>
<li>Secundaria con cucheta.</li>
</ul>
</li>
<li><strong>Baños:</strong> Completo y adicional con ducha.</li>
<li><strong>Mascotas:</strong> No se aceptan.</li>
</ul>
</div>
<div class="highlight bg-green-50 p-4 rounded-lg mt-6 shadow-sm">
<h3 class="text-lg font-semibold text-green-600">Extras que Amarás:</h3>
<ul class="list-disc list-inside mt-2 space-y-2 text-gray-700">
<li>Garage con entrada vehicular.</li>
<li>Parrilla con barra de apoyo y patio interno con juego de jardín.</li>
<li>TV LED de 43", DirecTV e internet Wi-Fi de alta velocidad.</li>
<li>Vajilla completa y electrodomésticos modernos.</li>
</ul>
</div>
<p class="mt-6 text-gray-700 leading-relaxed">
Ubicada a solo <strong>50 metros</strong> de la costanera, estarás a pasos del agua. Disfruta de una experiencia
inolvidable en un ambiente tranquilo y completamente equipado.
</p>
<h2 class="text-2xl font-bold mt-8 text-gray-800 border-b-2 border-blue-500 pb-2">Contacto</h2>
<div class="contact-info space-y-4 mt-4 text-gray-700">
<p class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-blue-500 mr-2" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>
</svg>
<strong>Gabriel:</strong> <a href="tel:+5492983504432" class="text-blue-600 hover:underline">+54 9 2983-504432</a>
</p>
</div>
</div>
</div>
<!-- Formulario de contacto -->
<aside id="contacto" class="booking-form lg:w-1/3 bg-white p-6 rounded-lg shadow-md">
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Consultar disponibilidad</h2>
<form id="availability-form" class="space-y-4">
<input type="text" name="name" placeholder="Su nombre" required
class="w-full p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
<input type="text" name="dateRange" placeholder="Seleccione fechas" required
id="dateRange"
class="w-full p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
<input type="number" name="guests" placeholder="Huéspedes" min="1" max="4" required
class="w-full p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
<textarea name="comments" placeholder="Comentarios"
class="w-full p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 h-32"></textarea>
<div id="dateRangeConfirmation" class="text-sm text-teal-700"></div>
<button type="submit" class="w-full bg-green-500 text-white py-3 px-4 rounded-md hover:bg-green-600 transition duration-300 ease-in-out">
Enviar Whatsapp
</button>
</form>
</aside>
</div>
<div class="mt-12">
<iframe src="https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d776.7172780213434!2d-60.06173199999999!3d-38.858353!3m2!1i1024!2i768!4f13.1!5e0!3m2!1ses!2sar!4v1734714822884!5m2!1ses!2sar" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</div>
<div id="imageModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="modalImage">
</div>
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/es.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Fechas ocupadas
const occupiedRanges = [
{ start: '2024-12-30', end: '2025-02-07' },
{ start: '2025-02-28', end: '2025-03-04' }
//{ start: '2025-02-01', end: '2025-02-07' }
];
// Genera un array con todas las fechas ocupadas
function getOccupiedDates() {
const dates = [];
occupiedRanges.forEach(range => {
let current = new Date(range.start);
const end = new Date(range.end);
while (current <= end) {
dates.push(current.toISOString().split('T')[0]);
current.setDate(current.getDate() + 1);
}
});
return dates;
}
const occupiedDates = getOccupiedDates();
// Inicializa el calendario
const fp = flatpickr("#dateRange", {
mode: "range",
minDate: "today",
locale: "es",
dateFormat: "Y-m-d",
disable: occupiedDates,
onDayCreate: function(dObj, dStr, fp, dayElem) {
if (occupiedDates.includes(dayElem.dateObj.toISOString().split('T')[0])) {
dayElem.classList.add('reserved');
}
},
onChange: function(selectedDates, dateStr, instance) {
if (selectedDates.length === 2) {
const [start, end] = selectedDates;
const confirmationDiv = document.getElementById('dateRangeConfirmation');
confirmationDiv.innerHTML = `Has seleccionado desde ${start.toLocaleDateString('es-ES')} hasta ${end.toLocaleDateString('es-ES')}. ¿Estás seguro?`;
confirmationDiv.style.display = 'block';
}
}
});
// Carousel functionality
const carousel = document.querySelector('.carousel');
const carouselInner = carousel.querySelector('.carousel-inner');
const prevBtn = carousel.querySelector('.prev');
const nextBtn = carousel.querySelector('.next');
const indicators = carousel.querySelector('.carousel-indicators');
const modal = document.getElementById('imageModal');
const modalImg = document.getElementById('modalImage');
const closeBtn = document.getElementsByClassName('close')[0];
let currentIndex = 0;
// Create indicators
for (let i = 0; i < carouselInner.children.length; i++) {
const indicator = document.createElement('div');
indicator.classList.add('carousel-indicator');
indicator.addEventListener('click', () => showSlide(i));
indicators.appendChild(indicator);
}
function showSlide(index) {
carouselInner.style.transform = `translateX(-${index * 100}%)`;
currentIndex = index;
updateIndicators();
}
function updateIndicators() {
const allIndicators = indicators.querySelectorAll('.carousel-indicator');
allIndicators.forEach((indicator, index) => {
if (index === currentIndex) {
indicator.classList.add('active');
} else {
indicator.classList.remove('active');
}
});
}
prevBtn.addEventListener('click', function(e) {
e.preventDefault();
currentIndex = (currentIndex - 1 + carouselInner.children.length) % carouselInner.children.length;
showSlide(currentIndex);
});
nextBtn.addEventListener('click', function(e) {
e.preventDefault();
currentIndex = (currentIndex + 1) % carouselInner.children.length;
showSlide(currentIndex);
});
// Initialize first slide
showSlide(0);
// Modal functionality
carouselInner.addEventListener('click', function(e) {
if (e.target.tagName === 'IMG') {
modal.style.display = "block";
modalImg.src = e.target.src;
}
});
closeBtn.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Form submission
document.getElementById('availability-form').addEventListener('submit', function(e) {
e.preventDefault();
var name = this.elements.name.value;
var dateRange = this.elements.dateRange.value;
var guests = this.elements.guests.value;
var comments = this.elements.comments.value;
var message = `Hola, me interesa La Casita.\nNombre: ${name}\nFechas: ${dateRange}\nHuéspedes: ${guests}\nComentarios: ${comments}`;
var encodedMessage = encodeURIComponent(message);
const numbers = ['5492983504432'];
numbers.forEach((number, index) => {
setTimeout(() => {
window.open(`https://wa.me/${number}?text=${encodedMessage}`, '_blank');
}, index * 1000); // Retraso de 1 segundo entre cada apertura
});
});
});
</script>
</body>
</html>