This commit is contained in:
Hedi 2022-02-18 10:45:19 +01:00
commit bc51469588
23 changed files with 158 additions and 85 deletions

View File

@ -13,12 +13,14 @@ import { PageForgotPasswordComponent } from './pages/page-forgot-password/page-f
import { PageMenuSemaineComponent } from './pages/page-menu-semaine/page-menu-semaine.component'; import { PageMenuSemaineComponent } from './pages/page-menu-semaine/page-menu-semaine.component';
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component'; import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component'; import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component';
import { PageHumeurComponent} from './pages/page-humeur/page-humeur.component';
import { PageRepertoireComponent } from './pages/page-repertoire/page-repertoire.component'; import { PageRepertoireComponent } from './pages/page-repertoire/page-repertoire.component';
import { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component'; import { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component';
import { PageSignupComponent } from './pages/page-signup/page-signup.component'; import { PageSignupComponent } from './pages/page-signup/page-signup.component';
import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.component'; import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.component';
import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component'; import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
import { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component'; import { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component';
import { FooterComponent } from './components/footer/footer.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', redirectTo: 'accueil', pathMatch: 'full' }, { path: '', redirectTo: 'accueil', pathMatch: 'full' },
@ -40,6 +42,8 @@ const routes: Routes = [
{ path: 'modifier-compte', component: PageUpdateAccountComponent }, { path: 'modifier-compte', component: PageUpdateAccountComponent },
{ path: 'ajouter-contact', component: PageAjoutContactComponent }, { path: 'ajouter-contact', component: PageAjoutContactComponent },
{ path: 'creation-team', component: PageCreationTeamComponent }, { path: 'creation-team', component: PageCreationTeamComponent },
{ path: 'humeur', component: PageHumeurComponent },
{ path: 'footer', component: FooterComponent},
{ path: '**', component: PageNotFoundComponent }, { path: '**', component: PageNotFoundComponent },
]; ];

View File

@ -21,7 +21,6 @@ import { PageUpdateMemberComponent } from './pages/page-update-member/page-updat
import { SigninComponent } from './components/signin/signin.component'; import { SigninComponent } from './components/signin/signin.component';
import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component'; import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component';
import { MeteoComponent } from './components/meteo/meteo.component'; import { MeteoComponent } from './components/meteo/meteo.component';
import { HumeurComponent } from './components/humeur/humeur.component';
import { CalendrierComponent } from './components/calendrier/calendrier.component'; import { CalendrierComponent } from './components/calendrier/calendrier.component';
import { CardMemberComponent } from './components/card-member/card-member.component'; import { CardMemberComponent } from './components/card-member/card-member.component';
import { ToDoListComponent } from './components/to-do-list/to-do-list.component'; import { ToDoListComponent } from './components/to-do-list/to-do-list.component';
@ -36,6 +35,8 @@ import { PageAjoutContactComponent } from './pages/page-ajout-contact/page-ajout
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component'; import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component'; import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component';
import { AutofocusFixModule } from 'ngx-autofocus-fix'; import { AutofocusFixModule } from 'ngx-autofocus-fix';
import { PageHumeurComponent } from './pages/page-humeur/page-humeur.component';
import { FooterComponent } from './components/footer/footer.component';
import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component'; import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component';
import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component'; import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
import { EmoticonComponent } from './emoticon/emoticon.component'; import { EmoticonComponent } from './emoticon/emoticon.component';
@ -63,7 +64,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
SigninComponent, SigninComponent,
PageDashboardComponent, PageDashboardComponent,
MeteoComponent, MeteoComponent,
HumeurComponent, PageHumeurComponent,
CalendrierComponent, CalendrierComponent,
CardMemberComponent, CardMemberComponent,
ToDoListComponent, ToDoListComponent,
@ -75,6 +76,8 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
PageAjoutContactComponent, PageAjoutContactComponent,
PageModifierContactComponent, PageModifierContactComponent,
PageCreationTeamComponent, PageCreationTeamComponent,
PageHumeurComponent,
FooterComponent,
PageDeleteAccountComponent, PageDeleteAccountComponent,
PageUpdateAccountComponent, PageUpdateAccountComponent,
EmoticonComponent, EmoticonComponent,
@ -85,7 +88,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
ReactiveFormsModule, ReactiveFormsModule,
HttpClientModule, HttpClientModule,
FormsModule, FormsModule,
AutofocusFixModule.forRoot(), // AutofocusFixModule.forRoot(),
], ],
providers: [ providers: [

View File

@ -0,0 +1,19 @@
<body>
<p>footer works!</p>
<h2>PLAN DU SITE</h2>
<a routerLink="../accueil" routerLinkActive="active-custom" class="nav-link">Page d'accueil</a>
<a routerLink="../compte" routerLinkActive="active-custom" class="nav-link">Ma Team</a>
<a routerLink="../repertoire" routerLinkActive="active-custom" class="nav-link">Répertoire</a>
<a routerLink="../to-do-list" routerLinkActive="active-custom" class="nav-link">To-Do-List</a>
<a routerLink="../menu" routerLinkActive="active-custom" class="nav-link">Menus</a>
<a routerLink="../compte" routerLinkActive="active-custom" class="nav-link">Ma Team</a>
<a routerLink="../repertoire" routerLinkActive="active-custom" class="nav-link">Répertoire</a>
<a routerLink="../to-do-list" routerLinkActive="active-custom" class="nav-link">To-Do-List</a>
<a routerLink="../menu" routerLinkActive="active-custom" class="nav-link">Menus</a>
</body>

View File

@ -0,0 +1,7 @@
body {
background-color: pink;
text-align: left;
}
h2 {
color : blue
}

View File

@ -1,20 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HumeurComponent } from './humeur.component'; import { FooterComponent } from './footer.component';
describe('HumeurComponent', () => { describe('FooterComponent', () => {
let component: HumeurComponent; let component: FooterComponent;
let fixture: ComponentFixture<HumeurComponent>; let fixture: ComponentFixture<FooterComponent>;
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [ HumeurComponent ] declarations: [ FooterComponent ]
}) })
.compileComponents(); .compileComponents();
}); });
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(HumeurComponent); fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -1,6 +0,0 @@
<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>

View File

@ -1,29 +0,0 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-humeur',
templateUrl: './humeur.component.html',
styleUrls: ['./humeur.component.scss']
})
export class HumeurComponent implements OnInit {
constructor() {
}
ngOnInit(): void {
}
}

View File

@ -1,6 +0,0 @@
<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>

View File

@ -1,26 +0,0 @@
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)
}
}

View File

@ -6,5 +6,6 @@ export interface Membre {
dateNaissance: Date; dateNaissance: Date;
couleur: string; couleur: string;
passwordConfirm: string; passwordConfirm: string;
// smiley: string;
roleList: string[]; roleList: string[];
} }

View File

@ -0,0 +1,22 @@
<body>
<h2>Mon humeur :</h2>
<p><img src="{{monHumeurLien}}" *ngIf="monHumeurLien" ></p>
<p>Je modifie mon avatar :</p>
<div class="humeur" *ngFor="let humor of tabHumeur; let i=index">
<img src="{{humor.lien}}" alt="{{humor.title}}" (click)="onChoixHumeur(i)">
</div>
<div >
</div> </body>

View File

@ -0,0 +1,23 @@
p>img {
width: 85px;
height: 85px;
}
img {
width: 50px;
height: 50px;
}
.humeur {
display: inline;
}
body {
background-color: grey;
text-align: center;
}

View File

@ -1,20 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EmoticonComponent } from './emoticon.component'; import { PageHumeurComponent } from './page-humeur.component';
describe('EmoticonComponent', () => { describe('PageHumeurComponent', () => {
let component: EmoticonComponent; let component: PageHumeurComponent;
let fixture: ComponentFixture<EmoticonComponent>; let fixture: ComponentFixture<PageHumeurComponent>;
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [ EmoticonComponent ] declarations: [ PageHumeurComponent ]
}) })
.compileComponents(); .compileComponents();
}); });
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(EmoticonComponent); fixture = TestBed.createComponent(PageHumeurComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });

View File

@ -0,0 +1,39 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-page-humeur',
templateUrl: './page-humeur.component.html',
styleUrls: ['./page-humeur.component.scss']
})
export class PageHumeurComponent implements OnInit {
monHumeurLien! : string[];
monHumeurTitle! : string[] ;
tabHumeur= [
{ title : "Je vais bien", lien : "assets/images/emoticon-heureux.png"},
{ title : "Je pleure", lien : "assets/images/emoticon-pleurer.png"},
{ title : "Je suis fatigué", lien : "assets/images/emoticon-fatigue.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 { }
onChoixHumeur(numero: number){
this.monHumeurTitle= [this.tabHumeur[numero].title];
this.monHumeurLien= [this.tabHumeur[numero].lien];
console.log("humeur titre est : ", this.monHumeurTitle);
console.log("humeur lien est : ", this.monHumeurLien);
console.log("index humeur est : ", numero );
}
}

View File

@ -4,12 +4,16 @@
<div class="ctn-link min-vh-100"> <div class="ctn-link min-vh-100">
<div class="text-center"> <div class="text-center">
<p> Page introuvable</p>
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a> <a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
</div> <p></p>
<img src="/assets/images/404.gif" alt="Page introuvable">
</div>
</div> </div>
</div> </div>

View File

@ -11,6 +11,9 @@ p{
.min-vh-100 { .min-vh-100 {
font-weight: bold; font-weight: bold;
background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5); //background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
//max-width: max-content; //max-width: max-content;
} }
img {justify-content: center;
}

BIN
src/assets/images/404.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB