diff --git a/components/Lightbox/Lightbox.module.css b/components/Lightbox/Lightbox.module.css
index f5446a2aa..ae46b5a0e 100644
--- a/components/Lightbox/Lightbox.module.css
+++ b/components/Lightbox/Lightbox.module.css
@@ -1,3 +1,13 @@
+@keyframes darken-background {
+ from {
+ background-color: rgba(0, 0, 0, 0);
+ }
+
+ to {
+ background-color: rgba(0, 0, 0, 0.5);
+ }
+}
+
.mobileGallery {
height: 100%;
position: relative;
@@ -33,14 +43,22 @@
position: fixed;
top: 50%;
left: 50%;
- z-index: 10;
+ z-index: var(--lightbox-z-index);
}
.overlay {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.5);
- z-index: 10;
+ z-index: var(--lightbox-z-index);
+}
+
+.overlay[data-entering] {
+ animation: darken-background 0.2s;
+}
+
+.overlay[data-exiting] {
+ animation: darken-background 0.2s reverse;
}
.galleryContainer {
diff --git a/components/Lightbox/index.tsx b/components/Lightbox/index.tsx
index b63f10693..f76063848 100644
--- a/components/Lightbox/index.tsx
+++ b/components/Lightbox/index.tsx
@@ -1,7 +1,7 @@
"use client"
-import * as Dialog from "@radix-ui/react-dialog"
import { AnimatePresence, motion } from "framer-motion"
import React, { useState } from "react"
+import { Dialog, Modal, ModalOverlay } from "react-aria-components"
import FullView from "./FullView"
import Gallery from "./Gallery"
@@ -62,20 +62,16 @@ export default function Lightbox({
return (
<>
{triggerElement}
-
-
- {isOpen && (
-
-
-
-
-
+
+
+
+ {isOpen && (
+
-
- )}
-
-
+
+ )}
+
+
+
>
)
}
diff --git a/components/TempDesignSystem/SidePeek/sidePeek.module.css b/components/TempDesignSystem/SidePeek/sidePeek.module.css
index 8282166c1..4c2bb9187 100644
--- a/components/TempDesignSystem/SidePeek/sidePeek.module.css
+++ b/components/TempDesignSystem/SidePeek/sidePeek.module.css
@@ -39,7 +39,7 @@
width: 100%;
height: 100vh;
background-color: var(--Base-Background-Primary-Normal);
- z-index: 100;
+ z-index: var(--sidepeek-z-index);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
}
diff --git a/components/TempDesignSystem/Text/Body/body.module.css b/components/TempDesignSystem/Text/Body/body.module.css
index dd9b85156..85b286b3a 100644
--- a/components/TempDesignSystem/Text/Body/body.module.css
+++ b/components/TempDesignSystem/Text/Body/body.module.css
@@ -80,6 +80,10 @@
color: var(--UI-Text-High-contrast);
}
+.baseTextMediumContrast {
+ color: var(--Base-Text-Medium-contrast);
+}
+
.white {
color: var(--UI-Opacity-White-100);
}
diff --git a/components/TempDesignSystem/Text/Body/variants.ts b/components/TempDesignSystem/Text/Body/variants.ts
index 1663e21f0..324d1baef 100644
--- a/components/TempDesignSystem/Text/Body/variants.ts
+++ b/components/TempDesignSystem/Text/Body/variants.ts
@@ -12,6 +12,7 @@ const config = {
pale: styles.pale,
red: styles.red,
textMediumContrast: styles.textMediumContrast,
+ baseTextMediumContrast: styles.baseTextMediumContrast,
textHighContrast: styles.textHighContrast,
white: styles.white,
peach50: styles.peach50,
diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json
index 1bbfdcd6d..ee5954d7d 100644
--- a/i18n/dictionaries/da.json
+++ b/i18n/dictionaries/da.json
@@ -346,12 +346,14 @@
"Zoom in": "Zoom ind",
"Zoom out": "Zoom ud",
"as of today": "pr. dags dato",
+ "booking.accommodatesUpTo": "Plads til {nrOfGuests, plural, one {# person} other {op til # personer}}",
"booking.adults": "{totalAdults, plural, one {# voksen} other {# voksne}}",
"booking.children": "{totalChildren, plural, one {# barn} other {# børn}}",
"booking.guests": "Maks {nrOfGuests, plural, one {# gæst} other {# gæster}}",
"booking.nights": "{totalNights, plural, one {# nat} other {# nætter}}",
"booking.rooms": "{totalRooms, plural, one {# værelse} other {# værelser}}",
"booking.terms": "Ved at betale med en af de tilgængelige betalingsmetoder, accepterer jeg vilkårene for denne booking og de generelle
Vilkår og betingelser, og forstår, at Scandic vil behandle min personlige data i forbindelse med denne booking i henhold til
Scandics Privatlivspolitik. Jeg accepterer, at Scandic kræver et gyldigt kreditkort under min besøg i tilfælde af, at noget er tilbagebetalt.",
+ "booking.thisRoomIsEquippedWith": "Dette værelse er udstyret med",
"by": "inden",
"characters": "tegn",
"guest": "gæst",
diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json
index a5c32a198..9eb8bd1ec 100644
--- a/i18n/dictionaries/de.json
+++ b/i18n/dictionaries/de.json
@@ -346,12 +346,14 @@
"Zoom in": "Vergrößern",
"Zoom out": "Verkleinern",
"as of today": "Stand heute",
+ "booking.accommodatesUpTo": "Bietet Platz für {nrOfGuests, plural, one {# Person } other {bis zu # Personen}}",
"booking.adults": "{totalAdults, plural, one {# erwachsene} other {# erwachsene}}",
"booking.children": "{totalChildren, plural, one {# kind} other {# kinder}}",
"booking.guests": "Max {nrOfGuests, plural, one {# gast} other {# gäste}}",
"booking.nights": "{totalNights, plural, one {# nacht} other {# Nächte}}",
"booking.rooms": "{totalRooms, plural, one {# zimmer} other {# räume}}",
"booking.terms": "Ved at betale med en af de tilgængelige betalingsmetoder, accepterer jeg vilkårene for denne booking og de generelle
Vilkår og betingelser, og forstår, at Scandic vil behandle min personlige data i forbindelse med denne booking i henhold til
Scandics Privatlivspolitik. Jeg accepterer, at Scandic kræver et gyldigt kreditkort under min besøg i tilfælde af, at noget er tilbagebetalt.",
+ "booking.thisRoomIsEquippedWith": "Dieses Zimmer ist ausgestattet mit",
"by": "bis",
"characters": "figuren",
"guest": "gast",
diff --git a/i18n/dictionaries/en.json b/i18n/dictionaries/en.json
index 2299d715b..f40909ac9 100644
--- a/i18n/dictionaries/en.json
+++ b/i18n/dictionaries/en.json
@@ -364,6 +364,7 @@
"Zoom in": "Zoom in",
"Zoom out": "Zoom out",
"as of today": "as of today",
+ "booking.accommodatesUpTo": "Accommodates up to {nrOfGuests, plural, one {# person} other {# people}}",
"booking.adults": "{totalAdults, plural, one {# adult} other {# adults}}",
"booking.children": "{totalChildren, plural, one {# child} other {# children}}",
"booking.confirmation.text": "Thank you for booking with us! We look forward to welcoming you and hope you have a pleasant stay. If you have any questions or need to make changes to your reservation, please
email us.",
@@ -372,6 +373,7 @@
"booking.nights": "{totalNights, plural, one {# night} other {# nights}}",
"booking.rooms": "{totalRooms, plural, one {# room} other {# rooms}}",
"booking.terms": "By paying with any of the payment methods available, I accept the terms for this booking and the general
Terms & Conditions, and understand that Scandic will process my personal data for this booking in accordance with
Scandic's Privacy policy. I also accept that Scandic require a valid credit card during my visit in case anything is left unpaid.",
+ "booking.thisRoomIsEquippedWith": "This room is equipped with",
"by": "by",
"characters": "characters",
"from": "from",
diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json
index 8a98227fa..b44c6755d 100644
--- a/i18n/dictionaries/fi.json
+++ b/i18n/dictionaries/fi.json
@@ -347,12 +347,14 @@
"Zoom in": "Lähennä",
"Zoom out": "Loitonna",
"as of today": "tänään",
+ "booking.accommodatesUpTo": "Huoneeseen {nrOfGuests, plural, one {# person} other {mahtuu 2 henkilöä}}",
"booking.adults": "{totalAdults, plural, one {# aikuinen} other {# aikuiset}}",
"booking.children": "{totalChildren, plural, one {# lapsi} other {# lasta}}",
"booking.guests": "Max {nrOfGuests, plural, one {# vieras} other {# vieraita}}",
"booking.nights": "{totalNights, plural, one {# yö} other {# yötä}}",
"booking.rooms": "{totalRooms, plural, one {# huone} other {# sviitti}}",
"booking.terms": "Maksamalla minkä tahansa saatavilla olevan maksutavan avulla hyväksyn tämän varauksen ehdot ja yleiset
ehdot ja ehtoja, ja ymmärrän, että Scandic käsittelee minun henkilötietoni tässä varauksessa mukaisesti
Scandicin tietosuojavaltuuden mukaisesti. Hyväksyn myös, että Scandic vaatii validin luottokortin majoituksen ajan, jos jokin jää maksamatta.",
+ "booking.thisRoomIsEquippedWith": "Tämä huone on varustettu",
"by": "mennessä",
"characters": "hahmoja",
"guest": "Vieras",
diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json
index 2feec1e8c..ab4143986 100644
--- a/i18n/dictionaries/no.json
+++ b/i18n/dictionaries/no.json
@@ -344,11 +344,13 @@
"Zoom in": "Zoom inn",
"Zoom out": "Zoom ut",
"as of today": "per i dag",
+ "booking.accommodatesUpTo": "Plass til {nrOfGuests, plural, one {# person} other {opptil # personer}}",
"booking.adults": "{totalAdults, plural, one {# voksen} other {# voksne}}",
"booking.children": "{totalChildren, plural, one {# barn} other {# barn}}",
"booking.guests": "Maks {nrOfGuests, plural, one {# gjest} other {# gjester}}",
"booking.nights": "{totalNights, plural, one {# natt} other {# netter}}",
"booking.rooms": "{totalRooms, plural, one {# rom} other {# rom}}",
+ "booking.thisRoomIsEquippedWith": "Dette rommet er utstyrt med",
"by": "innen",
"characters": "tegn",
"guest": "gjest",
diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json
index 300b0141d..9d7c3b95d 100644
--- a/i18n/dictionaries/sv.json
+++ b/i18n/dictionaries/sv.json
@@ -344,12 +344,14 @@
"Zoom in": "Zooma in",
"Zoom out": "Zooma ut",
"as of today": "från och med idag",
+ "booking.accommodatesUpTo": "Rymmer {nrOfGuests, plural, one {# person} other {upp till # personer}}",
"booking.adults": "{totalAdults, plural, one {# vuxen} other {# vuxna}}",
"booking.children": "{totalChildren, plural, one {# barn} other {# barn}}",
"booking.guests": "Max {nrOfGuests, plural, one {# gäst} other {# gäster}}",
"booking.nights": "{totalNights, plural, one {# natt} other {# nätter}}",
"booking.rooms": "{totalRooms, plural, one {# rum} other {# rum}}",
"booking.terms": "Genom att betala med någon av de tillgängliga betalningsmetoderna accepterar jag villkoren för denna bokning och de generella
Villkoren och villkoren, och förstår att Scandic kommer att behandla min personliga data i samband med denna bokning i enlighet med
Scandics integritetspolicy. Jag accepterar att Scandic kräver ett giltigt kreditkort under min besök i fall att något är tillbaka betalt.",
+ "booking.thisRoomIsEquippedWith": "Detta rum är utrustat med",
"by": "innan",
"characters": "tecken",
"guest": "gäst",
diff --git a/server/routers/hotels/schemas/room.ts b/server/routers/hotels/schemas/room.ts
index bb3f7019c..19f922db0 100644
--- a/server/routers/hotels/schemas/room.ts
+++ b/server/routers/hotels/schemas/room.ts
@@ -89,5 +89,6 @@ export const roomSchema = z
roomSize: data.attributes.roomSize,
sortOrder: data.attributes.sortOrder,
type: data.type,
+ roomFacilities: data.attributes.roomFacilities,
}
})
diff --git a/types/components/hotelReservation/selectRate/roomSidePeek.ts b/types/components/hotelReservation/selectRate/roomSidePeek.ts
new file mode 100644
index 000000000..c526d04b4
--- /dev/null
+++ b/types/components/hotelReservation/selectRate/roomSidePeek.ts
@@ -0,0 +1,8 @@
+import { RoomConfiguration } from "@/server/routers/hotels/output"
+
+import { RoomData } from "@/types/hotel"
+
+export type RoomSidePeekProps = {
+ roomConfiguration: RoomConfiguration
+ selectedRoom?: RoomData
+}