Add footer.
This commit is contained in:
parent
ba79409d79
commit
b8110e893a
@ -5,3 +5,4 @@
|
|||||||
<router-outlet />
|
<router-outlet />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<app-footer />
|
||||||
|
|||||||
@ -3,10 +3,11 @@ import { RouterOutlet } from '@angular/router';
|
|||||||
import { Header } from './header/header';
|
import { Header } from './header/header';
|
||||||
import { Nav } from './nav/nav';
|
import { Nav } from './nav/nav';
|
||||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||||
|
import { Footer } from './footer/footer';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet, Header, Nav, FontAwesomeModule],
|
imports: [RouterOutlet, Header, Nav, FontAwesomeModule, Footer],
|
||||||
templateUrl: './app.html',
|
templateUrl: './app.html',
|
||||||
styleUrl: './app.css',
|
styleUrl: './app.css',
|
||||||
})
|
})
|
||||||
|
|||||||
6
src/app/footer/footer.css
Normal file
6
src/app/footer/footer.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
footer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
3
src/app/footer/footer.html
Normal file
3
src/app/footer/footer.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<footer>
|
||||||
|
<p>Copyright 2025 Jesse R. Brault. All rights reserved.</p>
|
||||||
|
</footer>
|
||||||
22
src/app/footer/footer.spec.ts
Normal file
22
src/app/footer/footer.spec.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { Footer } from './footer';
|
||||||
|
|
||||||
|
describe('Footer', () => {
|
||||||
|
let component: Footer;
|
||||||
|
let fixture: ComponentFixture<Footer>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [Footer],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(Footer);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
await fixture.whenStable();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
9
src/app/footer/footer.ts
Normal file
9
src/app/footer/footer.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-footer',
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './footer.html',
|
||||||
|
styleUrl: './footer.css',
|
||||||
|
})
|
||||||
|
export class Footer {}
|
||||||
Loading…
Reference in New Issue
Block a user