diff --git a/src/app/pages/search/search.css b/src/app/pages/search/search.css
deleted file mode 100644
index 1f42268..0000000
--- a/src/app/pages/search/search.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.searchcontainer {
- width:80vw;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
-
-}
-
-.inputSearch {
- margin-bottom: 1rem;
- display: flex;
- flex-direction: row;
-}
\ No newline at end of file
diff --git a/src/app/pages/search/search.html b/src/app/pages/search/search.html
deleted file mode 100644
index 0637513..0000000
--- a/src/app/pages/search/search.html
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-@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}}
-
-
-
-
- }
-
-
-
- }
-
diff --git a/src/app/pages/search/search.spec.ts b/src/app/pages/search/search.spec.ts
deleted file mode 100644
index 1b71a5d..0000000
--- a/src/app/pages/search/search.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { Search } from './search';
-
-describe('Search', () => {
- let component: Search;
- let fixture: ComponentFixture;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [Search]
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(Search);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/pages/search/search.ts b/src/app/pages/search/search.ts
deleted file mode 100644
index 77f89a4..0000000
--- a/src/app/pages/search/search.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { Component, inject, signal } from '@angular/core';
-import { NAPOD } from '../../services/napod';
-import { NasaApi } from '../../interfaces/nasa-api';
-import { FormsModule, NgModel } from '@angular/forms';
-import { Router } from '@angular/router';
-
-@Component({
- selector: 'app-search',
- imports: [FormsModule],
- templateUrl: './search.html',
- styleUrl: './search.css'
-})
-export class Search {
- private readonly nasaApi = inject(NAPOD);
- private readonly router = inject(Router)
- searchResults = signal(null)
- searchString=signal('');
-
- onSubmit() {
- this.nasaApi.searchForVideos(this.searchString()).subscribe({
- next: (data)=>{this.searchResults.set(data);
- console.log(data.collection);
- },
- error: error =>{console.log(error);
- }
- })
- }
-
- onClick(nasaId: string){
- this.router.navigate(['/video/'+nasaId])
- }
-
- updateSearch(event: Event){
- console.log(this.searchString());
- const target = event.target as HTMLInputElement;
- this.searchString.set(target.value)
- }
-
-
-}