diff --git a/src/app/components/simple-layout/simple-layout.html b/src/app/components/simple-layout/simple-layout.html new file mode 100644 index 0000000..00d229a --- /dev/null +++ b/src/app/components/simple-layout/simple-layout.html @@ -0,0 +1,4 @@ +
+

{{title()|translate|titlecase}}

+ +
\ No newline at end of file diff --git a/src/app/components/simple-layout/simple-layout.scss b/src/app/components/simple-layout/simple-layout.scss new file mode 100644 index 0000000..830bc27 --- /dev/null +++ b/src/app/components/simple-layout/simple-layout.scss @@ -0,0 +1,3 @@ +.content { + padding: 0px 16px; +} \ No newline at end of file diff --git a/src/app/components/simple-layout/simple-layout.spec.ts b/src/app/components/simple-layout/simple-layout.spec.ts new file mode 100644 index 0000000..1e19532 --- /dev/null +++ b/src/app/components/simple-layout/simple-layout.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SimpleLayout } from './simple-layout'; +import { provideTranslateService } from '@ngx-translate/core'; + +describe('SimpleLayout', () => { + let component: SimpleLayout; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [SimpleLayout], + providers: [provideTranslateService({})], + }) + .compileComponents(); + + fixture = TestBed.createComponent(SimpleLayout); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/simple-layout/simple-layout.ts b/src/app/components/simple-layout/simple-layout.ts new file mode 100644 index 0000000..0bd2e1a --- /dev/null +++ b/src/app/components/simple-layout/simple-layout.ts @@ -0,0 +1,13 @@ +import { TitleCasePipe } from '@angular/common'; +import { Component, input } from '@angular/core'; +import { TranslatePipe } from '@ngx-translate/core'; + +@Component({ + selector: 'app-simple-layout', + imports: [TranslatePipe, TitleCasePipe], + templateUrl: './simple-layout.html', + styleUrl: './simple-layout.scss', +}) +export class SimpleLayout { + readonly title = input(''); +}