Skip to content

Commit 7c7a1f0

Browse files
committed
Add services/contact components
1 parent 2ee959d commit 7c7a1f0

10 files changed

+81
-5
lines changed

src/app/app.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class="container mx-auto flex justify-between items-center">
33
<a href="#" class="text-white text-2xl font-semibold">Logo</a>
44
<ul class="flex space-x-4">
5-
<li><a href="#" class="text-white hover:text-gray-300">Home</a></li>
6-
<li><a href="#" routerLink="/about" class="text-white hover:text-gray-300">About</a></li>
7-
<li><a href="#" class="text-white hover:text-gray-300">Services</a></li>
8-
<li><a href="#" class="text-white hover:text-gray-300">Contact</a></li>
5+
<li><a href="/" class="text-white hover:text-gray-300">Home</a></li>
6+
<li><a href="/about" routerLink="/about" class="text-white hover:text-gray-300">About</a></li>
7+
<li><a href="/services" class="text-white hover:text-gray-300">Services</a></li>
8+
<li><a href="/contact" class="text-white hover:text-gray-300">Contact</a></li>
99
</ul>
1010
</div>
1111
</nav>

src/app/app.routes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { Routes } from '@angular/router';
22
import { AboutPageComponent } from './about-page/about-page.component';
33
import { HomePageComponent } from './home-page/home-page.component';
4+
import { ServicesPageComponent } from './services-page/services-page.component';
5+
import { ContactPageComponent } from './contact-page/contact-page.component';
46

57
export const routes: Routes = [
68
{path: '', component: HomePageComponent},
7-
{path: 'about', component: AboutPageComponent}
9+
{path: 'about', component: AboutPageComponent},
10+
{path: 'services', component: ServicesPageComponent},
11+
{path: 'contact', component: ContactPageComponent}
812
];

src/app/contact-page/contact-page.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>contact-page works!</p>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { ContactPageComponent } from './contact-page.component';
4+
5+
describe('ContactPageComponent', () => {
6+
let component: ContactPageComponent;
7+
let fixture: ComponentFixture<ContactPageComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [ContactPageComponent]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(ContactPageComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-contact-page',
5+
standalone: true,
6+
imports: [],
7+
templateUrl: './contact-page.component.html',
8+
styleUrl: './contact-page.component.css'
9+
})
10+
export class ContactPageComponent {
11+
12+
}

src/app/services-page/services-page.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>services-page works!</p>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { ServicesPageComponent } from './services-page.component';
4+
5+
describe('ServicesPageComponent', () => {
6+
let component: ServicesPageComponent;
7+
let fixture: ComponentFixture<ServicesPageComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [ServicesPageComponent]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(ServicesPageComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-services-page',
5+
standalone: true,
6+
imports: [],
7+
templateUrl: './services-page.component.html',
8+
styleUrl: './services-page.component.css'
9+
})
10+
export class ServicesPageComponent {
11+
12+
}

0 commit comments

Comments
 (0)