diff --git a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/hotelListingItem.module.css b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/hotelListingItem.module.css index 064797ea9..cb1f3a3d4 100644 --- a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/hotelListingItem.module.css +++ b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/hotelListingItem.module.css @@ -1,35 +1,38 @@ .container { - background-color: var(--Base-Surface-Primary-light-Normal); - border: 1px solid var(--Base-Border-Subtle); + background-color: var(--Surface-Primary-Default); + border: 1px solid var(--Border-Default); border-radius: var(--Corner-radius-md); overflow: hidden; + color: var(--Text-Default); } .image { width: 100%; - max-height: 200px; + height: 200px; object-fit: cover; } .content { - display: flex; - flex-direction: column; - gap: var(--Spacing-x2); - padding: var(--Spacing-x2) var(--Spacing-x3); + display: grid; + gap: var(--Space-x2); + padding: var(--Space-x2) var(--Space-x3); } .intro { - display: flex; - flex-direction: column; - gap: var(--Spacing-x-half); -} - -.dividerContainer { - padding: 0 var(--Spacing-x1); + display: grid; + gap: var(--Space-x05); } .captions { display: flex; + gap: var(--Space-x1); + color: var(--Text-Tertiary); +} + +@media screen and (max-width: 767px) { + .ctaDivider { + display: none; + } } @media screen and (min-width: 768px) { @@ -39,11 +42,11 @@ } .image { - max-height: none; height: 100%; } .button { width: min(100%, 200px); + justify-self: end; } } diff --git a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx index 627815cff..6e94da04f 100644 --- a/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx +++ b/apps/scandic-web/components/Blocks/HotelListing/HotelListingItem/index.tsx @@ -1,13 +1,9 @@ import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon" +import { Typography } from "@scandic-hotels/design-system/Typography" +import ButtonLink from "@/components/ButtonLink" import Image from "@/components/Image" -import Button from "@/components/TempDesignSystem/Button" import Divider from "@/components/TempDesignSystem/Divider" -import Link from "@/components/TempDesignSystem/Link" -import Body from "@/components/TempDesignSystem/Text/Body" -import Caption from "@/components/TempDesignSystem/Text/Caption" -import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" -import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import { getSingleDecimal } from "@/utils/numberFormatting" @@ -37,56 +33,58 @@ export default async function HotelListingItem({ {image.alt}
- - {hotel.name} - -
- - {hotel.address.streetAddress} - -
- + +

{hotel.name}

+
+ +
+ {hotel.address.streetAddress} + + + {intl.formatMessage( + { + defaultMessage: "{number} km to city center", + }, + { + number: getSingleDecimal( + hotel.location.distanceToCentre / 1000 + ), + } + )} +
- - {intl.formatMessage( - { - defaultMessage: "{number} km to city center", - }, - { - number: getSingleDecimal( - hotel.location.distanceToCentre / 1000 - ), - } - )} - -
+
- {description} + +

{description}

+
- {cta.url && ( - - )} + + + ) : null}
) diff --git a/apps/scandic-web/components/Blocks/HotelListing/hotelListing.module.css b/apps/scandic-web/components/Blocks/HotelListing/hotelListing.module.css new file mode 100644 index 000000000..4626c3b93 --- /dev/null +++ b/apps/scandic-web/components/Blocks/HotelListing/hotelListing.module.css @@ -0,0 +1,3 @@ +.heading { + color: var(--Text-Heading); +} diff --git a/apps/scandic-web/components/Blocks/HotelListing/index.tsx b/apps/scandic-web/components/Blocks/HotelListing/index.tsx index 31d79d61d..1615a2dd2 100644 --- a/apps/scandic-web/components/Blocks/HotelListing/index.tsx +++ b/apps/scandic-web/components/Blocks/HotelListing/index.tsx @@ -1,10 +1,13 @@ +import { Typography } from "@scandic-hotels/design-system/Typography" + import { getHotelsByCSFilter } from "@/lib/trpc/memoizedRequests" import SectionContainer from "@/components/Section/Container" -import Title from "@/components/TempDesignSystem/Text/Title" import HotelListingItem from "./HotelListingItem" +import styles from "./hotelListing.module.css" + import type { HotelListingProps } from "@/types/components/blocks/hotelListing" export default async function HotelListing({ @@ -24,9 +27,9 @@ export default async function HotelListing({ return ( - - {heading} - + +

{heading}

+
{hotels.map(({ url, hotel, additionalData }) => (