Commit 38dfd5a5 authored by Romain DELEAU's avatar Romain DELEAU

add sider-pieces (repeat done)

parent 058dd899
......@@ -37,16 +37,8 @@
</div>
<div class="container-sider">
<div class="container-sider-element">
</div>
<div class="container-sider-element">
</div>
<div class="container-sider-element">
</div>
<div class="container-sider-element">
<app-comments class="container-sider-element"></app-comments>
<app-repeat class="container-sider-element"></app-repeat>
</div>
......
......@@ -40,13 +40,11 @@
box-shadow: -20px 0px 25px rgba(0, 0, 0, 0.3);
&-element {
margin-left: auto;
margin-right: auto;
margin-top: 10px;
margin-bottom: 10px;
width: 300px;
height: 400px;
background-color: green;
display: flex;
flex-direction: column;
align-items: center;
}
}
}
\ No newline at end of file
......@@ -16,6 +16,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatIconModule } from '@angular/material/icon';
import { DragScrollDirective } from './directives/drag-scroll.directive';
import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive';
import { CommentsComponent } from './sider-pieces/comments/comments.component';
import { RepeatComponent } from './sider-pieces/repeat/repeat.component';
@NgModule({
declarations: [
......@@ -28,7 +30,9 @@ import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive
TaskComponent,
AnnexeTaskComponent,
DragScrollDirective,
MouseWheelZoomDirective
MouseWheelZoomDirective,
CommentsComponent,
RepeatComponent
],
imports: [
BrowserModule,
......
<div class="piece">
</div>
\ No newline at end of file
.piece {
--piece-background-color: #f3ed97;
width: 300px;
height: 400px;
position: relative;
background-color: var(--piece-background-color);
border: solid black 1px;
border-radius: 10px;
}
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CommentsComponent } from './comments.component';
describe('CommentsComponent', () => {
let component: CommentsComponent;
let fixture: ComponentFixture<CommentsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CommentsComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(CommentsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comments',
templateUrl: './comments.component.html',
styleUrls: ['./comments.component.scss']
})
export class CommentsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
<div class="piece">
<div class="piece-form">
<div class="piece-form-header">
<mat-icon fontIcon="refresh"></mat-icon>
<div class="piece-form-header-for">
<label>Répéter</label>
<input type="text"/>
<label>fois</label>
</div>
</div>
<div class="piece-form-while">
<label>ou jusqu'à ce que :</label>
<textarea></textarea>
</div>
</div>
</div>
\ No newline at end of file
.piece {
--piece-background-color: #a6c9ec;
width: 300px;
height: 200px;
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;
height: 100%;
&-header {
display: flex;
flex-direction: row;
mat-icon {
position: absolute;
transform: scale(1.5);
color: white;
}
&-for {
//width: 100%;
display: flex;
flex-direction: row;
position: relative;
left: 50%;
transform: translateX(-50%);
input {
width: 25px;
border: none;
border-radius: 10px;
background-color: white;
margin-left: 5px;
margin-right: 5px;
text-align: center;
}
}
}
&-while {
display: flex;
flex-direction: column;
height: 80%;
textarea {
padding: 10px;
margin-top: 10px;
resize: none;
border: none;
border-radius: 10px;
flex-grow: 1;
}
}
}
}
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RepeatComponent } from './repeat.component';
describe('RepeatComponent', () => {
let component: RepeatComponent;
let fixture: ComponentFixture<RepeatComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ RepeatComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(RepeatComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-repeat',
templateUrl: './repeat.component.html',
styleUrls: ['./repeat.component.scss']
})
export class RepeatComponent 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