side-bar : personnalisation de la couleur

This commit is contained in:
Hedi 2022-03-05 12:19:40 +01:00
parent 6549070d2c
commit c65fb9d8c2
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<nav class="wrapper md-auto position-fixed ">
<nav class="wrapper md-auto position-fixed" [ngStyle]="{'background-color':backgroundColor}">
<ul class="nav flex-column" id="sticky-sidebar">
<li class="nav-item" ngbNavItem="maTeam" >
<a routerLink="/compte" routerLinkActive="active-custom" class="nav-link">

View File

@ -5,7 +5,7 @@
width: auto;
height: 100%;
position: absolute;
background-color: #c3c3e7;
//background-color: #c3c3e7;
}
.nav{
margin-top: 20px;

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-side-bar',
@ -6,10 +6,14 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./side-bar.component.scss']
})
export class SideBarComponent implements OnInit {
@Input() backgroundColor!: string;
//@Input() backgroundColor = '#c3c3e7';
constructor() {}
ngOnInit(): void {
}
}