added profil section

This commit is contained in:
2025-11-13 23:00:17 +01:00
parent d875eab446
commit ef5aaf67bd
9 changed files with 96 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
import { Component } from '@angular/core';
import {UserInfo} from "../../interfaces/user.interface";
import {NzButtonComponent} from "ng-zorro-antd/button";
@Component({
selector: 'app-profil',
imports: [
NzButtonComponent
],
templateUrl: './profil.html',
styleUrl: './profil.css',
})
export class Profil {
data: UserInfo =
{
name: 'Mathys Sanchez Vendé',
email: 'mathys.sanchez@vende.fr',
fonction: 'admin',
};
getInitial(name: string): string {
if (!name || name.trim() === '') return '?';
return name[0].toUpperCase();
}
}