finalisation humeurs, mise en place plan du site
This commit is contained in:
parent
50ef04ca86
commit
72d0c77dd3
12 changed files with 99 additions and 20 deletions
|
@ -18,6 +18,7 @@ import { PageResetPasswordComponent } from './pages/page-reset-password/page-res
|
|||
import { PageSignupComponent } from './pages/page-signup/page-signup.component';
|
||||
import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.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' },
|
||||
|
@ -38,6 +39,7 @@ const routes: Routes = [
|
|||
{ path: 'ajouter-contact', component: PageAjoutContactComponent },
|
||||
{ path: 'creation-team', component: PageCreationTeamComponent },
|
||||
{ path: 'humeur', component: PageHumeurComponent },
|
||||
{ path: 'footer', component: FooterComponent},
|
||||
{ path: '**', component: PageNotFoundComponent },
|
||||
];
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import { PageModifierContactComponent } from './pages/page-modifier-contact/page
|
|||
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';
|
||||
|
||||
|
||||
|
||||
|
@ -75,6 +76,7 @@ import { PageHumeurComponent } from './pages/page-humeur/page-humeur.component';
|
|||
PageModifierContactComponent,
|
||||
PageCreationTeamComponent,
|
||||
PageHumeurComponent,
|
||||
FooterComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
|
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
|
||||
}
|
25
src/app/components/footer/footer.component.spec.ts
Normal file
25
src/app/components/footer/footer.component.spec.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FooterComponent } from './footer.component';
|
||||
|
||||
describe('FooterComponent', () => {
|
||||
let component: FooterComponent;
|
||||
let fixture: ComponentFixture<FooterComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ FooterComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(FooterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
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 {
|
||||
}
|
||||
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
<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="../agenda" routerLinkActive="active-custom" class="nav-link">Agenda</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
@ -1,25 +1,22 @@
|
|||
<p>page-humeur works! </p>
|
||||
<!--<img [src]="monHumeurLien";>
|
||||
<img [src]="tabHumeur[0].lien">
|
||||
-->
|
||||
|
||||
<body>
|
||||
|
||||
<h2>Mon humeur :</h2>
|
||||
|
||||
|
||||
******************************************
|
||||
<!-- <p>Présentement, {{onChoixHumeur()}}</p> -->
|
||||
choix de mon humeur
|
||||
<!-- {{monHumeurTitle}} -->
|
||||
<!-- <br> -->
|
||||
<img src="{{monHumeurLien}}" *ngIf="monHumeurLien" >
|
||||
|
||||
<p>Je choisis mon humeur :</p>
|
||||
|
||||
|
||||
<div *ngFor="let humor of tabHumeur; let i=index">
|
||||
{{i}}
|
||||
<img src="{{humor.lien}}" alt="{{humor.title}}" (click)="onChoixHumeur(i)">{{humor.title}}
|
||||
<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>
|
||||
</div> </body>
|
|
@ -1,12 +1,23 @@
|
|||
|
||||
|
||||
|
||||
p>img {
|
||||
width: 250px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
p>img {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
|
||||
}
|
||||
|
||||
.humeur {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: grey;
|
||||
text-align: center;
|
||||
}
|
|
@ -15,6 +15,7 @@ export class PageHumeurComponent implements OnInit {
|
|||
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"} ]
|
||||
|
||||
|
|
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 |
Binary file not shown.
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 443 KiB |
Loading…
Add table
Reference in a new issue