diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 3cb0394..06ac5c2 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -2,3 +2,4 @@
+ \ No newline at end of file diff --git a/frontend/src/app/app.component.scss b/frontend/src/app/app.component.scss index 1f9ece3..cb1b034 100644 --- a/frontend/src/app/app.component.scss +++ b/frontend/src/app/app.component.scss @@ -1,9 +1,14 @@ :host { display: flex; flex-direction: column; + flex: 1; app-header { width: 100%; - margin-bottom: 1em; + } + + main { + flex: 1; + padding: 1em 0; } } \ No newline at end of file diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index 1de2db4..09c158d 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -2,6 +2,7 @@ import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { HeaderComponent } from './components/header/header.component'; +import { FooterComponent } from './components/footer/footer.component'; @Component({ selector: 'app-root', @@ -9,7 +10,8 @@ import { HeaderComponent } from './components/header/header.component'; imports: [ CommonModule, RouterOutlet, - HeaderComponent + HeaderComponent, + FooterComponent ], templateUrl: './app.component.html', styleUrl: './app.component.scss' diff --git a/frontend/src/app/components/footer/footer.component.html b/frontend/src/app/components/footer/footer.component.html new file mode 100644 index 0000000..b1abe60 --- /dev/null +++ b/frontend/src/app/components/footer/footer.component.html @@ -0,0 +1,15 @@ +
+ + © + + 2027 - 2024 Tous droits réservés + <version> + + favorite + +
+
+ menu_book + - + Développements réalisés par Florian THIERRY +
\ No newline at end of file diff --git a/frontend/src/app/components/footer/footer.component.scss b/frontend/src/app/components/footer/footer.component.scss new file mode 100644 index 0000000..2c079ba --- /dev/null +++ b/frontend/src/app/components/footer/footer.component.scss @@ -0,0 +1,28 @@ +:host { + background-color: #3f51b5; + color: rgba(255,255,255,.6); + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + padding: .5em; + font-size: 1.1em; + + div { + display: flex; + flex-direction: row; + align-items: center; + + a { + text-decoration: none; + color: rgba(255,255,255,.6); + } + + mat-icon { + font-size: 1em; + display: flex; + justify-content: center; + align-items: center; + } + } +} \ No newline at end of file diff --git a/frontend/src/app/components/footer/footer.component.spec.ts b/frontend/src/app/components/footer/footer.component.spec.ts new file mode 100644 index 0000000..4647de8 --- /dev/null +++ b/frontend/src/app/components/footer/footer.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [FooterComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/src/app/components/footer/footer.component.ts b/frontend/src/app/components/footer/footer.component.ts new file mode 100644 index 0000000..1276ffa --- /dev/null +++ b/frontend/src/app/components/footer/footer.component.ts @@ -0,0 +1,14 @@ +import { Component } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; +import { RouterModule } from '@angular/router'; + +@Component({ + selector: 'app-footer', + standalone: true, + imports: [MatIconModule, RouterModule], + templateUrl: './footer.component.html', + styleUrl: './footer.component.scss' +}) +export class FooterComponent { + +} diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss index ce7e640..0837fd5 100644 --- a/frontend/src/styles.scss +++ b/frontend/src/styles.scss @@ -5,4 +5,6 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; background-color: #fafafa; + display: flex; + flex-direction: column; }