Merged in feat/SW-337-hotel-page-ui (pull request #848)

Feat(SW-337): Update lightbox UI

* chore(SW-337): hotelPage UI fixes

* refactor(SW-337): move width and height as props

* xhore(SW-337): update lightbox UI

* fix(SW-337): move margin

* fix(SW-337): update mobile fullview

* fix(SW-337): remove test border

* fix(SW-337): remove radius on fullview


Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
This commit is contained in:
Matilda Landström
2024-11-08 08:26:37 +00:00
parent de5d80ec92
commit 5fa0c192db
6 changed files with 36 additions and 21 deletions

View File

@@ -56,7 +56,6 @@ export default function MapCard({ hotelName, pois }: MapCardProps) {
intent="secondary" intent="secondary"
size="small" size="small"
fullWidth fullWidth
className={styles.ctaButton}
onClick={openDynamicMap} onClick={openDynamicMap}
> >
{intl.formatMessage({ id: "Explore nearby" })} {intl.formatMessage({ id: "Explore nearby" })}

View File

@@ -10,13 +10,10 @@
border-top-right-radius: var(--Corner-radius-Medium); border-top-right-radius: var(--Corner-radius-Medium);
} }
.ctaButton {
margin-top: var(--Spacing-x2);
}
.poiList { .poiList {
list-style: none; list-style: none;
margin-top: var(--Spacing-x1); margin-top: var(--Spacing-x1);
margin-bottom: var(--Spacing-x2);
} }
.poiItem { .poiItem {

View File

@@ -6,7 +6,7 @@ import Body from "@/components/TempDesignSystem/Text/Body"
import styles from "./counter.module.css" import styles from "./counter.module.css"
import { CounterProps } from "@/types/components/bookingWidget/guestsRoomsPicker" import type { CounterProps } from "@/types/components/bookingWidget/guestsRoomsPicker"
export default function Counter({ export default function Counter({
count, count,

View File

@@ -25,10 +25,16 @@ export default function FullView({
<Button <Button
intent="text" intent="text"
size="small" size="small"
variant="icon"
className={styles.fullViewCloseButton} className={styles.fullViewCloseButton}
onClick={onClose} onClick={onClose}
> >
<CloseIcon color="white" width={32} height={32} /> <CloseIcon
width={32}
height={32}
className={styles.fullViewCloseIcon}
color="white"
/>
</Button> </Button>
<div className={styles.fullViewHeader}> <div className={styles.fullViewHeader}>
<span className={styles.imagePosition}> <span className={styles.imagePosition}>

View File

@@ -47,10 +47,15 @@ export default function Gallery({
intent="text" intent="text"
size="small" size="small"
theme="base" theme="base"
variant="icon"
className={styles.desktopGalleryCloseButton} className={styles.desktopGalleryCloseButton}
onClick={onClose} onClick={onClose}
> >
<CloseIcon width={32} height={32} /> <CloseIcon
width={32}
height={32}
className={styles.desktopGalleryCloseIcon}
/>
</Button> </Button>
{/* Desktop Gallery */} {/* Desktop Gallery */}
<div className={styles.desktopGallery}> <div className={styles.desktopGallery}>

View File

@@ -32,6 +32,11 @@
z-index: 1; z-index: 1;
} }
.fullViewCloseButton:hover .fullViewCloseIcon {
background-color: var(--UI-Text-Medium-contrast);
border-radius: 50%;
}
.leftTransformIcon { .leftTransformIcon {
transform: scaleX(-1); transform: scaleX(-1);
} }
@@ -137,8 +142,10 @@
padding: var(--Spacing-x2); padding: var(--Spacing-x2);
position: relative; position: relative;
align-items: center; align-items: center;
justify-items: center;
display: grid; display: grid;
grid-template-rows: auto 1fr auto; grid-template-rows: auto 1fr auto;
grid-template-columns: 1fr;
place-content: center; place-content: center;
gap: var(--Spacing-x5); gap: var(--Spacing-x5);
} }
@@ -151,8 +158,9 @@
.fullViewImageContainer { .fullViewImageContainer {
position: relative; position: relative;
width: 358px; width: 100%;
height: 240px; height: 100%;
max-height: 25rem;
margin-bottom: var(--Spacing-x5); margin-bottom: var(--Spacing-x5);
} }
@@ -187,17 +195,12 @@
.image { .image {
object-fit: cover; object-fit: cover;
} }
@media (min-width: 768px) and (max-width: 1367px) { @media (min-width: 768px) and (max-width: 1367px) {
.fullViewContainer { .fullViewContainer {
grid-template-columns: 1fr;
justify-items: center;
padding: var(--Spacing-x5); padding: var(--Spacing-x5);
} }
.fullViewImageContainer { .fullViewImageContainer {
position: relative;
width: 100%;
height: 100%; height: 100%;
max-height: 35rem; max-height: 35rem;
} }
@@ -210,13 +213,16 @@
} }
.content { .content {
border-radius: var(--Corner-radius-Large);
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
overflow: hidden; overflow: hidden;
} }
.content:not(.fullViewContent) {
border-radius: var(--Corner-radius-Large);
}
.galleryContent { .galleryContent {
width: 1090px; width: 1090px;
height: 725px; height: 725px;
@@ -246,6 +252,12 @@
position: absolute; position: absolute;
top: var(--Spacing-x-one-and-half); top: var(--Spacing-x-one-and-half);
right: var(--Spacing-x-half); right: var(--Spacing-x-half);
z-index: 1;
}
.desktopGalleryCloseButton:hover .desktopGalleryCloseIcon {
background-color: var(--Base-Surface-Primary-light-Hover-alt);
border-radius: 50%;
} }
.desktopThumbnailGrid { .desktopThumbnailGrid {
@@ -279,17 +291,13 @@
margin-top: 0; margin-top: 0;
padding: var(--Spacing-x5); padding: var(--Spacing-x5);
grid-template-rows: auto 1fr auto; grid-template-rows: auto 1fr auto;
grid-template-columns: 1fr;
justify-items: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.fullViewImageContainer { .fullViewImageContainer {
position: relative; width: 70%;
width: 90%;
max-width: 90.875rem; max-width: 90.875rem;
height: 100%;
max-height: 43.75rem; max-height: 43.75rem;
} }