commit
2cf744c30d
12 changed files with 96 additions and 27 deletions
|
@ -40,7 +40,6 @@ import { AutofocusFixModule } from 'ngx-autofocus-fix';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
|
@ -75,7 +74,6 @@ import { AutofocusFixModule } from 'ngx-autofocus-fix';
|
||||||
PageAjoutContactComponent,
|
PageAjoutContactComponent,
|
||||||
PageModifierContactComponent,
|
PageModifierContactComponent,
|
||||||
PageCreationTeamComponent,
|
PageCreationTeamComponent,
|
||||||
|
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
@ -1 +1,6 @@
|
||||||
<p>humeur works!</p>
|
<p>Mon humeur est :</p>
|
||||||
|
|
||||||
|
<p>Affichage des items du tableau des humeurs</p>
|
||||||
|
|
||||||
|
<app-emoticon> *ngFor ="let tabHumeur of tabHumeur"
|
||||||
|
[tabHumeur]="tabHumeur"></app-emoticon>
|
|
@ -7,9 +7,23 @@ import { Component, OnInit } from '@angular/core';
|
||||||
})
|
})
|
||||||
export class HumeurComponent implements OnInit {
|
export class HumeurComponent implements OnInit {
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
6
src/app/emoticon/emoticon.component.html
Normal file
6
src/app/emoticon/emoticon.component.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<p>emoticon des humeurs</p>
|
||||||
|
<div *ngFor="let humor of tabHumeur">{{humor.title}}</div>
|
||||||
|
<div *ngFor="let humor of tabHumeur"> <img src="{{humor.lien}}" alt="{{humor.title}}"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
0
src/app/emoticon/emoticon.component.scss
Normal file
0
src/app/emoticon/emoticon.component.scss
Normal file
25
src/app/emoticon/emoticon.component.spec.ts
Normal file
25
src/app/emoticon/emoticon.component.spec.ts
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { EmoticonComponent } from './emoticon.component';
|
||||||
|
|
||||||
|
describe('EmoticonComponent', () => {
|
||||||
|
let component: EmoticonComponent;
|
||||||
|
let fixture: ComponentFixture<EmoticonComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ EmoticonComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(EmoticonComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
26
src/app/emoticon/emoticon.component.ts
Normal file
26
src/app/emoticon/emoticon.component.ts
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-emoticon',
|
||||||
|
templateUrl: './emoticon.component.html',
|
||||||
|
styleUrls: ['./emoticon.component.scss']
|
||||||
|
})
|
||||||
|
export class EmoticonComponent implements OnInit {
|
||||||
|
|
||||||
|
//declaration du tableau
|
||||||
|
tabHumeur= [
|
||||||
|
{ title : "Je pleure", lien : "../../../assets/images/emoticon-pleurer.png"},
|
||||||
|
{ title : "Je suis en colère", lien : "../../../assets/images/emoticon-insulter.png"},
|
||||||
|
{ title : "Je suis malade", lien : "../../../assets/images/emoticon-vomir.png"}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
|
||||||
|
|
||||||
|
console.log("tab humeurs ==>", this.tabHumeur)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -2,11 +2,15 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<p> Page introuvable</p>
|
<div class="ctn-link min-vh-100">
|
||||||
<a routerLink="" routerLinkActive="!active"><br><br>
|
<div class="text-center">
|
||||||
Je retourne à l'accueil<br><br><br><br><br><br><br><br><br><br><br><br></a>
|
<p> Page introuvable</p>
|
||||||
|
|
||||||
|
|
||||||
|
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,16 @@
|
||||||
a.hover {
|
p{
|
||||||
color: rgb(219, 200, 28);
|
color: black;
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: rgb(32, 114, 45);
|
|
||||||
}
|
|
||||||
|
|
||||||
div {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
}
|
||||||
|
|
||||||
// si on préfère une image en fond
|
|
||||||
// background-image: url("../../../assets/images/404.jpg");
|
.ctn-link > div {
|
||||||
// background-size: cover;
|
padding-top: 7em;
|
||||||
|
}
|
||||||
background-image: linear-gradient(
|
|
||||||
to left top,
|
|
||||||
#051937,
|
.min-vh-100 {
|
||||||
#004d7a,
|
font-weight: bold;
|
||||||
#008793,
|
background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
|
||||||
#e2ebe7,
|
//max-width: max-content;
|
||||||
#f8faf5
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
BIN
src/assets/images/emoticon-insulter.png
Normal file
BIN
src/assets/images/emoticon-insulter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
BIN
src/assets/images/emoticon-pleurer.png
Normal file
BIN
src/assets/images/emoticon-pleurer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 KiB |
BIN
src/assets/images/emoticon-vomir.png
Normal file
BIN
src/assets/images/emoticon-vomir.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
Loading…
Add table
Reference in a new issue