From 28ef0cce796d6197822db2e7e7cecad6bd35b5dc Mon Sep 17 00:00:00 2001 From: maxime Date: Thu, 9 Apr 2026 09:35:54 +0200 Subject: [PATCH] modification icone sidebar --- src/app/pages/search/searchform/searchform.ts | 2 +- .../search/searchresults/searchresults.html | 33 ++++++++++++++++++- src/app/shared/sidebar/sidebar.html | 21 +++++++----- 3 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/app/pages/search/searchform/searchform.ts b/src/app/pages/search/searchform/searchform.ts index bdaf7b6..126b7f2 100644 --- a/src/app/pages/search/searchform/searchform.ts +++ b/src/app/pages/search/searchform/searchform.ts @@ -10,7 +10,7 @@ import { NAPOD } from '../../../services/napod'; styleUrl: './searchform.css', }) export class Searchform { - private readonly nasaApi = inject(NAPOD); + private readonly nasaApi = inject(NAPOD); private readonly router = inject(Router) searchResults = signal(null) searchString=signal(''); diff --git a/src/app/pages/search/searchresults/searchresults.html b/src/app/pages/search/searchresults/searchresults.html index 0cb3e89..df5bcf5 100644 --- a/src/app/pages/search/searchresults/searchresults.html +++ b/src/app/pages/search/searchresults/searchresults.html @@ -1 +1,32 @@ -

searchresults works!

+@if(searchResults()!==null && searchResults()!.collection.items.length==0){ +
+

No results for this search

+
+} + +@if(searchResults()!==null && searchResults()!.collection.items.length!==0){ +
+
    + +
  • Results
  • + @for(el of searchResults()!.collection.items; track el.data[0].nasa_id){ +
  • + +
    +
    +
    {{el.data[0].title}}
    +
    Photographer: {{el.data[0].photographer}}
    +

    + {{el.data[0].description}} +

    +
    + +
  • + } + +
+
+ } + \ No newline at end of file diff --git a/src/app/shared/sidebar/sidebar.html b/src/app/shared/sidebar/sidebar.html index e66b994..bf36d03 100644 --- a/src/app/shared/sidebar/sidebar.html +++ b/src/app/shared/sidebar/sidebar.html @@ -15,22 +15,25 @@ \ No newline at end of file