diff --git a/src/app/participant-content-carousel-page/participant-content-carousel-page.component.html b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.html new file mode 100644 index 0000000000000000000000000000000000000000..36032502c20c8dd276383d02636b1459e977fc8f --- /dev/null +++ b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.html @@ -0,0 +1,18 @@ +<div fxLayout="column" fxLayoutAlign="start" fxLayoutGap="20px" fxFill> + <div fxLayout="row" fxLayoutAlign="center"> + <mat-tab-group> + <!-- + <mat-tab *ngFor="let content of contents"> + <app-participant-choice-content *ngIf="content.format === ContentType.CHOICE"></app-participant-choice-content> + <app-participant-text-content *ngIf="content.format === ContentType.TEXT"></app-participant-text-content> + </mat-tab> + --> + <mat-tab label="Text"> + <app-participant-text-content></app-participant-text-content> + </mat-tab> + <mat-tab label="Choice"> + <app-participant-choice-content></app-participant-choice-content> + </mat-tab> + </mat-tab-group> + </div> +</div> diff --git a/src/app/participant-content-carousel-page/participant-content-carousel-page.component.scss b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..c006b4cc97d11ab5409c1c6a4310dc580a2a6beb --- /dev/null +++ b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.scss @@ -0,0 +1,8 @@ +mat-tab-group { + width: 100%; + max-width: 800px; +} + +mat-tab-body { + padding: 20px; +} diff --git a/src/app/participant-content-carousel-page/participant-content-carousel-page.component.spec.ts b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..6719ec8eee8066dd6204c31b0e0484af2d4dd197 --- /dev/null +++ b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ParticipantContentCarouselPageComponent } from './participant-content-carousel-page.component'; + +describe('ParticipantContentCarouselPageComponent', () => { + let component: ParticipantContentCarouselPageComponent; + let fixture: ComponentFixture<ParticipantContentCarouselPageComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ParticipantContentCarouselPageComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ParticipantContentCarouselPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/participant-content-carousel-page/participant-content-carousel-page.component.ts b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..5fa82c6774064920f75d15413c7a26aba1acdf7f --- /dev/null +++ b/src/app/participant-content-carousel-page/participant-content-carousel-page.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; +import { Content } from '../content'; +import { ContentType } from '../content-type'; + +@Component({ + selector: 'app-participant-content-carousel-page', + templateUrl: './participant-content-carousel-page.component.html', + styleUrls: ['./participant-content-carousel-page.component.scss'] +}) +export class ParticipantContentCarouselPageComponent implements OnInit { + ContentType: ContentType; + + contents: Content[]; + + constructor() { + } + + ngOnInit() { + } + +}