add AddProduct component with form for product creation and associated styles

This commit is contained in:
Vincent Guillet
2025-10-14 14:53:13 +02:00
parent f04f9fd93f
commit 8c3de85f36
9 changed files with 396 additions and 24 deletions

View File

@@ -1,13 +1,15 @@
<div class="home-container">
@if (getUser(); as user) {
<h1>Welcome, {{ user.firstName }}!</h1>
<p>What would you like to do today?</p>
<h1>Bonjour, {{ user.firstName }}!</h1>
<p>Que souhaitez-vous faire ?</p>
<br>
<button mat-flat-button [routerLink]="'/add-product'">Ajouter un nouveau produit</button>
<button mat-raised-button [routerLink]="'/products'">Voir la liste des produits</button>
} @else {
<h1>Welcome to the demo</h1>
<p>Create an account or sign in to get started.</p>
<h2>Gestion des produits</h2>
<div class="home-actions">
<button mat-flat-button [routerLink]="'/login'">Login</button>
<button mat-raised-button [routerLink]="'/register'">Sign Up</button>
<button mat-flat-button [routerLink]="'/login'">Se connecter</button>
<button mat-raised-button [routerLink]="'/register'">S'inscrire</button>
</div>
}
</div>