+
+
{parsedLocation.name}
+
+ {`${selectedFromDate} - ${selectedToDate} (${intl.formatMessage(
+ { id: "booking.nights" },
+ { totalNights: nights }
+ )}) ${intl.formatMessage({ id: "booking.adults" }, { totalAdults })}, ${intl.formatMessage({ id: "booking.rooms" }, { totalRooms })}`}
+
+
+
+
+
+
+ )
+ }
+
+ return (
+
+
+
{intl.formatMessage({ id: "Where to" })}
+
+ {parsedLocation
+ ? parsedLocation.name
+ : intl.formatMessage({ id: "Destination" })}
+
+
+
+
+
+ {intl.formatMessage(
+ { id: "booking.nights" },
+ { totalNights: nights }
+ )}
+
+
+ {selectedFromDate} - {selectedToDate}
+
+
+
+
+
+
+ )
+}
diff --git a/components/BookingWidget/bookingWidget.module.css b/components/BookingWidget/bookingWidget.module.css
index 7e1c1615e..5384dac60 100644
--- a/components/BookingWidget/bookingWidget.module.css
+++ b/components/BookingWidget/bookingWidget.module.css
@@ -1,5 +1,28 @@
-.container {
- display: none;
+@media screen and (max-width: 1366px) {
+ .container {
+ background-color: var(--UI-Input-Controls-Surface-Normal);
+ bottom: -100%;
+ display: grid;
+ gap: var(--Spacing-x3);
+ grid-template-rows: 36px 1fr;
+ height: 100dvh;
+ padding: var(--Spacing-x3) var(--Spacing-x2) var(--Spacing-x7);
+ position: fixed;
+ transition: bottom 300ms ease;
+ width: 100%;
+ z-index: 10000;
+ }
+
+ .container[data-open="true"] {
+ bottom: 0;
+ }
+
+ .close {
+ background: none;
+ border: none;
+ cursor: pointer;
+ justify-self: flex-end;
+ }
}
@media screen and (min-width: 1367px) {
@@ -8,4 +31,8 @@
border-top: 1px solid var(--Base-Border-Subtle);
display: block;
}
+
+ .close {
+ display: none;
+ }
}
diff --git a/components/BookingWidget/index.tsx b/components/BookingWidget/index.tsx
index de5a972ae..1c8b02f8e 100644
--- a/components/BookingWidget/index.tsx
+++ b/components/BookingWidget/index.tsx
@@ -1,8 +1,6 @@
import { getLocations } from "@/lib/trpc/memoizedRequests"
-import Form from "@/components/Forms/BookingWidget"
-
-import styles from "./bookingWidget.module.css"
+import BookingWidgetClient from "./Client"
export function preload() {
void getLocations()
@@ -15,9 +13,5 @@ export default async function BookingWidget() {
return null
}
- return (
-