From c435873937eaa772224fceb8d88285ca874068e5 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Wed, 26 Jun 2024 14:52:35 +0200 Subject: [PATCH] feat: add ui for stay card --- components/Icons/Person.tsx | 36 +++++++++++++++++++ components/Icons/index.tsx | 1 + .../MyPages/Blocks/Stays/StayCard/index.tsx | 26 ++++++++------ .../Blocks/Stays/StayCard/stay.module.css | 15 ++++++-- .../Upcoming/EmptyUpcomingStays/index.tsx | 1 - 5 files changed, 66 insertions(+), 13 deletions(-) create mode 100644 components/Icons/Person.tsx diff --git a/components/Icons/Person.tsx b/components/Icons/Person.tsx new file mode 100644 index 000000000..20c66c236 --- /dev/null +++ b/components/Icons/Person.tsx @@ -0,0 +1,36 @@ +import { iconVariants } from "./variants" + +import type { IconProps } from "@/types/components/icon" + +export default function PersonIcon({ className, color, ...props }: IconProps) { + const classNames = iconVariants({ className, color }) + return ( + + + + + + + + + ) +} diff --git a/components/Icons/index.tsx b/components/Icons/index.tsx index 686798aff..4907399f8 100644 --- a/components/Icons/index.tsx +++ b/components/Icons/index.tsx @@ -12,5 +12,6 @@ export { default as HouseIcon } from "./House" export { default as InfoCircleIcon } from "./InfoCircle" export { default as LocationIcon } from "./Location" export { default as LockIcon } from "./Lock" +export { default as PersonIcon } from "./Person" export { default as PhoneIcon } from "./Phone" export { default as PlusCircleIcon } from "./PlusCircle" diff --git a/components/MyPages/Blocks/Stays/StayCard/index.tsx b/components/MyPages/Blocks/Stays/StayCard/index.tsx index 40d8f9f52..5119d098c 100644 --- a/components/MyPages/Blocks/Stays/StayCard/index.tsx +++ b/components/MyPages/Blocks/Stays/StayCard/index.tsx @@ -1,6 +1,6 @@ import { dt } from "@/lib/dt" -import { CalendarIcon } from "@/components/Icons" +import { CalendarIcon, PersonIcon } from "@/components/Icons" import Image from "@/components/Image" import Caption from "@/components/TempDesignSystem/Text/Caption" import Title from "@/components/TempDesignSystem/Text/Title" @@ -32,15 +32,21 @@ export default function StayCard({ stay, lang }: StayCardProps) { {hotelInformation.hotelName} -
- - - - - {" - "} - - - +
+
+ + + + + {" - "} + + + +
+
+ + 2 guests +
diff --git a/components/MyPages/Blocks/Stays/StayCard/stay.module.css b/components/MyPages/Blocks/Stays/StayCard/stay.module.css index c27472ce8..b41d0f6fa 100644 --- a/components/MyPages/Blocks/Stays/StayCard/stay.module.css +++ b/components/MyPages/Blocks/Stays/StayCard/stay.module.css @@ -32,8 +32,19 @@ text-wrap: nowrap; } -.date { +.information { + display: flex; + gap: var(--Spacing-x2); +} + +.date, +.guest { align-items: center; display: flex; gap: var(--Spacing-x-half); -} \ No newline at end of file +} + +.icon { + height: 1.5rem; + width: 1.5rem; +} diff --git a/components/MyPages/Blocks/Stays/Upcoming/EmptyUpcomingStays/index.tsx b/components/MyPages/Blocks/Stays/Upcoming/EmptyUpcomingStays/index.tsx index 9ffeeea60..595103bd8 100644 --- a/components/MyPages/Blocks/Stays/Upcoming/EmptyUpcomingStays/index.tsx +++ b/components/MyPages/Blocks/Stays/Upcoming/EmptyUpcomingStays/index.tsx @@ -2,7 +2,6 @@ import { homeHrefs } from "@/constants/homeHrefs" import { env } from "@/env/server" import { ArrowRightIcon } from "@/components/Icons" -import Button from "@/components/TempDesignSystem/Button" import Link from "@/components/TempDesignSystem/Link" import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n"