feat(SW-826): Added Google Maps Link

This commit is contained in:
Pontus Dreij
2024-11-13 15:57:49 +01:00
parent a66427fccc
commit 1595b18644
2 changed files with 12 additions and 2 deletions

View File

@@ -46,3 +46,9 @@
flex-direction: column;
justify-content: center;
}
.googleMaps {
text-decoration: none;
font-family: var(--typography-Body-Regular-fontFamily);
color: var(--Base-Text-Medium-contrast);
}

View File

@@ -13,6 +13,7 @@ import styles from "./contact.module.css"
import { ContactProps } from "@/types/components/hotelReservation/selectHotel/selectHotel"
export default function Contact({ hotel }: ContactProps) {
console.log(hotel)
const lang = useLang()
const intl = useIntl()
@@ -32,9 +33,12 @@ export default function Contact({ hotel }: ContactProps) {
<span className={styles.heading}>
{intl.formatMessage({ id: "Driving directions" })}
</span>
<Link href="#" color="peach80">
<a
href={`https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`}
className={styles.googleMaps}
>
Google Maps
</Link>
</a>
</li>
<li>
<span className={styles.heading}>