From 098680358379f26788dedfa0c038b10c618bc1d1 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Tue, 7 Jan 2025 09:59:47 +0100 Subject: [PATCH] style update --- src/app/HotelItem/HotelItem.component.html | 6 +++--- .../hotel-details/hotel-details.component.html | 4 ++-- src/app/hotel-form/hotel-form.component.html | 12 ++++++------ src/app/hotel-list/hotel-list.component.html | 2 +- src/app/new-hotel/new-hotel.component.html | 18 +++++++++--------- src/index.html | 2 +- src/styles.css | 16 ++++++++++++++++ tailwind.config.js | 12 +++++++++++- 8 files changed, 49 insertions(+), 23 deletions(-) diff --git a/src/app/HotelItem/HotelItem.component.html b/src/app/HotelItem/HotelItem.component.html index 5f2a078..cb2a46b 100644 --- a/src/app/HotelItem/HotelItem.component.html +++ b/src/app/HotelItem/HotelItem.component.html @@ -1,8 +1,8 @@

Name: {{hotel.hotelName}}

Description: {{hotel.description}}

Price: {{hotel.price | currency : getCurrencyCode(selectedLanguage) : "symbol" : "2.2-2" : selectedLanguage}}

- -Hotel -Details +Hotel +Details diff --git a/src/app/hotel-details/hotel-details.component.html b/src/app/hotel-details/hotel-details.component.html index 4ceeab2..44ae281 100644 --- a/src/app/hotel-details/hotel-details.component.html +++ b/src/app/hotel-details/hotel-details.component.html @@ -1,5 +1,5 @@ -@if (hotel != null) { +@if (hotel) { - + } diff --git a/src/app/hotel-form/hotel-form.component.html b/src/app/hotel-form/hotel-form.component.html index ed7a0bc..ae7700c 100644 --- a/src/app/hotel-form/hotel-form.component.html +++ b/src/app/hotel-form/hotel-form.component.html @@ -2,17 +2,17 @@

{{errorMsg}}

-
{{ errorMessages['name'] }}
- +
{{ errorMessages['name'] }}
+
{{ errorMessages['description'] }}
-
{{ errorMessages['price'] }}
- - - Cancel + + Cancel
diff --git a/src/app/hotel-list/hotel-list.component.html b/src/app/hotel-list/hotel-list.component.html index d1d3a7f..8d727a9 100644 --- a/src/app/hotel-list/hotel-list.component.html +++ b/src/app/hotel-list/hotel-list.component.html @@ -1,6 +1,6 @@

{{'hello' | uppercase | text}}

- CREATE NEW HOTEL + CREATE NEW HOTEL @if (hotels[0].hotelName) {
diff --git a/src/app/new-hotel/new-hotel.component.html b/src/app/new-hotel/new-hotel.component.html index 382fdde..43f0369 100644 --- a/src/app/new-hotel/new-hotel.component.html +++ b/src/app/new-hotel/new-hotel.component.html @@ -2,25 +2,25 @@
-
{{ errorMessages['name'] }}
+
{{ errorMessages['name'] }}
-
{{ errorMessages['description'] }}
+
{{ errorMessages['description'] }}
-
{{ errorMessages['imageUrl'] }}
+
{{ errorMessages['imageUrl'] }}
-
{{ errorMessages['price'] }}
+
{{ errorMessages['price'] }}
-
{{ errorMessages['rating'] }}
+
{{ errorMessages['rating'] }}
- + @for (tag of getTags().controls; track null) { - + } - - Cancel + + Cancel
diff --git a/src/index.html b/src/index.html index 3d91cf2..639aa9b 100644 --- a/src/index.html +++ b/src/index.html @@ -8,7 +8,7 @@ - + diff --git a/src/styles.css b/src/styles.css index 2adbbf3..cea93df 100644 --- a/src/styles.css +++ b/src/styles.css @@ -6,3 +6,19 @@ .button { @apply border-black rounded px-3 py-1 border-[3px]; } + +.input-field { + @apply border-red-500 text-3xl rounded-full bg-gray-500 font-bold p-3 m-3 border-8 +} + +.back-button { + @apply border-black rounded bg-blue-500 border-[30px] m-3 text-3xl font-bold p-3 +} + +.submit-button { + @apply border-black rounded-full bg-green-500 border-[30px] m-3 text-3xl font-bold p-3 +} + +.delete-button { + @apply border-black rounded bg-red-500 border-[30px] m-3 text-3xl font-bold p-3 +} diff --git a/tailwind.config.js b/tailwind.config.js index 068e770..53ccdac 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -10,7 +10,17 @@ module.exports = { extend: { colors: { ...colors, - } + }, + keyframes: { + shake: { + '0%, 100%': { transform: 'translateX(0)' }, + '25%': { transform: 'translateX(-30px)' }, + '75%': { transform: 'translateX(30px)' }, + }, + }, + animation: { + shake: 'shake 0.2s ease-in-out infinite', + }, }, }, plugins: [],