fix(SW-591): fixed the position of the amenities list
This commit is contained in:
@@ -6,8 +6,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x-one-and-half);
|
gap: var(--Spacing-x-one-and-half);
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
width: 100%;
|
width: min(100%, 300px);
|
||||||
max-width: 300px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.amenityItemList {
|
.amenityItemList {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: var(--max-width-text-block);
|
max-width: 607px; /* Max width according to Figma */
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainContent {
|
.mainContent {
|
||||||
|
|||||||
@@ -28,7 +28,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.introContainer {
|
.introContainer {
|
||||||
display: grid;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
gap: var(--Spacing-x4);
|
gap: var(--Spacing-x4);
|
||||||
scroll-margin-top: var(--hotel-page-scroll-margin-top);
|
scroll-margin-top: var(--hotel-page-scroll-margin-top);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,51 +75,7 @@ export default async function HotelPage() {
|
|||||||
address={hotelAddress}
|
address={hotelAddress}
|
||||||
tripAdvisor={hotelRatings?.tripAdvisor}
|
tripAdvisor={hotelRatings?.tripAdvisor}
|
||||||
/>
|
/>
|
||||||
<SidePeekProvider>
|
|
||||||
{/* eslint-disable import/no-named-as-default-member */}
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.amenities[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Amenities" })}
|
|
||||||
>
|
|
||||||
{/* TODO: Render amenities as per the design. */}
|
|
||||||
Read more about the amenities here
|
|
||||||
</SidePeek>
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.about[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Read more about the hotel" })}
|
|
||||||
>
|
|
||||||
Some additional information about the hotel
|
|
||||||
</SidePeek>
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.restaurantAndBar[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Restaurant & Bar" })}
|
|
||||||
>
|
|
||||||
{/* TODO */}
|
|
||||||
Restaurant & Bar
|
|
||||||
</SidePeek>
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.wellnessAndExercise[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Wellness & Exercise" })}
|
|
||||||
>
|
|
||||||
{/* TODO */}
|
|
||||||
Wellness & Exercise
|
|
||||||
</SidePeek>
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.activities[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Activities" })}
|
|
||||||
>
|
|
||||||
{/* TODO */}
|
|
||||||
Activities
|
|
||||||
</SidePeek>
|
|
||||||
<SidePeek
|
|
||||||
contentKey={hotelPageParams.meetingsAndConferences[lang]}
|
|
||||||
title={intl.formatMessage({ id: "Meetings & Conferences" })}
|
|
||||||
>
|
|
||||||
{/* TODO */}
|
|
||||||
Meetings & Conferences
|
|
||||||
</SidePeek>
|
|
||||||
{/* eslint-enable import/no-named-as-default-member */}
|
|
||||||
</SidePeekProvider>
|
|
||||||
<AmenitiesList detailedFacilities={hotelDetailedFacilities} />
|
<AmenitiesList detailedFacilities={hotelDetailedFacilities} />
|
||||||
</div>
|
</div>
|
||||||
<Rooms rooms={roomCategories} />
|
<Rooms rooms={roomCategories} />
|
||||||
@@ -143,6 +99,51 @@ export default async function HotelPage() {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
|
<SidePeekProvider>
|
||||||
|
{/* eslint-disable import/no-named-as-default-member */}
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.amenities[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Amenities" })}
|
||||||
|
>
|
||||||
|
{/* TODO: Render amenities as per the design. */}
|
||||||
|
Read more about the amenities here
|
||||||
|
</SidePeek>
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.about[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Read more about the hotel" })}
|
||||||
|
>
|
||||||
|
Some additional information about the hotel
|
||||||
|
</SidePeek>
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.restaurantAndBar[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Restaurant & Bar" })}
|
||||||
|
>
|
||||||
|
{/* TODO */}
|
||||||
|
Restaurant & Bar
|
||||||
|
</SidePeek>
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.wellnessAndExercise[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Wellness & Exercise" })}
|
||||||
|
>
|
||||||
|
{/* TODO */}
|
||||||
|
Wellness & Exercise
|
||||||
|
</SidePeek>
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.activities[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Activities" })}
|
||||||
|
>
|
||||||
|
{/* TODO */}
|
||||||
|
Activities
|
||||||
|
</SidePeek>
|
||||||
|
<SidePeek
|
||||||
|
contentKey={hotelPageParams.meetingsAndConferences[lang]}
|
||||||
|
title={intl.formatMessage({ id: "Meetings & Conferences" })}
|
||||||
|
>
|
||||||
|
{/* TODO */}
|
||||||
|
Meetings & Conferences
|
||||||
|
</SidePeek>
|
||||||
|
{/* eslint-enable import/no-named-as-default-member */}
|
||||||
|
</SidePeekProvider>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user