From a12f66e594465384e0448c336a73675637eafd06 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sun, 14 Dec 2025 20:29:15 -0300 Subject: [PATCH] feat: search bar --- .../contact-search-bar.html | 5 ++++ .../contact-search-bar.scss | 14 ++++++++++ .../contact-search-bar.spec.ts | 26 +++++++++++++++++++ .../contact-search-bar/contact-search-bar.ts | 13 ++++++++++ 4 files changed, 58 insertions(+) create mode 100644 src/app/components/contact-search-bar/contact-search-bar.html create mode 100644 src/app/components/contact-search-bar/contact-search-bar.scss create mode 100644 src/app/components/contact-search-bar/contact-search-bar.spec.ts create mode 100644 src/app/components/contact-search-bar/contact-search-bar.ts diff --git a/src/app/components/contact-search-bar/contact-search-bar.html b/src/app/components/contact-search-bar/contact-search-bar.html new file mode 100644 index 0000000..83b3e49 --- /dev/null +++ b/src/app/components/contact-search-bar/contact-search-bar.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/app/components/contact-search-bar/contact-search-bar.scss b/src/app/components/contact-search-bar/contact-search-bar.scss new file mode 100644 index 0000000..1482390 --- /dev/null +++ b/src/app/components/contact-search-bar/contact-search-bar.scss @@ -0,0 +1,14 @@ +.search-bar { + width: 100%; + height: 4rem; + padding: 1rem; + border: 1px solid #e1e1e1; + margin: 2rem 0; +} + +.shadow { + -webkit-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.7); + -moz-box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.7); + box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5); + border-radius: 10px; +} \ No newline at end of file diff --git a/src/app/components/contact-search-bar/contact-search-bar.spec.ts b/src/app/components/contact-search-bar/contact-search-bar.spec.ts new file mode 100644 index 0000000..4a1cf56 --- /dev/null +++ b/src/app/components/contact-search-bar/contact-search-bar.spec.ts @@ -0,0 +1,26 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ContactSearchBar } from './contact-search-bar'; +import { STRINGS_INJECTOR } from '../../app.config'; +import { strings } from '../../strings'; + +describe('ContactSearchBar', () => { + let component: ContactSearchBar; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ContactSearchBar], + providers: [{provide: STRINGS_INJECTOR, useValue: strings}] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ContactSearchBar); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/contact-search-bar/contact-search-bar.ts b/src/app/components/contact-search-bar/contact-search-bar.ts new file mode 100644 index 0000000..5645058 --- /dev/null +++ b/src/app/components/contact-search-bar/contact-search-bar.ts @@ -0,0 +1,13 @@ +import { Component, inject, output } from '@angular/core'; +import { STRINGS_INJECTOR } from '../../app.config'; + +@Component({ + selector: 'app-contact-search-bar', + imports: [], + templateUrl: './contact-search-bar.html', + styleUrl: './contact-search-bar.scss', +}) +export class ContactSearchBar { + contactSearch = output() + protected readonly strings = inject(STRINGS_INJECTOR); +}