Commit 225bafa9 authored by Romain DELEAU's avatar Romain DELEAU

add interupt sider-piece

parent f5c56a6e
......@@ -137,6 +137,7 @@
<div class="container-sider">
<app-comments class="container-sider-element"></app-comments>
<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>
</div>
......
......@@ -24,6 +24,7 @@ import { RulesComponent } from './sider-pieces/rules/rules.component';
import { StepComponent } from './pieces/step/step.component';
import { FinalTaskComponent } from './pieces/final-task/final-task.component';
import { RepeatTaskComponent } from './pieces/repeat-task/repeat-task.component';
import { InteruptComponent } from './sider-pieces/interupt/interupt.component';
import { DragScrollDirective } from './directives/drag-scroll.directive';
import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive';
......@@ -49,7 +50,8 @@ import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive
RulesComponent,
StepComponent,
FinalTaskComponent,
RepeatTaskComponent
RepeatTaskComponent,
InteruptComponent
],
imports: [
BrowserModule,
......
<div class="piece">
<div class="piece-form">
<div class="piece-form-header">
<mat-icon fontIcon="front_hand"></mat-icon>
<div class="piece-form-header-label">
<label>Interruption de la tâche</label>
</div>
</div>
<div class="piece-form-textarea">
<textarea></textarea>
</div>
</div>
</div>
\ No newline at end of file
.piece {
--piece-background-color: #f7c9cf;
width: 300px;
position: relative;
background-color: var(--piece-background-color);
border: solid black 1px;
border-radius: 10px;
&-form {
position: relative;
text-align: center;
margin: 10px 5px 10px 5px;
&-header {
display: flex;
flex-direction: row;
mat-icon {
position: absolute;
transform: scale(1.5);
color: white;
}
&-label {
display: flex;
flex-direction: row;
position: relative;
left: 50%;
transform: translateX(-50%);
font-family: 'Glacial Indifference Bold';
}
}
&-textarea {
display: flex;
flex-direction: column;
margin-top: 20px;
textarea {
padding: 5px 10px 5px 10px;
margin-top: 10px;
resize: vertical;
border: none;
border-radius: 10px;
flex-grow: 1;
min-height: 50px;
max-height: 100px;
background-image: url("../../../assets/background-images/interruption.png");
background-position: center;
background-repeat: no-repeat;
background-size: 20%;
}
}
}
}
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { InteruptComponent } from './interupt.component';
describe('InteruptComponent', () => {
let component: InteruptComponent;
let fixture: ComponentFixture<InteruptComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ InteruptComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(InteruptComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-interupt',
templateUrl: './interupt.component.html',
styleUrls: ['./interupt.component.scss']
})
export class InteruptComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
......@@ -58,7 +58,7 @@
background-image: url("../../../assets/background-images/repeat.png");
background-position: center;
background-repeat: no-repeat;
background-size: 30%;
background-size: 20%;
}
}
}
......
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