diff --git a/src/app/author/page.tsx b/src/app/author/page.tsx new file mode 100644 index 0000000..0a89126 --- /dev/null +++ b/src/app/author/page.tsx @@ -0,0 +1,226 @@ +"use client"; + +import { Tab } from "@headlessui/react"; +import CarCard from "@/components/CarCard"; +import CommentListing from "@/components/CommentListing"; +import ExperiencesCard from "@/components/ExperiencesCard"; +import StartRating from "@/components/StartRating"; +import StayCard from "@/components/StayCard2"; +import { + DEMO_CAR_LISTINGS, + DEMO_EXPERIENCES_LISTINGS, + DEMO_STAY_LISTINGS, +} from "@/data/listings"; +import React, { FC, Fragment, useState } from "react"; +import Avatar from "@/shared/Avatar"; +import ButtonSecondary from "@/shared/ButtonSecondary"; +import SocialsList from "@/shared/SocialsList"; + +export interface AuthorPageProps {} + +const AuthorPage: FC = ({}) => { + let [categories] = useState(["Stays", "Experiences", "Car for rent"]); + + const renderSidebar = () => { + return ( +
+ + + {/* ---- */} +
+

Kevin Francis

+ +
+ + {/* ---- */} +

+ Providing lake views, The Symphony 9 Tam Coc in Ninh Binh provides + accommodation, an outdoor. +

+ + {/* ---- */} + + + {/* ---- */} +
+ + {/* ---- */} +
+
+ + + + + Ha Noi, Viet Nam + +
+
+ + + + + Speaking English + +
+ +
+ + + + + Joined in March 2016 + +
+
+
+ ); + }; + + const renderSection1 = () => { + return ( +
+
+

{`Kevin Francis's listings`}

+ + {`Kevin Francis's listings is very rich, 5 star reviews help him to be + more branded.`} + +
+
+ +
+ + + {categories.map((item) => ( + + {({ selected }) => ( + + )} + + ))} + + + +
+ {DEMO_STAY_LISTINGS.filter((_, i) => i < 4).map((stay) => ( + + ))} +
+
+ Show me more +
+
+ +
+ {DEMO_EXPERIENCES_LISTINGS.filter((_, i) => i < 4).map( + (stay) => ( + + ) + )} +
+
+ Show me more +
+
+ +
+ {DEMO_CAR_LISTINGS.filter((_, i) => i < 4).map((stay) => ( + + ))} +
+
+ Show me more +
+
+
+
+
+
+ ); + }; + + const renderSection2 = () => { + return ( +
+ {/* HEADING */} +

Reviews (23 reviews)

+
+ + {/* comment */} +
+ + + + +
+ View more 20 reviews +
+
+
+ ); + }; + + return ( +
+
+
+
{renderSidebar()}
+
+
+ {renderSection1()} + {renderSection2()} +
+
+
+ ); +}; + +export default AuthorPage;