From 1dd876c912882267880bb8edbbcdd76b227cd8be Mon Sep 17 00:00:00 2001 From: hemanthkumar-syncfusion Date: Fri, 14 Mar 2025 19:10:05 +0530 Subject: [PATCH] 946605: Need to implement UI team suggested changes in hotel booking application --- .../src/components/HotelBook/HotelBook.css | 56 +++++++++++++++++- .../src/components/HotelBook/HotelBook.tsx | 59 ++++++++----------- 2 files changed, 79 insertions(+), 36 deletions(-) diff --git a/Hotel-booking-App/src/components/HotelBook/HotelBook.css b/Hotel-booking-App/src/components/HotelBook/HotelBook.css index a358d86..1705f0c 100644 --- a/Hotel-booking-App/src/components/HotelBook/HotelBook.css +++ b/Hotel-booking-App/src/components/HotelBook/HotelBook.css @@ -92,7 +92,7 @@ } .e-side-bar-treeview-separator { - padding: 10px 3px; + padding: 10px; } .e-line-separator, @@ -383,7 +383,7 @@ } .e-book-details-button { - padding-right: 65px; + padding-right: 95px; } .e-padding-right { @@ -529,7 +529,13 @@ #hotelamenities, #roomamenities { - border: 0px; + border-color: #a5b4fc; +} + +.e-treeview .e-level-1.e-list-item>.e-fullrow, +.e-treeview .e-level-1.e-list-item.e-active.e-hover>.e-fullrow, +.e-treeview .e-level-1.e-list-item.e-active.e-node-focus>.e-fullrow { + background-color: #eef2ff; } .e-dialog.e-dialog-print-info .e-dlg-header { @@ -573,6 +579,50 @@ width: 96%; } +.vertical-divider { + width: 1px; + background-color: #a5b4fc; + flex-shrink: 0; + margin: 0px 15px; +} + +.e-info-flex-direction-column { + flex-direction: column; +} + +.e-info-flex-40-width { + width: 40% +} + +.e-info-flex-50-width { + width: 50% +} + +.e-info-flex-60-width { + width: 60% +} + +.e-info-flex-40-height { + height: 40% +} + +.e-info-flex-50-height { + height: 50% +} + +.e-info-flex-60-height { + height: 60% +} + +#form1 { + padding: 0px 30px; +} + +.e-padding-side { + padding-left: 20px; + padding-right: 20px; +} + @import '../../../node_modules/@syncfusion/ej2-base/styles/tailwind3.css'; @import '../../../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css'; @import '../../../node_modules/@syncfusion/ej2-calendars/styles/tailwind3.css'; diff --git a/Hotel-booking-App/src/components/HotelBook/HotelBook.tsx b/Hotel-booking-App/src/components/HotelBook/HotelBook.tsx index ad9c920..56f404d 100644 --- a/Hotel-booking-App/src/components/HotelBook/HotelBook.tsx +++ b/Hotel-booking-App/src/components/HotelBook/HotelBook.tsx @@ -364,9 +364,9 @@ function HotelBook() { {props.RoomImgID}
-
-
-
+
+
+
{props.HotelName}
@@ -374,8 +374,24 @@ function HotelBook() { Map {props.Address}
+
+ {props.Description} +
+
+
+ Amenities: + + + {hotelFacilityList.map((item, index) => ( + + ))} + +
-
+
+
+
+
Rating:
@@ -387,37 +403,14 @@ function HotelBook() { ({props.ReviewCount} reviews)
-
-
-
-
-
-
- {props.Description} -
-
+
Room Name: {props.RoomName} ({props.Capacity} person)
(Extra bed capacity: {props.ExtraBed} and per bed cost: ${props.ExtraBedCost})
- -
-
-
-
-
- Amenities: - - - {hotelFacilityList.map((item, index) => ( - - ))} - - -
-
+
Room Amenities: @@ -432,7 +425,7 @@ function HotelBook() {
-
+
@@ -456,7 +449,7 @@ function HotelBook() {
-
+
{!isRoomAvailable ? "Room's not available" : "Book Room"}
@@ -896,7 +889,7 @@ function HotelBook() {
Booking Details
-
+
Personal information
@@ -988,7 +981,7 @@ function HotelBook() {
Information
-
Hotel Name: {selectedRoom.HotelName}
+
Hotel Name: {selectedRoom.HotelName}
Rating:
Room Name: {selectedRoom.RoomName}
Capacity: {selectedRoom.Capacity} person