Merge branch 'dev' into aline
This commit is contained in:
commit
2e36982415
21 changed files with 418 additions and 171 deletions
|
|
@ -0,0 +1,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="btn btn-outline-primary btn-circle btn-xl"
|
||||
(click)="onClickDeco()"
|
||||
>
|
||||
Se déconnecter
|
||||
</button>
|
||||
10
src/app/components/deconnexion/deconnexion.component.scss
Normal file
10
src/app/components/deconnexion/deconnexion.component.scss
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.btn-circle.btn-xl {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
padding: 10px 16px;
|
||||
border-radius: 40px;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
25
src/app/components/deconnexion/deconnexion.component.spec.ts
Normal file
25
src/app/components/deconnexion/deconnexion.component.spec.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DeconnexionComponent } from './deconnexion.component';
|
||||
|
||||
describe('DeconnexionComponent', () => {
|
||||
let component: DeconnexionComponent;
|
||||
let fixture: ComponentFixture<DeconnexionComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ DeconnexionComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DeconnexionComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
26
src/app/components/deconnexion/deconnexion.component.ts
Normal file
26
src/app/components/deconnexion/deconnexion.component.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { TokenService } from 'src/app/services/token.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-deconnexion',
|
||||
templateUrl: './deconnexion.component.html',
|
||||
styleUrls: ['./deconnexion.component.scss']
|
||||
})
|
||||
export class DeconnexionComponent implements OnInit {
|
||||
|
||||
constructor(private tokenService: TokenService,
|
||||
private router: Router,
|
||||
private route: ActivatedRoute) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
|
||||
onClickDeco(){
|
||||
this.tokenService.eraseToken();
|
||||
this.router.navigate(['accueil']);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,10 +1,17 @@
|
|||
<nav class="navbar sticky-top navbar-expand-lg navbar-light bg-light shadow py-0 ">
|
||||
<div class="container-fluid">
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav">
|
||||
<img id="img" routerLink="accueil" routerLinkActive="active-custom" src="../../../assets/images/logo-organizee.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<a class="navbar-brand" href="#">Organizee</a>
|
||||
<nav
|
||||
class="navbar sticky-top navbar-expand-lg navbar-light bg-light shadow py-0"
|
||||
>
|
||||
<div class="container-fluid">
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav">
|
||||
<img
|
||||
id="img"
|
||||
routerLink="accueil"
|
||||
routerLinkActive="active-custom"
|
||||
src="../../../assets/images/logo-organizee.png"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<a class="navbar-brand" href="#">Organizee</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
.navbar-brand {
|
||||
position: absolute;
|
||||
margin-left: 12%;
|
||||
position: relative;
|
||||
margin-right: 70%;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 3rem;
|
||||
|
|
@ -29,5 +29,8 @@ a:active {
|
|||
}
|
||||
|
||||
#img {
|
||||
margin-left: 50%;
|
||||
position: absolute;
|
||||
max-width: 5%;
|
||||
margin-left: 5%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
|
|
@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core';
|
|||
})
|
||||
export class HeaderComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(){
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue