dasboard pas fini et modif addmembre

This commit is contained in:
AlineRinquin 2022-02-25 16:29:12 +01:00
parent 9e40a5ff68
commit 896c0c5f3a
13 changed files with 158 additions and 35 deletions

View file

@ -0,0 +1,13 @@
<div class="container mt-5 membre">
<div class="row d-flex justify-content-center">
<div class="col-md-auto">
<div class="card p-3 py-4 align-items">
<!-- récuperer couleur du back-->
<div class="text-center"><div class="rounded-circle"id="couleur"[style.background-color]="membre.couleur"></div></div>
<div class="text-center mt-3">
<h3 class="mt-2 mb-0">{{membre.prenom }} {{membre.nom }}</h3>
</div>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,20 @@
#couleur{
width: 60px;
height: 60px;
margin: 0 auto;
background: black;
}
.card {
min-height: 8px;
border: none;
overflow: hidden;
border-radius: 8px;
justify-content: center;
}
h3 {
font-size: small;
}

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CardAvatarComponent } from './card-avatar.component';
describe('CardAvatarComponent', () => {
let component: CardAvatarComponent;
let fixture: ComponentFixture<CardAvatarComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CardAvatarComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(CardAvatarComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,17 @@
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-card-avatar',
templateUrl: './card-avatar.component.html',
styleUrls: ['./card-avatar.component.scss']
})
export class CardAvatarComponent implements OnInit {
@Input() membre: any;
constructor() { }
ngOnInit(): void {
}
}