From 2039471246efebd7d7ef8736802397e61799a7a0 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 25 Aug 2021 20:55:27 -0400 Subject: [PATCH] Added contact us page, including generated contact component --- src/app/app.component.html | 1 + src/app/app.module.ts | 4 ++- .../components/contact/contact.component.css | 0 .../components/contact/contact.component.html | 15 +++++++++++ .../contact/contact.component.spec.ts | 25 +++++++++++++++++++ .../components/contact/contact.component.ts | 15 +++++++++++ 6 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 src/app/components/contact/contact.component.css create mode 100644 src/app/components/contact/contact.component.html create mode 100644 src/app/components/contact/contact.component.spec.ts create mode 100644 src/app/components/contact/contact.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 7349e4c..522f146 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -4,4 +4,5 @@
{{recipe.instructions}}
--> + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ef49286..fc2abd0 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -10,6 +10,7 @@ import { LoginComponent } from './components/login/login.component'; import { HeaderComponent } from './components/header/header.component'; import { RouterModule, Routes } from '@angular/router'; import { AboutComponent } from './components/about/about.component'; +import { ContactComponent } from './components/contact/contact.component'; const approutes: Routes = [ {path: '', component: AppComponent} @@ -22,7 +23,8 @@ const approutes: Routes = [ RecipeComponent, LoginComponent, HeaderComponent, - AboutComponent + AboutComponent, + ContactComponent ], imports: [ BrowserModule, diff --git a/src/app/components/contact/contact.component.css b/src/app/components/contact/contact.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/contact/contact.component.html b/src/app/components/contact/contact.component.html new file mode 100644 index 0000000..c1c1732 --- /dev/null +++ b/src/app/components/contact/contact.component.html @@ -0,0 +1,15 @@ +
+ Contact us +
+
+
+
+

+
+

+
+
+ +
+
+ diff --git a/src/app/components/contact/contact.component.spec.ts b/src/app/components/contact/contact.component.spec.ts new file mode 100644 index 0000000..2f386db --- /dev/null +++ b/src/app/components/contact/contact.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ContactComponent } from './contact.component'; + +describe('ContactComponent', () => { + let component: ContactComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ ContactComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(ContactComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/contact/contact.component.ts b/src/app/components/contact/contact.component.ts new file mode 100644 index 0000000..bdb4bda --- /dev/null +++ b/src/app/components/contact/contact.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-contact', + templateUrl: './contact.component.html', + styleUrls: ['./contact.component.css'] +}) +export class ContactComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}