commit
056576b87f
@ -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 { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.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 { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component';
|
||||
import { PageSignupComponent } from './pages/page-signup/page-signup.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 { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component';
|
||||
import { FooterComponent } from './components/footer/footer.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: 'accueil', pathMatch: 'full' },
|
||||
@ -40,6 +42,8 @@ const routes: Routes = [
|
||||
{ path: 'modifier-compte', component: PageUpdateAccountComponent },
|
||||
{ path: 'ajouter-contact', component: PageAjoutContactComponent },
|
||||
{ path: 'creation-team', component: PageCreationTeamComponent },
|
||||
{ path: 'humeur', component: PageHumeurComponent },
|
||||
{ path: 'footer', component: FooterComponent},
|
||||
{ path: '**', component: PageNotFoundComponent },
|
||||
];
|
||||
|
||||
|
@ -21,7 +21,6 @@ import { PageUpdateMemberComponent } from './pages/page-update-member/page-updat
|
||||
import { SigninComponent } from './components/signin/signin.component';
|
||||
import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component';
|
||||
import { MeteoComponent } from './components/meteo/meteo.component';
|
||||
import { HumeurComponent } from './components/humeur/humeur.component';
|
||||
import { CalendrierComponent } from './components/calendrier/calendrier.component';
|
||||
import { CardMemberComponent } from './components/card-member/card-member.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 { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component';
|
||||
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 { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
|
||||
import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||
@ -63,7 +64,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||
SigninComponent,
|
||||
PageDashboardComponent,
|
||||
MeteoComponent,
|
||||
HumeurComponent,
|
||||
PageHumeurComponent,
|
||||
CalendrierComponent,
|
||||
CardMemberComponent,
|
||||
ToDoListComponent,
|
||||
@ -75,6 +76,8 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||
PageAjoutContactComponent,
|
||||
PageModifierContactComponent,
|
||||
PageCreationTeamComponent,
|
||||
PageHumeurComponent,
|
||||
FooterComponent,
|
||||
PageDeleteAccountComponent,
|
||||
PageUpdateAccountComponent,
|
||||
EmoticonComponent,
|
||||
@ -85,7 +88,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||
ReactiveFormsModule,
|
||||
HttpClientModule,
|
||||
FormsModule,
|
||||
AutofocusFixModule.forRoot(),
|
||||
// AutofocusFixModule.forRoot(),
|
||||
],
|
||||
providers: [
|
||||
|
||||
|
19
src/app/components/footer/footer.component.html
Normal file
19
src/app/components/footer/footer.component.html
Normal 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>
|
7
src/app/components/footer/footer.component.scss
Normal file
7
src/app/components/footer/footer.component.scss
Normal file
@ -0,0 +1,7 @@
|
||||
body {
|
||||
background-color: pink;
|
||||
text-align: left;
|
||||
}
|
||||
h2 {
|
||||
color : blue
|
||||
}
|
@ -1,20 +1,20 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HumeurComponent } from './humeur.component';
|
||||
import { FooterComponent } from './footer.component';
|
||||
|
||||
describe('HumeurComponent', () => {
|
||||
let component: HumeurComponent;
|
||||
let fixture: ComponentFixture<HumeurComponent>;
|
||||
describe('FooterComponent', () => {
|
||||
let component: FooterComponent;
|
||||
let fixture: ComponentFixture<FooterComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ HumeurComponent ]
|
||||
declarations: [ FooterComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HumeurComponent);
|
||||
fixture = TestBed.createComponent(FooterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
15
src/app/components/footer/footer.component.ts
Normal file
15
src/app/components/footer/footer.component.ts
Normal 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 {
|
||||
}
|
||||
|
||||
}
|
@ -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>
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -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>
|
||||
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
@ -6,5 +6,6 @@ export interface Membre {
|
||||
dateNaissance: Date;
|
||||
couleur: string;
|
||||
passwordConfirm: string;
|
||||
// smiley: string;
|
||||
roleList: string[];
|
||||
}
|
||||
|
22
src/app/pages/page-humeur/page-humeur.component.html
Normal file
22
src/app/pages/page-humeur/page-humeur.component.html
Normal 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>
|
23
src/app/pages/page-humeur/page-humeur.component.scss
Normal file
23
src/app/pages/page-humeur/page-humeur.component.scss
Normal 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;
|
||||
}
|
@ -1,20 +1,20 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { EmoticonComponent } from './emoticon.component';
|
||||
import { PageHumeurComponent } from './page-humeur.component';
|
||||
|
||||
describe('EmoticonComponent', () => {
|
||||
let component: EmoticonComponent;
|
||||
let fixture: ComponentFixture<EmoticonComponent>;
|
||||
describe('PageHumeurComponent', () => {
|
||||
let component: PageHumeurComponent;
|
||||
let fixture: ComponentFixture<PageHumeurComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ EmoticonComponent ]
|
||||
declarations: [ PageHumeurComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(EmoticonComponent);
|
||||
fixture = TestBed.createComponent(PageHumeurComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
39
src/app/pages/page-humeur/page-humeur.component.ts
Normal file
39
src/app/pages/page-humeur/page-humeur.component.ts
Normal 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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -4,12 +4,16 @@
|
||||
|
||||
<div class="ctn-link min-vh-100">
|
||||
<div class="text-center">
|
||||
<p> Page introuvable</p>
|
||||
|
||||
|
||||
|
||||
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
|
||||
</div>
|
||||
<p></p>
|
||||
|
||||
|
||||
|
||||
<img src="/assets/images/404.gif" alt="Page introuvable">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -11,6 +11,9 @@ p{
|
||||
|
||||
.min-vh-100 {
|
||||
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;
|
||||
}
|
||||
|
||||
img {justify-content: center;
|
||||
}
|
BIN
src/assets/images/404.gif
Normal file
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 |
BIN
src/assets/images/emoticon-fatigue.png
Normal file
BIN
src/assets/images/emoticon-fatigue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 441 KiB |
BIN
src/assets/images/emoticon-heureux.png
Normal file
BIN
src/assets/images/emoticon-heureux.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 443 KiB |
Loading…
Reference in New Issue
Block a user