From cb62ad1605ebbb068bc053db5035b2a46d124b32 Mon Sep 17 00:00:00 2001 From: maxencejouannet Date: Wed, 28 May 2025 14:22:40 +0200 Subject: [PATCH] tutorial --- .../leaflet-map/leaflet-map.component.ts | 5 ++++- src/app/components/navbar/navbar.component.html | 9 +++++---- src/app/components/navbar/navbar.component.ts | 3 ++- src/app/services/intro/intro.service.ts | 4 ++-- src/styles.css | 14 ++------------ 5 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/app/components/leaflet-map/leaflet-map.component.ts b/src/app/components/leaflet-map/leaflet-map.component.ts index 342b408..addd3f0 100644 --- a/src/app/components/leaflet-map/leaflet-map.component.ts +++ b/src/app/components/leaflet-map/leaflet-map.component.ts @@ -15,6 +15,7 @@ import { MapReloadService } from '../../services/map-reload/map-reload.service'; import { PinService } from '../../services/pin/pin.service'; import { PinMarkerComponent } from '../pin-marker/pin-marker.component'; import { ModalService } from '../../services/modal/modal.service'; +import { IntroService } from '../../services/intro/intro.service'; @Component({ selector: 'app-leaflet-map', @@ -43,7 +44,8 @@ export class LeafletMapComponent implements OnInit { private route: ActivatedRoute, private router: Router, private modalService: ModalService, - private mapReloadService: MapReloadService + private mapReloadService: MapReloadService, + private introService: IntroService ) {} ngOnInit(): void { @@ -66,6 +68,7 @@ export class LeafletMapComponent implements OnInit { } } }); + this.introService.startIntro(); } private initializeMap(): void { diff --git a/src/app/components/navbar/navbar.component.html b/src/app/components/navbar/navbar.component.html index 3b3f9c4..8b69c34 100644 --- a/src/app/components/navbar/navbar.component.html +++ b/src/app/components/navbar/navbar.component.html @@ -167,7 +167,7 @@ diff --git a/src/app/components/navbar/navbar.component.ts b/src/app/components/navbar/navbar.component.ts index a29576d..33af5dd 100644 --- a/src/app/components/navbar/navbar.component.ts +++ b/src/app/components/navbar/navbar.component.ts @@ -63,7 +63,7 @@ export class NavbarComponent implements OnInit { private route: ActivatedRoute, private localStorageService: LocalStorageService, private pinService: PinService, - private fb: FormBuilder + private fb: FormBuilder, ) { this.searchForm = this.fb.group({ searchControl: new FormControl(''), @@ -106,6 +106,7 @@ export class NavbarComponent implements OnInit { .subscribe((filteredPins) => { this.pinsFiltered = filteredPins; }); + } filterPins(searchTerm: string): Pin[] { diff --git a/src/app/services/intro/intro.service.ts b/src/app/services/intro/intro.service.ts index d4d8ded..d827e5d 100644 --- a/src/app/services/intro/intro.service.ts +++ b/src/app/services/intro/intro.service.ts @@ -16,7 +16,7 @@ export class IntroService { intro: 'Welcome to the web let me show you around!' }, { - element: '#accueil', + element: '#timeline', intro: 'This is the logo of Memory Map.' }, { @@ -28,7 +28,7 @@ export class IntroService { intro: 'This button toggles the mobile navigation menu.' }, { - element: '#amis', + element: '#friend', intro: 'Here is the main navigation menu.' }, ], diff --git a/src/styles.css b/src/styles.css index aa5833a..6b150c1 100644 --- a/src/styles.css +++ b/src/styles.css @@ -35,19 +35,9 @@ } } -/* .custom-center-tooltip { - position: fixed !important; - top: 50% !important; - left: 50% !important; - transform: translate(-50%, -50%) !important; - max-width: 400px; - background-color: white; - color: black; - border-radius: 12px; - padding: 20px; - box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); +.custom-center-tooltip { z-index: 9999; } - */ + \ No newline at end of file