Update index.html
Browse files- index.html +133 -80
index.html
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
<html><head><base href="https://example.com/">
|
| 2 |
<meta charset="UTF-8">
|
| 3 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 4 |
-
<title>
|
| 5 |
<link rel="manifest" href="manifest.json">
|
| 6 |
<meta name="theme-color" content="#000">
|
| 7 |
-
<
|
|
|
|
|
|
|
|
|
|
| 8 |
<style>
|
| 9 |
body {
|
| 10 |
font-family: sans-serif;
|
|
@@ -20,10 +23,10 @@
|
|
| 20 |
}
|
| 21 |
|
| 22 |
header {
|
|
|
|
|
|
|
| 23 |
background-color: #000;
|
| 24 |
color: #fff;
|
| 25 |
-
padding: 0.8rem 0;
|
| 26 |
-
text-align: center;
|
| 27 |
width: 100%;
|
| 28 |
position: fixed;
|
| 29 |
top: 0;
|
|
@@ -36,11 +39,20 @@
|
|
| 36 |
}
|
| 37 |
|
| 38 |
.logo {
|
| 39 |
-
height:
|
| 40 |
width: auto;
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
.container {
|
|
@@ -273,6 +285,19 @@
|
|
| 273 |
|
| 274 |
/* Media Queries */
|
| 275 |
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
.container {
|
| 277 |
width: 95%;
|
| 278 |
margin-top: 70px;
|
|
@@ -295,6 +320,16 @@
|
|
| 295 |
}
|
| 296 |
}
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
.btn-icon {
|
| 299 |
margin-right: 8px;
|
| 300 |
}
|
|
@@ -354,7 +389,7 @@
|
|
| 354 |
<body>
|
| 355 |
<header>
|
| 356 |
<img src="https://i.ibb.co/Vq1ZHGB/Captureds.png" alt="HAMBI Logo" class="logo">
|
| 357 |
-
<
|
| 358 |
</header>
|
| 359 |
|
| 360 |
<div class="container">
|
|
@@ -501,78 +536,96 @@
|
|
| 501 |
</div>
|
| 502 |
|
| 503 |
<footer>
|
| 504 |
-
<p>©
|
| 505 |
</footer>
|
| 506 |
|
| 507 |
-
<script>
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 577 |
</body>
|
| 578 |
</html>
|
|
|
|
| 1 |
<html><head><base href="https://example.com/">
|
| 2 |
<meta charset="UTF-8">
|
| 3 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 4 |
+
<title></title>
|
| 5 |
<link rel="manifest" href="manifest.json">
|
| 6 |
<meta name="theme-color" content="#000">
|
| 7 |
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 8 |
+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
| 9 |
+
<meta name="apple-mobile-web-app-title" content=>
|
| 10 |
+
<link rel="apple-touch-icon" href="/Captureds (1).PNG">
|
| 11 |
<style>
|
| 12 |
body {
|
| 13 |
font-family: sans-serif;
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
header {
|
| 26 |
+
flex-direction: column;
|
| 27 |
+
padding: 1rem 0;
|
| 28 |
background-color: #000;
|
| 29 |
color: #fff;
|
|
|
|
|
|
|
| 30 |
width: 100%;
|
| 31 |
position: fixed;
|
| 32 |
top: 0;
|
|
|
|
| 39 |
}
|
| 40 |
|
| 41 |
.logo {
|
| 42 |
+
height: 120px;
|
| 43 |
width: auto;
|
| 44 |
+
max-width: 90%;
|
| 45 |
+
border-radius: 15px;
|
| 46 |
+
transition: all 0.3s ease;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.tagline {
|
| 50 |
+
font-size: 1.2em;
|
| 51 |
+
margin-top: 0.5em;
|
| 52 |
+
font-style: italic;
|
| 53 |
+
color: #fff;
|
| 54 |
+
text-align: center;
|
| 55 |
+
animation: fadeIn 1s ease-out;
|
| 56 |
}
|
| 57 |
|
| 58 |
.container {
|
|
|
|
| 285 |
|
| 286 |
/* Media Queries */
|
| 287 |
@media (max-width: 768px) {
|
| 288 |
+
header {
|
| 289 |
+
padding: 0.5rem 0;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.logo {
|
| 293 |
+
height: 90px;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.tagline {
|
| 297 |
+
font-size: 1em;
|
| 298 |
+
padding: 0 10px;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
.container {
|
| 302 |
width: 95%;
|
| 303 |
margin-top: 70px;
|
|
|
|
| 320 |
}
|
| 321 |
}
|
| 322 |
|
| 323 |
+
@media (max-width: 480px) {
|
| 324 |
+
.logo {
|
| 325 |
+
height: 70px;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
.tagline {
|
| 329 |
+
font-size: 0.9em;
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
.btn-icon {
|
| 334 |
margin-right: 8px;
|
| 335 |
}
|
|
|
|
| 389 |
<body>
|
| 390 |
<header>
|
| 391 |
<img src="https://i.ibb.co/Vq1ZHGB/Captureds.png" alt="HAMBI Logo" class="logo">
|
| 392 |
+
<div class="tagline">Restez calme, on gère</div>
|
| 393 |
</header>
|
| 394 |
|
| 395 |
<div class="container">
|
|
|
|
| 536 |
</div>
|
| 537 |
|
| 538 |
<footer>
|
| 539 |
+
<p>© 2025 HAMBI. Tous droits réservés.</p>
|
| 540 |
</footer>
|
| 541 |
|
| 542 |
+
<script>
|
| 543 |
+
let deferredPrompt;
|
| 544 |
+
|
| 545 |
+
window.addEventListener('beforeinstallprompt', (e) => {
|
| 546 |
+
e.preventDefault();
|
| 547 |
+
deferredPrompt = e;
|
| 548 |
+
});
|
| 549 |
+
|
| 550 |
+
function formatMessage(description, serviceType) {
|
| 551 |
+
return `Nouveau problème signalé:\nService: ${serviceType}\nDescription: ${description}`;
|
| 552 |
+
}
|
| 553 |
+
async function handleFormSubmit(event, serviceType) {
|
| 554 |
+
event.preventDefault();
|
| 555 |
+
const form = event.target;
|
| 556 |
+
const description = form.querySelector('textarea').value;
|
| 557 |
+
const files = form.querySelector('input[type="file"]').files;
|
| 558 |
+
const message = formatMessage(description, serviceType);
|
| 559 |
+
const whatsappUrl = `https://wa.me/76966265?text=${encodeURIComponent(message)}`;
|
| 560 |
+
window.open(whatsappUrl, '_blank');
|
| 561 |
+
}
|
| 562 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 563 |
+
const serviceCards = document.querySelectorAll('.service-card');
|
| 564 |
+
serviceCards.forEach(card => {
|
| 565 |
+
card.addEventListener('click', e => {
|
| 566 |
+
if (e.target.closest('.submenu')) {
|
| 567 |
+
e.stopPropagation();
|
| 568 |
+
return;
|
| 569 |
+
}
|
| 570 |
+
serviceCards.forEach(otherCard => {
|
| 571 |
+
if (otherCard !== card) {
|
| 572 |
+
const otherSubmenu = otherCard.querySelector('.submenu');
|
| 573 |
+
if (otherSubmenu && otherSubmenu.classList.contains('show')) {
|
| 574 |
+
otherSubmenu.classList.remove('show');
|
| 575 |
+
otherCard.classList.remove('submenu-open');
|
| 576 |
+
}
|
| 577 |
+
}
|
| 578 |
+
});
|
| 579 |
+
const submenu = card.querySelector('.submenu');
|
| 580 |
+
if (submenu) {
|
| 581 |
+
const wasShown = submenu.classList.contains('show');
|
| 582 |
+
submenu.classList.toggle('show');
|
| 583 |
+
card.classList.toggle('submenu-open');
|
| 584 |
+
if (!wasShown) {
|
| 585 |
+
card.style.transform = 'translateY(-5px)';
|
| 586 |
+
} else {
|
| 587 |
+
card.style.transform = 'none';
|
| 588 |
+
}
|
| 589 |
+
}
|
| 590 |
+
});
|
| 591 |
+
});
|
| 592 |
+
document.addEventListener('click', event => {
|
| 593 |
+
if (!event.target.closest('.service-card')) {
|
| 594 |
+
serviceCards.forEach(card => {
|
| 595 |
+
const submenu = card.querySelector('.submenu');
|
| 596 |
+
if (submenu && submenu.classList.contains('show')) {
|
| 597 |
+
submenu.classList.remove('show');
|
| 598 |
+
card.classList.remove('submenu-open');
|
| 599 |
+
}
|
| 600 |
+
});
|
| 601 |
+
}
|
| 602 |
+
});
|
| 603 |
+
const submenuLinks = document.querySelectorAll('.submenu li a');
|
| 604 |
+
submenuLinks.forEach(link => {
|
| 605 |
+
link.addEventListener('click', e => {
|
| 606 |
+
e.preventDefault();
|
| 607 |
+
const form = link.parentElement.querySelector('.issue-form');
|
| 608 |
+
form.classList.toggle('show');
|
| 609 |
+
});
|
| 610 |
+
});
|
| 611 |
+
const issueForms = document.querySelectorAll('.issue-form');
|
| 612 |
+
issueForms.forEach(form => {
|
| 613 |
+
form.addEventListener('submit', e => {
|
| 614 |
+
const serviceType = form.parentElement.querySelector('a').textContent;
|
| 615 |
+
handleFormSubmit(e, serviceType);
|
| 616 |
+
});
|
| 617 |
+
});
|
| 618 |
+
});
|
| 619 |
+
|
| 620 |
+
if ('serviceWorker' in navigator) {
|
| 621 |
+
navigator.serviceWorker.register('/sw.js')
|
| 622 |
+
.then(registration => {
|
| 623 |
+
console.log('ServiceWorker registration successful');
|
| 624 |
+
})
|
| 625 |
+
.catch(err => {
|
| 626 |
+
console.log('ServiceWorker registration failed: ', err);
|
| 627 |
+
});
|
| 628 |
+
}
|
| 629 |
+
</script>
|
| 630 |
</body>
|
| 631 |
</html>
|