diff --git a/src/components/ExperiencesCardH.tsx b/src/components/ExperiencesCardH.tsx new file mode 100644 index 0000000..4b4bbf1 --- /dev/null +++ b/src/components/ExperiencesCardH.tsx @@ -0,0 +1,129 @@ +import React, { FC } from "react"; +import GallerySlider from "@/components/GallerySlider"; +import { DEMO_EXPERIENCES_LISTINGS } from "@/data/listings"; +import { ExperiencesDataType } from "@/data/types"; +import StartRating from "@/components/StartRating"; +import BtnLikeIcon from "@/components/BtnLikeIcon"; +import SaleOffBadge from "@/components/SaleOffBadge"; +import Badge from "@/shared/Badge"; +import Avatar from "@/shared/Avatar"; +import Link from "next/link"; + +export interface ExperiencesCardHProps { + className?: string; + data?: ExperiencesDataType; +} + +const DEMO_DATA: ExperiencesDataType = DEMO_EXPERIENCES_LISTINGS[0]; + +const ExperiencesCardH: FC = ({ + className = "", + data = DEMO_DATA, +}) => { + const { + galleryImgs, + address, + title, + href, + like, + saleOff, + isAds, + price, + reviewStart, + reviewCount, + author, + id, + } = data; + + const renderSliderGallery = () => { + return ( +
+ + + {saleOff && } +
+ ); + }; + + const renderContent = () => { + return ( +
+
+
+ {isAds && } +

+ {title} +

+
+
+ + ยท +
+ + + + {address} +
+
+
+
+ + {`Making a cup of coffee in Vietnam is a whole process that you barely + have free time in the middle. But it's also not a really complicated + task to start the day with`} + +
+
+
+ + + 3 hours + +
+
+ + + Up to 6 people + +
+
+
+
+
+ + + Hosted by{" "} + {author.displayName} + +
+ + {price} + {` `} + + /person + + +
+
+ ); + }; + + return ( +
+ +
+ {renderSliderGallery()} + {renderContent()} +
+
+ ); +}; + +export default ExperiencesCardH;