Merged in feat/SW-3072-desktop-new-button-for-see- (pull request #2408)

feat: SW-3072 Added overlay to static map on city page

* feat: SW-3072 Added overlay to static map on city page

* feat: SW-3072 Updated map link in desktop select-hotel page

* feat: SW-3072 Updated as review comments


Approved-by: Erik Tiekstra
This commit is contained in:
Hrishikesh Vaipurkar
2025-06-30 10:48:34 +00:00
parent 0393f7b7b9
commit a0b0ed2544
2 changed files with 30 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography"
import HotelCardListing from "@/components/HotelReservation/HotelCardListing" import HotelCardListing from "@/components/HotelReservation/HotelCardListing"
import BookingCodeFilter from "@/components/HotelReservation/SelectHotel/BookingCodeFilter" import BookingCodeFilter from "@/components/HotelReservation/SelectHotel/BookingCodeFilter"
@@ -82,21 +83,19 @@ export default async function SelectHotel({
city={city.name} city={city.name}
country={isCityWithCountry(city) ? city.country : undefined} country={isCityWithCountry(city) ? city.country : undefined}
width={340} width={340}
height={180} height={200}
zoomLevel={11} zoomLevel={11}
mapType="roadmap" mapType="roadmap"
altText={`Map of ${city.name} city center`} altText={`Map of ${city.name} city center`}
/> />
<div className={styles.linkText}> <Typography variant="Body/Supporting text (caption)/smBold">
{intl.formatMessage({ <span className={styles.mapButton}>
defaultMessage: "See map", <MaterialIcon icon="map" color="CurrentColor" size={20} />
})} {intl.formatMessage({
<MaterialIcon defaultMessage: "See on map",
icon="chevron_right" })}
size={20} </span>
color="CurrentColor" </Typography>
/>
</div>
</div> </div>
</Link> </Link>
) : ( ) : (
@@ -104,7 +103,7 @@ export default async function SelectHotel({
<StaticMap <StaticMap
city={city.name} city={city.name}
width={340} width={340}
height={180} height={200}
zoomLevel={11} zoomLevel={11}
mapType="roadmap" mapType="roadmap"
altText={`Map of ${city.name} city center`} altText={`Map of ${city.name} city center`}

View File

@@ -68,11 +68,15 @@
margin-bottom: var(--Spacing-x3); margin-bottom: var(--Spacing-x3);
} }
.linkText { .mapButton {
display: flex; display: flex;
padding: var(--Space-x15) 0; padding: 10px var(--Space-x2);
justify-content: center; justify-content: center;
font-weight: var(--Link-md-Font-weight); align-items: center;
border-radius: var(--Corner-radius-rounded);
background: var(--Component-Button-Inverted-Fill-Default);
box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.1);
gap: var(--Space-x05);
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@@ -128,6 +132,18 @@
background: var(--Base-Surface-Primary-light-Normal); background: var(--Base-Surface-Primary-light-Normal);
border-radius: var(--Corner-radius-md); border-radius: var(--Corner-radius-md);
border: 1px solid var(--Base-Border-Subtle); border: 1px solid var(--Base-Border-Subtle);
position: relative;
}
.mapButton {
position: absolute;
bottom: var(--Space-x2);
right: var(--Space-x2);
}
.mapButton:hover {
background-color: var(--Base-Button-Inverted-Fill-Hover);
color: var(--Base-Button-Inverted-On-Fill-Hover);
} }
.buttonContainer { .buttonContainer {