Commit ef7a260a authored by Romain DELEAU's avatar Romain DELEAU

add role-occurence and supplementary-task

parent 08db963c
......@@ -136,11 +136,13 @@
</div>
<div class="container-sider">
<app-comments class="container-sider-element"></app-comments>
<app-rules class="container-sider-element"></app-rules>
<app-role-occurence class="container-sider-element"></app-role-occurence>
<app-supplementary-task class="container-sider-element"></app-supplementary-task>
<app-repeat class="container-sider-element"></app-repeat>
<app-interupt class="container-sider-element"></app-interupt>
<app-characters class="container-sider-element"></app-characters>
<app-rules class="container-sider-element"></app-rules>
<app-comments class="container-sider-element"></app-comments>
</div>
<div class="container-settings">
......
......@@ -26,6 +26,8 @@ import { FinalTaskComponent } from './pieces/tasks/final-task/final-task.compone
import { RepeatTaskComponent } from './pieces/tasks/repeat-task/repeat-task.component';
import { InteruptComponent } from './sider-pieces/interupt/interupt.component';
import { OptionnalTaskComponent } from './pieces/tasks/optionnal-task/optionnal-task.component';
import { RoleOccurenceComponent } from './sider-pieces/role-occurence/role-occurence.component';
import { SupplementaryTaskComponent } from './sider-pieces/supplementary-task/supplementary-task.component';
import { DragScrollDirective } from './directives/drag-scroll.directive';
import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive';
......@@ -53,7 +55,9 @@ import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive
FinalTaskComponent,
RepeatTaskComponent,
InteruptComponent,
OptionnalTaskComponent
OptionnalTaskComponent,
RoleOccurenceComponent,
SupplementaryTaskComponent
],
imports: [
BrowserModule,
......
<div class="piece">
<div class="piece-form">
<div class="piece-title">Occurrence du rôle</div>
<div class="piece-form-occurrence">
<input type="text"/>
<label> entre </label>
<input type="text"/>
<label> et </label>
<input type="text"/>
<label> joueurs</label>
</div>
<div class="piece-form-occurrence">
<input type="text"/>
<label> entre </label>
<input type="text"/>
<label> et </label>
<input type="text"/>
<label> joueurs</label>
</div>
<button mat-button><mat-icon fontIcon="add"></mat-icon></button>
</div>
</div>
\ No newline at end of file
.piece {
--piece-background-color: #e5c5ac;
width: 300px;
position: relative;
background-color: var(--piece-background-color);
border: solid black 1px;
border-radius: 10px;
&-title {
font-family: 'Glacial Indifference Bold';
margin-bottom: 10px;
}
&-form {
margin: 10px 5px 10px 5px;
display: flex;
flex-direction: column;
input {
width: 25px;
border: none;
border-radius: 10px;
margin-left: 5px;
margin-right: 5px;
}
button {
margin-top: 10px;
border: none;
background-color: white;
border-radius: 10px;
}
&-occurence {
display: flex;
}
}
}
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RoleOccurenceComponent } from './role-occurence.component';
describe('RoleOccurenceComponent', () => {
let component: RoleOccurenceComponent;
let fixture: ComponentFixture<RoleOccurenceComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ RoleOccurenceComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(RoleOccurenceComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-role-occurence',
templateUrl: './role-occurence.component.html',
styleUrls: ['./role-occurence.component.scss']
})
export class RoleOccurenceComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
<div class="piece">
<div class="piece-form">
<div class="piece-title">Tâche liée au rôle supplémentaire</div>
<div class="piece-form-checkbox">
<input type="checkbox"/>
<label>Oui</label>
</div>
</div>
</div>
\ No newline at end of file
.piece {
--piece-background-color: #e5c5ac;
width: 300px;
height: 100px;
position: relative;
background: linear-gradient(165deg, rgba(154,213,236,1) 0%, rgba(154,213,236,1) 55%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%);
border: solid black 1px;
border-radius: 10px;
&-title {
font-family: 'Glacial Indifference Bold';
margin-bottom: 10px;
}
&-form {
margin: 10px 5px 10px 5px;
input {
width: 25px;
border: none;
border-radius: 10px;
}
}
}
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SupplementaryTaskComponent } from './supplementary-task.component';
describe('SupplementaryTaskComponent', () => {
let component: SupplementaryTaskComponent;
let fixture: ComponentFixture<SupplementaryTaskComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ SupplementaryTaskComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(SupplementaryTaskComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-supplementary-task',
templateUrl: './supplementary-task.component.html',
styleUrls: ['./supplementary-task.component.scss']
})
export class SupplementaryTaskComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment