feat: add placeholder data
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import HotelCard from "@/components/HotelReservation/SelectHotel/HotelCard"
|
|
||||||
|
|
||||||
import { LangParams, PageArgs } from "@/types/params"
|
import { LangParams, PageArgs } from "@/types/params"
|
||||||
|
|
||||||
export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
|
export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
|
||||||
|
|||||||
@@ -1,9 +1,68 @@
|
|||||||
import HotelCard from "@/components/HotelReservation/SelectHotel/HotelCard"
|
import HotelCard from "@/components/HotelReservation/SelectHotel/HotelCard"
|
||||||
|
import { HotelCardData } from "@/components/HotelReservation/SelectHotel/HotelCard/data"
|
||||||
|
import ListContainer from "@/components/MyPages/Blocks/Stays/ListContainer"
|
||||||
|
|
||||||
export default function SelectHotelPage() {
|
export default function SelectHotelPage() {
|
||||||
|
const hotelData: HotelCardData[] = [
|
||||||
|
{
|
||||||
|
hotel: {
|
||||||
|
name: "Helsinki Hub",
|
||||||
|
address: "Kaisaniemenkatu 7, Helsinki",
|
||||||
|
description:
|
||||||
|
"Modern urban hotel in a impressive 1920s printing house in Helsinki city centre.",
|
||||||
|
rooms: "Only 4 rooms left",
|
||||||
|
button: "Book from 1549 SEK/night",
|
||||||
|
label: [
|
||||||
|
"Free cancellation until 18:00",
|
||||||
|
"Breakfast included",
|
||||||
|
"Free WiFi",
|
||||||
|
"Pay at the hotel",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
hotel: {
|
||||||
|
name: "Stockholm Serenity",
|
||||||
|
address: "Drottninggatan 99, Stockholm",
|
||||||
|
description:
|
||||||
|
"Charming boutique hotel located in the heart of Stockholm with scenic city views.",
|
||||||
|
rooms: "Only 2 rooms left",
|
||||||
|
button: "Book from 1899 SEK/night",
|
||||||
|
label: [
|
||||||
|
"Free cancellation until 18:00",
|
||||||
|
"Breakfast included",
|
||||||
|
"Free WiFi",
|
||||||
|
"Fitness center",
|
||||||
|
"Pet friendly",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
hotel: {
|
||||||
|
name: "Copenhagen Comfort",
|
||||||
|
address: "Vesterbrogade 23, Copenhagen",
|
||||||
|
description:
|
||||||
|
"Elegant hotel offering modern amenities and quick access to Copenhagen's main attractions.",
|
||||||
|
rooms: "Only 3 rooms left",
|
||||||
|
button: "Book from 1725 SEK/night",
|
||||||
|
label: [
|
||||||
|
"Free cancellation until 18:00",
|
||||||
|
"Breakfast included",
|
||||||
|
"Free WiFi",
|
||||||
|
"24-hour front desk",
|
||||||
|
"Airport shuttle",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<HotelCard />
|
<ListContainer>
|
||||||
|
{hotelData.map((data) => (
|
||||||
|
<HotelCard key={data.hotel.name} hotel={data.hotel} />
|
||||||
|
))}
|
||||||
|
</ListContainer>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
10
components/HotelReservation/SelectHotel/HotelCard/data.ts
Normal file
10
components/HotelReservation/SelectHotel/HotelCard/data.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
export interface HotelCardData {
|
||||||
|
hotel: {
|
||||||
|
name: string
|
||||||
|
address: string
|
||||||
|
description: string
|
||||||
|
rooms: string
|
||||||
|
button: string
|
||||||
|
label: string[]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,34 +5,26 @@ import Chip from "@/components/TempDesignSystem/Chip"
|
|||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
|
|
||||||
|
import { HotelCardData } from "./data"
|
||||||
|
|
||||||
import styles from "./hotelCard.module.css"
|
import styles from "./hotelCard.module.css"
|
||||||
|
|
||||||
const chipValues = [
|
export default function HotelCard({ hotel }: HotelCardData) {
|
||||||
"Free cancellation until 18:00",
|
|
||||||
"Breakfast included",
|
|
||||||
"Free WiFi",
|
|
||||||
"Pay at the hotel",
|
|
||||||
]
|
|
||||||
|
|
||||||
export default function HotelCard() {
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.card}>
|
<div className={styles.card}>
|
||||||
<Image src="" alt="hotel image" className={styles.image} />
|
<Image src="" alt="hotel image" className={styles.image} />
|
||||||
<div className={styles.information}>
|
<div className={styles.information}>
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<ScandicLogoIcon color="red" />
|
<ScandicLogoIcon color="red" />
|
||||||
<Title as="h4">Helsinki Hub</Title>
|
<Title as="h4">{hotel.name}</Title>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.description}>
|
<div className={styles.description}>
|
||||||
<span>Kaisaniemenkatu 7, Helsinki</span>
|
<span>{hotel.address}</span>
|
||||||
<span>
|
<span>{hotel.description}</span>
|
||||||
Modern urban hotel in a impressive 1920s printing house in Helsinki
|
|
||||||
city centre.
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.labels}>
|
<div className={styles.labels}>
|
||||||
{chipValues.map((value) => (
|
{hotel.label.map((chip, index) => (
|
||||||
<Chip key={value}>{value}</Chip>
|
<Chip key={`chip-${index}`}>{chip}</Chip>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.book}>
|
<div className={styles.book}>
|
||||||
@@ -42,10 +34,10 @@ export default function HotelCard() {
|
|||||||
size="small"
|
size="small"
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
>
|
>
|
||||||
Book from 1549 SEK/night
|
{hotel.button}
|
||||||
</Button>
|
</Button>
|
||||||
<Body color="burgundy">
|
<Body color="burgundy">
|
||||||
<span>Only 4 rooms left</span>
|
<span>{hotel.rooms}</span>
|
||||||
</Body>
|
</Body>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user