From ed9c45b6466791a375845ddd304104eeee89b003 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 11 Oct 2024 07:50:37 +0200 Subject: [PATCH] fix(SW-591): fixed the position of the amenities list --- .../AmenitiesList/amenitiesList.module.css | 3 +- .../IntroSection/introSection.module.css | 2 +- .../HotelPage/hotelPage.module.css | 4 +- components/ContentType/HotelPage/index.tsx | 91 ++++++++++--------- 4 files changed, 51 insertions(+), 49 deletions(-) diff --git a/components/ContentType/HotelPage/AmenitiesList/amenitiesList.module.css b/components/ContentType/HotelPage/AmenitiesList/amenitiesList.module.css index 1e6046459..f7dcea5fc 100644 --- a/components/ContentType/HotelPage/AmenitiesList/amenitiesList.module.css +++ b/components/ContentType/HotelPage/AmenitiesList/amenitiesList.module.css @@ -6,8 +6,7 @@ display: grid; gap: var(--Spacing-x-one-and-half); height: fit-content; - width: 100%; - max-width: 300px; + width: min(100%, 300px); } .amenityItemList { diff --git a/components/ContentType/HotelPage/IntroSection/introSection.module.css b/components/ContentType/HotelPage/IntroSection/introSection.module.css index 1697b7ee8..5e9ec4b80 100644 --- a/components/ContentType/HotelPage/IntroSection/introSection.module.css +++ b/components/ContentType/HotelPage/IntroSection/introSection.module.css @@ -2,7 +2,7 @@ display: grid; gap: var(--Spacing-x2); position: relative; - max-width: var(--max-width-text-block); + max-width: 607px; /* Max width according to Figma */ } .mainContent { diff --git a/components/ContentType/HotelPage/hotelPage.module.css b/components/ContentType/HotelPage/hotelPage.module.css index a6c906f21..5fb6be104 100644 --- a/components/ContentType/HotelPage/hotelPage.module.css +++ b/components/ContentType/HotelPage/hotelPage.module.css @@ -28,7 +28,9 @@ } .introContainer { - display: grid; + display: flex; + flex-wrap: wrap; + justify-content: space-between; gap: var(--Spacing-x4); scroll-margin-top: var(--hotel-page-scroll-margin-top); } diff --git a/components/ContentType/HotelPage/index.tsx b/components/ContentType/HotelPage/index.tsx index 5e2106421..8976ead74 100644 --- a/components/ContentType/HotelPage/index.tsx +++ b/components/ContentType/HotelPage/index.tsx @@ -75,51 +75,7 @@ export default async function HotelPage() { address={hotelAddress} tripAdvisor={hotelRatings?.tripAdvisor} /> - - {/* eslint-disable import/no-named-as-default-member */} - - {/* TODO: Render amenities as per the design. */} - Read more about the amenities here - - - Some additional information about the hotel - - - {/* TODO */} - Restaurant & Bar - - - {/* TODO */} - Wellness & Exercise - - - {/* TODO */} - Activities - - - {/* TODO */} - Meetings & Conferences - - {/* eslint-enable import/no-named-as-default-member */} - + @@ -143,6 +99,51 @@ export default async function HotelPage() { /> ) : null} + + {/* eslint-disable import/no-named-as-default-member */} + + {/* TODO: Render amenities as per the design. */} + Read more about the amenities here + + + Some additional information about the hotel + + + {/* TODO */} + Restaurant & Bar + + + {/* TODO */} + Wellness & Exercise + + + {/* TODO */} + Activities + + + {/* TODO */} + Meetings & Conferences + + {/* eslint-enable import/no-named-as-default-member */} + ) }