From 53cbd645752ec3fa0a40ccfee3a49e073cd3679d Mon Sep 17 00:00:00 2001 From: 4gray Date: Wed, 26 Nov 2025 21:25:44 +0100 Subject: [PATCH] feat(header): add home styling, search output and host binding Enhance the header component to support a distinct "home" appearance and emit search updates. Add a HostBinding that toggles a home-header class from the isHome flag so styles can target the home state. Expose a searchQuery output and wire an onSearchQueryUpdate method to emit the search text, enabling parent components to react to user searches. Refactor imports to include HostBinding and output. Tidy toolbar metrics and adjust element sizing for a compact brand block and pulsing logo. Introduce comprehensive SCSS for the home header: - gradient background, animated glow overlay, and edge accent - brand block styling with blur, border, hover states and box-shadow - logo sizing, pulse animation and responsive tweaks - reduced toolbar height and overall visual polish These changes separate home-specific styling from the default header appearance and provide a programmatic hook for search interactions. --- apps/web/src/app/home/home.component.html | 6 +- apps/web/src/app/home/home.component.ts | 10 +- .../components/header/header.component.html | 35 +- .../components/header/header.component.scss | 347 ++++++++++++++++-- .../components/header/header.component.ts | 10 +- .../recent-playlists.component.html | 12 - .../recent-playlists.component.scss | 21 +- .../recent-playlists.component.ts | 26 +- 8 files changed, 379 insertions(+), 88 deletions(-) diff --git a/apps/web/src/app/home/home.component.html b/apps/web/src/app/home/home.component.html index a7574a9b1..5566a0b05 100644 --- a/apps/web/src/app/home/home.component.html +++ b/apps/web/src/app/home/home.component.html @@ -1,5 +1,9 @@ + - diff --git a/apps/web/src/app/home/home.component.ts b/apps/web/src/app/home/home.component.ts index c46fe0596..e71b073dc 100644 --- a/apps/web/src/app/home/home.component.ts +++ b/apps/web/src/app/home/home.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, signal } from '@angular/core'; import { TranslatePipe } from '@ngx-translate/core'; import { RecentPlaylistsComponent } from 'components'; import { HeaderComponent } from '../shared/components/header/header.component'; @@ -9,4 +9,10 @@ import { HeaderComponent } from '../shared/components/header/header.component'; styleUrls: ['./home.component.scss'], imports: [HeaderComponent, RecentPlaylistsComponent, TranslatePipe], }) -export class HomeComponent {} +export class HomeComponent { + searchQuery = signal(''); + + onSearchQueryChange(query: string): void { + this.searchQuery.set(query); + } +} diff --git a/apps/web/src/app/shared/components/header/header.component.html b/apps/web/src/app/shared/components/header/header.component.html index 8c6938a93..2056884f0 100644 --- a/apps/web/src/app/shared/components/header/header.component.html +++ b/apps/web/src/app/shared/components/header/header.component.html @@ -1,16 +1,29 @@ - - -
-
{{ title() }}
-
{{ subtitle() }}
+ +
+
+ iptvnator logo +
+
+
{{ title() }}
+
+ @if (isHome) { +
+ search + +