chore: move stub sidepeek to AmenitiesList
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import { ChevronRightIcon } from "@/components/Icons"
|
import { ChevronRightIcon } from "@/components/Icons"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
|
import SidePeekContent from "@/components/TempDesignSystem/SidePeek/Content"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
|
import SidePeekContainer from "../SidePeekContainer"
|
||||||
|
|
||||||
import styles from "./amenitiesList.module.css"
|
import styles from "./amenitiesList.module.css"
|
||||||
|
|
||||||
import { HotelData } from "@/types/hotel"
|
import { HotelData } from "@/types/hotel"
|
||||||
@@ -20,8 +23,9 @@ export default async function AmenitiesList({
|
|||||||
.slice(0, 5)
|
.slice(0, 5)
|
||||||
return (
|
return (
|
||||||
<section className={styles.amenitiesContainer}>
|
<section className={styles.amenitiesContainer}>
|
||||||
{/*TODO: Update to "Subtitle 2" once we have the new tokens. */}
|
<Subtitle type="two" color="black">
|
||||||
<Subtitle color="black">{formatMessage({ id: "At the hotel" })}</Subtitle>
|
{formatMessage({ id: "At the hotel" })}
|
||||||
|
</Subtitle>
|
||||||
<div className={styles.amenityItemList}>
|
<div className={styles.amenityItemList}>
|
||||||
{sortedAmenities.map((facility) => {
|
{sortedAmenities.map((facility) => {
|
||||||
const IconComponent = mapFacilityToIcon(facility.name)
|
const IconComponent = mapFacilityToIcon(facility.name)
|
||||||
@@ -33,11 +37,18 @@ export default async function AmenitiesList({
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
{/*TODO: This should open a side peek. Add once the Side Peek component has been merged. */}
|
<Link href={"?sidepeek=amenities"} color="burgundy" variant="icon">
|
||||||
<Button theme="base" variant="icon" intent="text">
|
|
||||||
{formatMessage({ id: "Show all amenities" })}
|
{formatMessage({ id: "Show all amenities" })}
|
||||||
<ChevronRightIcon />
|
<ChevronRightIcon />
|
||||||
</Button>
|
</Link>
|
||||||
|
<SidePeekContainer>
|
||||||
|
<SidePeekContent
|
||||||
|
contentKey={"amenities"}
|
||||||
|
title={formatMessage({ id: "Amenities" })}
|
||||||
|
>
|
||||||
|
{/* TODO: Render amenities as per the design. */}
|
||||||
|
</SidePeekContent>
|
||||||
|
</SidePeekContainer>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ import { serverClient } from "@/lib/trpc/server"
|
|||||||
import AmenitiesList from "./AmenitiesList"
|
import AmenitiesList from "./AmenitiesList"
|
||||||
import IntroSection from "./IntroSection"
|
import IntroSection from "./IntroSection"
|
||||||
import { Rooms } from "./Rooms"
|
import { Rooms } from "./Rooms"
|
||||||
import SidePeek from "@/components/TempDesignSystem/SidePeek"
|
|
||||||
import SidePeekContent from "@/components/TempDesignSystem/SidePeek/Content"
|
|
||||||
import SidePeekContainer from "./SidePeekContainer"
|
|
||||||
|
|
||||||
import styles from "./hotelPage.module.css"
|
import styles from "./hotelPage.module.css"
|
||||||
|
|
||||||
@@ -40,35 +37,6 @@ export default async function HotelPage({ lang }: LangParams) {
|
|||||||
<AmenitiesList detailedFacilities={attributes.detailedFacilities} />
|
<AmenitiesList detailedFacilities={attributes.detailedFacilities} />
|
||||||
</div>
|
</div>
|
||||||
<Rooms rooms={roomCategories} />
|
<Rooms rooms={roomCategories} />
|
||||||
|
|
||||||
<Link href={"?sidepeek=restaurantbar"} scroll={false}>
|
|
||||||
Restaurant and bar
|
|
||||||
</Link>
|
|
||||||
<Link href={"?sidepeek=gym"} scroll={false}>
|
|
||||||
Gym
|
|
||||||
</Link>
|
|
||||||
<Link href={"?sidepeek=meetings"} scroll={false}>
|
|
||||||
Meetings
|
|
||||||
</Link>
|
|
||||||
<SidePeekContainer>
|
|
||||||
<SidePeekContent contentKey={"restaurantbar"} title={"Food and drinks"}>
|
|
||||||
Food
|
|
||||||
</SidePeekContent>
|
|
||||||
<SidePeekContent contentKey={"gym"} title={"Gym and Wellness"}>
|
|
||||||
<ul>
|
|
||||||
<li>Some</li>
|
|
||||||
<li>JSX</li>
|
|
||||||
<li>Conent</li>
|
|
||||||
<li>here</li>
|
|
||||||
</ul>
|
|
||||||
</SidePeekContent>
|
|
||||||
<SidePeekContent
|
|
||||||
contentKey={"meetings"}
|
|
||||||
title={"Meetings and conferences"}
|
|
||||||
>
|
|
||||||
Meetings
|
|
||||||
</SidePeekContent>
|
|
||||||
</SidePeekContainer>
|
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"Address": "Address",
|
"Address": "Address",
|
||||||
"All rooms comes with standard amenities": "All rooms comes with standard amenities",
|
"All rooms comes with standard amenities": "All rooms comes with standard amenities",
|
||||||
"Already a friend?": "Already a friend?",
|
"Already a friend?": "Already a friend?",
|
||||||
|
"Amenities": "Amenities",
|
||||||
"Arrival date": "Arrival date",
|
"Arrival date": "Arrival date",
|
||||||
"as of today": "as of today",
|
"as of today": "as of today",
|
||||||
"As our": "As our",
|
"As our": "As our",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"Address": "Adress",
|
"Address": "Adress",
|
||||||
"All rooms comes with standard amenities": "Alla rum har standardbekvämligheter",
|
"All rooms comes with standard amenities": "Alla rum har standardbekvämligheter",
|
||||||
"Already a friend?": "Redan en vän?",
|
"Already a friend?": "Redan en vän?",
|
||||||
|
"Amenities": "Bekvämligheter",
|
||||||
"Arrival date": "Ankomstdatum",
|
"Arrival date": "Ankomstdatum",
|
||||||
"as of today": "från och med idag",
|
"as of today": "från och med idag",
|
||||||
"As our": "Som vår",
|
"As our": "Som vår",
|
||||||
|
|||||||
Reference in New Issue
Block a user