SELIGROUP commited on
Commit
bad2bb2
·
verified ·
1 Parent(s): d4e77d0

Update index.html

Browse files
Files changed (1) hide show
  1. 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>HAMBI</title>
5
  <link rel="manifest" href="manifest.json">
6
  <meta name="theme-color" content="#000">
7
- <link rel="apple-touch-icon" href="icon-192x192.png">
 
 
 
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: 80px;
40
  width: auto;
41
- object-fit: contain;
42
- aspect-ratio: 2/1;
43
- border-radius: 10px;
 
 
 
 
 
 
 
 
 
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
- <h1>RESTEZ CALME, ON GÈRE</h1>
358
  </header>
359
 
360
  <div class="container">
@@ -501,78 +536,96 @@
501
  </div>
502
 
503
  <footer>
504
- <p>&#xa9; 2024 HAMBI. Tous droits r&#xe9;serv&#xe9;s.</p>
505
  </footer>
506
 
507
- <script>if ('serviceWorker' in navigator) {}
508
- function formatMessage(description, serviceType) {
509
- return `Nouveau problème signalé:\nService: ${serviceType}\nDescription: ${description}`;
510
- }
511
- async function handleFormSubmit(event, serviceType) {
512
- event.preventDefault();
513
- const form = event.target;
514
- const description = form.querySelector('textarea').value;
515
- const files = form.querySelector('input[type="file"]').files;
516
- const message = formatMessage(description, serviceType);
517
- const whatsappUrl = `https://wa.me/76966265?text=${encodeURIComponent(message)}`;
518
- window.open(whatsappUrl, '_blank');
519
- }
520
- document.addEventListener('DOMContentLoaded', () => {
521
- const serviceCards = document.querySelectorAll('.service-card');
522
- serviceCards.forEach(card => {
523
- card.addEventListener('click', e => {
524
- if (e.target.closest('.submenu')) {
525
- e.stopPropagation();
526
- return;
527
- }
528
- serviceCards.forEach(otherCard => {
529
- if (otherCard !== card) {
530
- const otherSubmenu = otherCard.querySelector('.submenu');
531
- if (otherSubmenu && otherSubmenu.classList.contains('show')) {
532
- otherSubmenu.classList.remove('show');
533
- otherCard.classList.remove('submenu-open');
534
- }
535
- }
536
- });
537
- const submenu = card.querySelector('.submenu');
538
- if (submenu) {
539
- const wasShown = submenu.classList.contains('show');
540
- submenu.classList.toggle('show');
541
- card.classList.toggle('submenu-open');
542
- if (!wasShown) {
543
- card.style.transform = 'translateY(-5px)';
544
- } else {
545
- card.style.transform = 'none';
546
- }
547
- }
548
- });
549
- });
550
- document.addEventListener('click', event => {
551
- if (!event.target.closest('.service-card')) {
552
- serviceCards.forEach(card => {
553
- const submenu = card.querySelector('.submenu');
554
- if (submenu && submenu.classList.contains('show')) {
555
- submenu.classList.remove('show');
556
- card.classList.remove('submenu-open');
557
- }
558
- });
559
- }
560
- });
561
- const submenuLinks = document.querySelectorAll('.submenu li a');
562
- submenuLinks.forEach(link => {
563
- link.addEventListener('click', e => {
564
- e.preventDefault();
565
- const form = link.parentElement.querySelector('.issue-form');
566
- form.classList.toggle('show');
567
- });
568
- });
569
- const issueForms = document.querySelectorAll('.issue-form');
570
- issueForms.forEach(form => {
571
- form.addEventListener('submit', e => {
572
- const serviceType = form.parentElement.querySelector('a').textContent;
573
- handleFormSubmit(e, serviceType);
574
- });
575
- });
576
- });</script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>&#xa9; 2025 HAMBI. Tous droits r&#xe9;serv&#xe9;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>