From 532d9424a2980aacb406592428fa2daccb0a89cd Mon Sep 17 00:00:00 2001 From: X4Lo Date: Tue, 10 Sep 2024 19:01:32 +0100 Subject: [PATCH] add websites list to navbar --- .../components/navbar/navbar.component.css | 3 + .../components/navbar/navbar.component.html | 102 ++++-------------- .../components/navbar/navbar.component.ts | 13 ++- 3 files changed, 36 insertions(+), 82 deletions(-) diff --git a/frontend/src/app/core/components/navbar/navbar.component.css b/frontend/src/app/core/components/navbar/navbar.component.css index e69de29..b5a748b 100644 --- a/frontend/src/app/core/components/navbar/navbar.component.css +++ b/frontend/src/app/core/components/navbar/navbar.component.css @@ -0,0 +1,3 @@ +.app-wrapper { + height: 100%; +} \ No newline at end of file diff --git a/frontend/src/app/core/components/navbar/navbar.component.html b/frontend/src/app/core/components/navbar/navbar.component.html index c7a18de..165d7e9 100644 --- a/frontend/src/app/core/components/navbar/navbar.component.html +++ b/frontend/src/app/core/components/navbar/navbar.component.html @@ -187,32 +187,33 @@
-
+
- +
-

Gmail

+

TMDB

-
+
- +
-

Skype

+

IMDB

-
+
- +
-

Slack

+

Rotten Tomatoes

@@ -220,102 +221,41 @@
-
+
- +
-

YouTube

+

The TvDB

-
+
- +
-

Google

+

TPDb

- +
-

Instagram

+

FANART.Tv

-
-
-
-
- -
-
-

Spotify

-
-
-
-
-
-
- -
-
-

Yahoo

-
-
-
-
-
-
- -
-
-

Facebook

-
-
-
-
-
-
-
-
- -
-
-

Figma

-
-
-
-
-
-
- -
-
-

Paypal

-
-
-
-
-
-
- -
-
-

Photo

-
-
-
-
diff --git a/frontend/src/app/core/components/navbar/navbar.component.ts b/frontend/src/app/core/components/navbar/navbar.component.ts index 793df41..03e1f0d 100644 --- a/frontend/src/app/core/components/navbar/navbar.component.ts +++ b/frontend/src/app/core/components/navbar/navbar.component.ts @@ -1,4 +1,10 @@ -import { Component, ElementRef, HostListener, OnInit, ViewChild } from '@angular/core'; +import { + Component, + ElementRef, + HostListener, + OnInit, + ViewChild, +} from '@angular/core'; import { ToggleService } from '../../services/toggle.service'; import { Location } from '@angular/common'; import { Router } from '@angular/router'; @@ -33,6 +39,7 @@ export class NavbarComponent implements OnInit { ) .subscribe((value) => { this.searchTerm = value; + // ! passing the search term to child component (search popup) this.searchPopupComponent.triggerSearch(value); }); } @@ -58,6 +65,10 @@ export class NavbarComponent implements OnInit { } } + openLink(link: string) { + window.open(link, '_blank'); + } + @HostListener('document:click', ['$event']) clickout(event: { target: any }) { if (