style: update button labels with emojis for clarity

This commit is contained in:
Jan Gleytenhoover 2025-01-14 08:22:21 +01:00
parent 0986803583
commit 1ed9e1983c
Signed by: jank
GPG Key ID: 50620ADD22CD330B
5 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
@if (hotel) { @if (hotel) {
<app-hotel-item [hotel]="hotel" [isDetail]="true"></app-hotel-item> <app-hotel-item [hotel]="hotel" [isDetail]="true"></app-hotel-item>
<app-hotel-form [hotel]="hotel"></app-hotel-form> <app-hotel-form [hotel]="hotel"></app-hotel-form>
<button class="delete-button" (click)="delete()">DELETE</button> <button class="delete-button" (click)="delete()">😠 DELETE</button>
} }

View File

@ -13,6 +13,6 @@
<input type="number" class="input-field" <input type="number" class="input-field"
[class.border-8]='hotelForm.get("price")?.invalid && hotelForm.get("price")?.touched' id="price" [class.border-8]='hotelForm.get("price")?.invalid && hotelForm.get("price")?.touched' id="price"
formControlName="price"> formControlName="price">
<button class="submit-button" (click)="submit()" [disabled]="!hotelForm.valid" type="submit">Submit</button> <button class="submit-button" (click)="submit()" [disabled]="!hotelForm.valid" type="submit">😃 Submit</button>
<a class="back-button" routerLink="/">Cancel</a> <a class="back-button" routerLink="/">😭 Cancel</a>
</form> </form>

View File

@ -35,7 +35,6 @@ export class HotelFormComponent {
console.log(this.validationErrorMessages[key]); console.log(this.validationErrorMessages[key]);
return this.validationErrorMessages[key] || `Unknown error: ${key}`; return this.validationErrorMessages[key] || `Unknown error: ${key}`;
}).join(' '); }).join(' ');
} }
} }

View File

@ -17,7 +17,7 @@
<div class="text-red-500" *ngIf="errorMessages['rating']">{{ errorMessages['rating'] }}</div> <div class="text-red-500" *ngIf="errorMessages['rating']">{{ errorMessages['rating'] }}</div>
<input type="rating" class="border-red-500" [class.border-8]='hotelForm.get("rating")?.invalid' id="rating" formControlName="rating"> <input type="rating" class="border-red-500" [class.border-8]='hotelForm.get("rating")?.invalid' id="rating" formControlName="rating">
<button class="submit-button" (click)="addTag()">Add Tag</button> <button class="submit-button" (click)="addTag()">Add Tag</button>
@for (tag of getTags().controls; track null) { @for (tag of getTags().controls; track tag) {
<input type="tag" class="border-red-500" [class.border-8]='hotelForm.get("tag")?.invalid' id="tag" formControlName="tag"> <input type="tag" class="border-red-500" [class.border-8]='hotelForm.get("tag")?.invalid' id="tag" formControlName="tag">
<button (click)="deleteTag(tag)" class="delete-button">delete</button> <button (click)="deleteTag(tag)" class="delete-button">delete</button>
} }

View File

@ -19,7 +19,7 @@ module.exports = {
}, },
}, },
animation: { animation: {
shake: 'shake 0.2s ease-in-out infinite', shake: 'shake 10s ease-in-out infinite',
}, },
}, },
}, },