diff --git a/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx index eee6e513d..baf0a2fdd 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/booking-confirmation/page.tsx @@ -1,18 +1,47 @@ -import ConfirmationCard from "@/components/HotelReservation/BookingConfirmation/ConfirmationCard" -import ConfirmationHead from "@/components/HotelReservation/BookingConfirmation/ConfirmationHead" -import ConfirmationSummary from "@/components/HotelReservation/BookingConfirmation/ConfirmationSummary" -import ConfirmationTimes from "@/components/HotelReservation/BookingConfirmation/ConfirmationTimes" +import IntroSection from "@/components/HotelReservation/BookingConfirmation/IntroSection" +import StaySection from "@/components/HotelReservation/BookingConfirmation/StaySection" +import SummarySection from "@/components/HotelReservation/BookingConfirmation/SummarySection" import styles from "./page.module.css" +import { BookingConfirmation } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation" + export default function BookingConfirmationPage() { + const confirmationData: BookingConfirmation = { + email: "lisa.andersson@outlook.com", + hotel: { + name: "Helsinki Hub", + address: "Kaisaniemenkatu 7, Helsinki", + location: "Helsinki", + phone: "+358 300 870680", + image: + "https://test3.scandichotels.com/imagevault/publishedmedia/i11isd60bh119s9486b7/downtown-camper-by-scandic-lobby-reception-desk-ch.jpg?w=640", + checkIn: "15.00", + checkOut: "12.00", + breakfast: { start: "06:30", end: "10:00" }, + }, + stay: { + nights: 1, + start: "2024.03.09", + end: "2024.03.10", + }, + summary: { + roomType: "Standard Room", + bedType: "King size", + breakfast: "Yes", + flexibility: "Yes", + }, + } + return (
- - - - + + +
) diff --git a/components/HotelReservation/BookingConfirmation/ConfirmationCard/index.tsx b/components/HotelReservation/BookingConfirmation/ConfirmationCard/index.tsx deleted file mode 100644 index 3921c9da6..000000000 --- a/components/HotelReservation/BookingConfirmation/ConfirmationCard/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { ArrowRightIcon, ScandicLogoIcon } from "@/components/Icons" -import Image from "@/components/Image" -import Body from "@/components/TempDesignSystem/Text/Body" -import Caption from "@/components/TempDesignSystem/Text/Caption" -import Title from "@/components/TempDesignSystem/Text/Title" - -import styles from "./confirmationCard.module.css" - -export default function ConfirmationCard() { - return ( -
-
- -
-
-
- - - Helsinki Hub - - - Kaisaniemenkatu 7, Helsinki - Call us at +358 300 870680 - -
-
- - 1 night - - 2024.03.09 - - 2024.03.10 - - -
-
-
- ) -} diff --git a/components/HotelReservation/BookingConfirmation/ConfirmationTimes/confirmationTimes.module.css b/components/HotelReservation/BookingConfirmation/ConfirmationTimes/confirmationTimes.module.css deleted file mode 100644 index 2b905c7c5..000000000 --- a/components/HotelReservation/BookingConfirmation/ConfirmationTimes/confirmationTimes.module.css +++ /dev/null @@ -1,18 +0,0 @@ -.section { - display: flex; - justify-content: space-between; - padding: var(--Spacing-x2); - border-radius: var(--Corner-radius-Small); - background-color: var(--Base-Surface-Primary-dark-Normal); - width: 100%; -} - -.breakfast, -.checkIn, -.checkOut { - display: flex; - flex-direction: column; - gap: var(--Spacing-x-half); - font-family: var(--typography-Caption-Regular-fontFamily); - font-size: var(--typography-Caption-Regular-fontSize); -} diff --git a/components/HotelReservation/BookingConfirmation/ConfirmationTimes/index.tsx b/components/HotelReservation/BookingConfirmation/ConfirmationTimes/index.tsx deleted file mode 100644 index 19bb0d71f..000000000 --- a/components/HotelReservation/BookingConfirmation/ConfirmationTimes/index.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from "react" - -import Body from "@/components/TempDesignSystem/Text/Body" -import { getIntl } from "@/i18n" - -import styles from "./confirmationTimes.module.css" - -export default async function ConfirmationTimes() { - const intl = await getIntl() - return ( -
-
- {intl.formatMessage({ id: "Breakfast" })} - Mon-Fri 06:30-10:00 - Mon-Fri 06:30-10:00 -
-
- {intl.formatMessage({ id: "Check in" })} - From - 15:00 -
-
- {intl.formatMessage({ id: "Check out" })} - At latest - 12:00 -
-
- ) -} diff --git a/components/HotelReservation/BookingConfirmation/ConfirmationHead/index.tsx b/components/HotelReservation/BookingConfirmation/IntroSection/index.tsx similarity index 61% rename from components/HotelReservation/BookingConfirmation/ConfirmationHead/index.tsx rename to components/HotelReservation/BookingConfirmation/IntroSection/index.tsx index bc227c7cc..5ae2ae7f8 100644 --- a/components/HotelReservation/BookingConfirmation/ConfirmationHead/index.tsx +++ b/components/HotelReservation/BookingConfirmation/IntroSection/index.tsx @@ -3,23 +3,30 @@ import React from "react" import Button from "@/components/TempDesignSystem/Button" import Body from "@/components/TempDesignSystem/Text/Body" import Title from "@/components/TempDesignSystem/Text/Title" +import { getIntl } from "@/i18n" -import styles from "./confirmationHead.module.css" +import styles from "./introSection.module.css" + +import { IntroSectionProps } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation" + +export default async function IntroSection({ email }: IntroSectionProps) { + const intl = await getIntl() -export default function ConfirmationHead() { return (
- Thank you + {intl.formatMessage({ id: "Thank you" })} - We look forward to your visit! + {intl.formatMessage({ id: "We look forward to your visit!" })}
- We have sent a detailed confirmation of your booking to your email: - lisa.andersson@gmail.com. + {intl.formatMessage({ + id: "We have sent a detailed confirmation of your booking to your email: ", + })} + {email}