feat(SW-302): switch out mock data for facility cards

This commit is contained in:
Matilda Landström
2024-09-17 15:17:15 +02:00
parent 8d5ed30fc4
commit 86dd3c04ed
22 changed files with 289 additions and 16938 deletions

View File

@@ -1,7 +1,6 @@
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
import type { FacilityCard } from "./hotelPage/facilities"
export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
card: FacilityCard | undefined
card: CardProps | undefined
imageCards: Pick<CardProps, "backgroundImage">[]
}

View File

@@ -1,12 +1,6 @@
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
interface ColumnSpanOptions {
columnSpan: "one" | "two" | "three"
}
export type FacilityCard = CardProps & ColumnSpanOptions
export type Facility = Array<FacilityCard>
export type Facility = Array<CardProps>
export type Facilities = Array<Facility>
@@ -17,3 +11,9 @@ export type FacilityProps = {
export type CardGridProps = {
facility: Facility
}
export enum facilityEnum {
wellness = "wellness-and-exercise",
conference = "meetings-and-conferences",
restaurant = "restaurant-and-bar",
}

View File

@@ -0,0 +1,8 @@
export type ApiImage = {
url: string
title: string
meta: {
alt: string
caption: string
}
}