feat : #12 recherche et filtre

This commit is contained in:
styve Lioumba
2025-11-28 15:15:33 +01:00
parent 4716e82628
commit 4ed6d812db
30 changed files with 308 additions and 487 deletions

View File

@@ -13,14 +13,14 @@
<div
class="w-40 h-40 rounded-full inline-flex items-center justify-center bg-gray-200 text-gray-400"
>
@if (imagePreviewUrl != null && project != undefined) {
@if (imagePreviewUrl !== null && project !== undefined) {
<img
alt="nouveau-projet"
class="object-cover object-center h-full w-full"
[src]="imagePreviewUrl"
loading="lazy"
/>
} @else if (project != undefined) {
} @else if (project !== undefined) {
@if (project.fichier) {
<img
alt="{{ project!.nom }}"
@@ -38,7 +38,7 @@
}
}
@if (project == undefined) {
@if (project === undefined) {
<img
alt="nouveau-projet"
class="object-cover object-center h-full w-full"
@@ -77,10 +77,10 @@
/>
</label>
@if (file != null || imagePreviewUrl != null) {
@if (file !== null || imagePreviewUrl !== null) {
<button
type="button"
[ngClass]="{ 'bg-purple-600': file != null || imagePreviewUrl != null }"
[ngClass]="{ 'bg-purple-600': file !== null || imagePreviewUrl !== null }"
class="!mt-2 px-6 py-2 w-full bg-[#333] hover:bg-[#444] text-sm text-white mx-auto block"
(click)="onSubmit()"
>