feat: finish my pages overview page according to wireframe
This commit is contained in:
@@ -6,7 +6,7 @@ import Title from "@/components/MyPages/Title"
|
||||
import styles from "./stay.module.css"
|
||||
|
||||
import type { LangParams } from "@/types/params"
|
||||
import type { StayProps } from "@/types/components/myPages/stay"
|
||||
import type { StayProps } from "@/types/components/myPages/stays"
|
||||
|
||||
export default function Stay({
|
||||
dateArrive,
|
||||
@@ -36,7 +36,7 @@ export default function Stay({
|
||||
/>
|
||||
</div>
|
||||
<footer className={styles.footer}>
|
||||
<Title level="h3" uppercase>
|
||||
<Title as="h4" level="h3" uppercase>
|
||||
{hotel}
|
||||
</Title>
|
||||
<section className={styles.container}>
|
||||
|
||||
@@ -4,34 +4,19 @@ import Title from "@/components/MyPages/Title"
|
||||
import styles from "./upcoming.module.css"
|
||||
|
||||
import type { LangParams } from "@/types/params"
|
||||
import type { StaysProps } from "@/types/components/myPages/stays"
|
||||
|
||||
const stays = [
|
||||
{
|
||||
dateArrive: new Date("04 27 2024"),
|
||||
dateDepart: new Date("04 28 2024"),
|
||||
guests: 2,
|
||||
hotel: "Scandic Helsinki Hub",
|
||||
},
|
||||
{
|
||||
dateArrive: new Date("05 27 2024"),
|
||||
dateDepart: new Date("05 28 2024"),
|
||||
guests: 2,
|
||||
hotel: "Scandic Örebro Central",
|
||||
},
|
||||
{
|
||||
dateArrive: new Date("06 27 2024"),
|
||||
dateDepart: new Date("06 28 2024"),
|
||||
guests: 2,
|
||||
hotel: "Scandic Oslo City",
|
||||
},
|
||||
]
|
||||
|
||||
export default function UpcomingStays({ lang }: LangParams) {
|
||||
export default function UpcomingStays({
|
||||
lang,
|
||||
stays,
|
||||
}: StaysProps & LangParams) {
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<Title level="h2" uppercase>
|
||||
Your upcoming stays
|
||||
</Title>
|
||||
<header>
|
||||
<Title level="h2" uppercase>
|
||||
Your upcoming stays
|
||||
</Title>
|
||||
</header>
|
||||
<section className={styles.stays}>
|
||||
{stays.map((stay) => (
|
||||
<Stay key={stay.hotel} {...stay} lang={lang} />
|
||||
|
||||
Reference in New Issue
Block a user