diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 4ad3e88617de7993fb074fa3ac938dcd0aadc4e7..9d221fe1ae6014f8bc18f6578c4e33bbe1aa4e4d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -11,10 +11,11 @@ import { StructureListComponent } from './structure-list/structure-list.componen import { FooterComponent } from './footer/footer.component'; import { HeaderComponent } from './header/header.component'; import { SharedModule } from './shared/shared.module'; +import { StructureModule } from './structure/structure.module'; @NgModule({ declarations: [AppComponent, HeaderComponent, FooterComponent, HomeComponent, StructureListComponent], - imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule], + imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule, StructureModule], providers: [{ provide: LOCALE_ID, useValue: 'fr' }, CustomBreakPointsProvider], bootstrap: [AppComponent], }) diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 4f2ba48bcf5fce48d7690c8b79df492311eb776a..a1abb68dc1dcfbe63ba14ed25bec0d29efd8b227 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -1,5 +1,5 @@ <div class="content-container"> <div class="section-container"> - <p>Home works!</p> + <app-structure></app-structure> </div> </div> diff --git a/src/app/structure/components/card/card.component.html b/src/app/structure/components/card/card.component.html new file mode 100644 index 0000000000000000000000000000000000000000..8071bfccea6a16302dadf225be43fbf49b30a651 --- /dev/null +++ b/src/app/structure/components/card/card.component.html @@ -0,0 +1 @@ +<p>card wsdorks!</p> diff --git a/src/app/structure/components/card/card.component.scss b/src/app/structure/components/card/card.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/structure/components/card/card.component.spec.ts b/src/app/structure/components/card/card.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..3093fd5a30b9312cf88096bb93f28699e5be088f --- /dev/null +++ b/src/app/structure/components/card/card.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CardComponent } from './card.component'; + +describe('CardComponent', () => { + let component: CardComponent; + let fixture: ComponentFixture<CardComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ CardComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(CardComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/structure/components/card/card.component.ts b/src/app/structure/components/card/card.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..07a9ab07eff2b4b7ff193ff9906138d2f43366cd --- /dev/null +++ b/src/app/structure/components/card/card.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-card', + templateUrl: './card.component.html', + styleUrls: ['./card.component.scss'] +}) +export class CardComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/structure/components/recherche/recherche.component.html b/src/app/structure/components/recherche/recherche.component.html new file mode 100644 index 0000000000000000000000000000000000000000..63c7b1a72d082d00bfd6283b0c0aef923754e111 --- /dev/null +++ b/src/app/structure/components/recherche/recherche.component.html @@ -0,0 +1 @@ +<p>recherche works!</p> diff --git a/src/app/structure/components/recherche/recherche.component.scss b/src/app/structure/components/recherche/recherche.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/structure/components/recherche/recherche.component.spec.ts b/src/app/structure/components/recherche/recherche.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..e38e4d4e837b3cae1b8b7ac52cc98cb1ca9b97a3 --- /dev/null +++ b/src/app/structure/components/recherche/recherche.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RechercheComponent } from './recherche.component'; + +describe('RechercheComponent', () => { + let component: RechercheComponent; + let fixture: ComponentFixture<RechercheComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ RechercheComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(RechercheComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/structure/components/recherche/recherche.component.ts b/src/app/structure/components/recherche/recherche.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..b37a52c87e59af0699edd95fec9dbf61a2422bb1 --- /dev/null +++ b/src/app/structure/components/recherche/recherche.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-recherche', + templateUrl: './recherche.component.html', + styleUrls: ['./recherche.component.scss'] +}) +export class RechercheComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/structure/services/structure.service.spec.ts b/src/app/structure/services/structure.service.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..d44ef8feba438616c50f60464ec0476b93c88c74 --- /dev/null +++ b/src/app/structure/services/structure.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { StructureService } from './structure.service'; + +describe('StructureService', () => { + let service: StructureService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(StructureService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/structure/services/structure.service.ts b/src/app/structure/services/structure.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a09d6adbdfb3567211e8223e541f32837311e69 --- /dev/null +++ b/src/app/structure/services/structure.service.ts @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class StructureService { + + constructor() { } +} diff --git a/src/app/structure/structure.component.html b/src/app/structure/structure.component.html new file mode 100644 index 0000000000000000000000000000000000000000..8688da6ce216784970848b727c607389c4312085 --- /dev/null +++ b/src/app/structure/structure.component.html @@ -0,0 +1,2 @@ +<app-card></app-card> +<app-recherche></app-recherche> diff --git a/src/app/structure/structure.component.scss b/src/app/structure/structure.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/structure/structure.component.spec.ts b/src/app/structure/structure.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..47da9d53d240b0cfd8f22740bf94dfa47b63eae7 --- /dev/null +++ b/src/app/structure/structure.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { StructureComponent } from './structure.component'; + +describe('StructureComponent', () => { + let component: StructureComponent; + let fixture: ComponentFixture<StructureComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ StructureComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(StructureComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/structure/structure.component.ts b/src/app/structure/structure.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..c74423ddcaed92178392097388a60071b824682c --- /dev/null +++ b/src/app/structure/structure.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-structure', + templateUrl: './structure.component.html', + styleUrls: ['./structure.component.scss'] +}) +export class StructureComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/structure/structure.module.ts b/src/app/structure/structure.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..902f040cd0053b792fbdd380f5c06fd593dfe988 --- /dev/null +++ b/src/app/structure/structure.module.ts @@ -0,0 +1,12 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { StructureComponent } from './structure.component'; +import { CardComponent } from './components/card/card.component'; +import { RechercheComponent } from './components/recherche/recherche.component'; + +@NgModule({ + declarations: [StructureComponent, CardComponent, RechercheComponent], + imports: [CommonModule], + exports: [StructureComponent], +}) +export class StructureModule {}