You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
6.4 KiB

  1. import React from "react";
  2. import SectionHero from "@/app/(server-components)/SectionHero";
  3. import BgGlassmorphism from "@/components/BgGlassmorphism";
  4. import { TaxonomyType } from "@/data/types";
  5. import SectionSliderNewCategories from "@/components/SectionSliderNewCategories";
  6. import SectionOurFeatures from "@/components/SectionOurFeatures";
  7. import BackgroundSection from "@/components/BackgroundSection";
  8. import SectionGridFeaturePlaces from "@/components/SectionGridFeaturePlaces";
  9. import SectionHowItWork from "@/components/SectionHowItWork";
  10. import SectionSubscribe2 from "@/components/SectionSubscribe2";
  11. import SectionGridAuthorBox from "@/components/SectionGridAuthorBox";
  12. import SectionGridCategoryBox from "@/components/SectionGridCategoryBox";
  13. import SectionBecomeAnAuthor from "@/components/SectionBecomeAnAuthor";
  14. import SectionVideos from "@/components/SectionVideos";
  15. import SectionClientSay from "@/components/SectionClientSay";
  16. const DEMO_CATS: TaxonomyType[] = [
  17. {
  18. id: "1",
  19. href: "/listing-stay-map",
  20. name: "New Yourk",
  21. taxonomy: "category",
  22. count: 188288,
  23. thumbnail:
  24. "https://images.pexels.com/photos/64271/queen-of-liberty-statue-of-liberty-new-york-liberty-statue-64271.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260",
  25. },
  26. {
  27. id: "2",
  28. href: "/listing-stay-map",
  29. name: "Singapore",
  30. taxonomy: "category",
  31. count: 188288,
  32. thumbnail:
  33. "https://images.pexels.com/photos/7740160/pexels-photo-7740160.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  34. },
  35. {
  36. id: "3",
  37. href: "/listing-stay-map",
  38. name: "Paris",
  39. taxonomy: "category",
  40. count: 188288,
  41. thumbnail:
  42. "https://images.pexels.com/photos/739407/pexels-photo-739407.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  43. },
  44. {
  45. id: "4",
  46. href: "/listing-stay-map",
  47. name: "London",
  48. taxonomy: "category",
  49. count: 188288,
  50. thumbnail:
  51. "https://images.pexels.com/photos/460672/pexels-photo-460672.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260",
  52. },
  53. {
  54. id: "5",
  55. href: "/listing-stay-map",
  56. name: "Tokyo",
  57. taxonomy: "category",
  58. count: 188288,
  59. thumbnail:
  60. "https://images.pexels.com/photos/4151484/pexels-photo-4151484.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260",
  61. },
  62. {
  63. id: "6",
  64. href: "/listing-stay-map",
  65. name: "Maldives",
  66. taxonomy: "category",
  67. count: 188288,
  68. thumbnail:
  69. "https://images.pexels.com/photos/3250613/pexels-photo-3250613.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  70. },
  71. {
  72. id: "7",
  73. href: "/listing-stay-map",
  74. name: "Italy",
  75. taxonomy: "category",
  76. count: 188288,
  77. thumbnail:
  78. "https://images.pexels.com/photos/7740160/pexels-photo-7740160.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  79. },
  80. ];
  81. const DEMO_CATS_2: TaxonomyType[] = [
  82. {
  83. id: "1",
  84. href: "/listing-stay-map",
  85. name: "Enjoy the great cold",
  86. taxonomy: "category",
  87. count: 188288,
  88. thumbnail:
  89. "https://images.pexels.com/photos/5764100/pexels-photo-5764100.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260",
  90. },
  91. {
  92. id: "2",
  93. href: "/listing-stay-map",
  94. name: "Sleep in a floating way",
  95. taxonomy: "category",
  96. count: 188288,
  97. thumbnail:
  98. "https://images.pexels.com/photos/2869499/pexels-photo-2869499.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  99. },
  100. {
  101. id: "3",
  102. href: "/listing-stay-map",
  103. name: "In the billionaire's house",
  104. taxonomy: "category",
  105. count: 188288,
  106. thumbnail:
  107. "https://images.pexels.com/photos/7031413/pexels-photo-7031413.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  108. },
  109. {
  110. id: "4",
  111. href: "/listing-stay-map",
  112. name: "Cool in the deep forest",
  113. taxonomy: "category",
  114. count: 188288,
  115. thumbnail:
  116. "https://images.pexels.com/photos/247532/pexels-photo-247532.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  117. },
  118. {
  119. id: "5",
  120. href: "/listing-stay-map",
  121. name: "In the billionaire's house",
  122. taxonomy: "category",
  123. count: 188288,
  124. thumbnail:
  125. "https://images.pexels.com/photos/7031413/pexels-photo-7031413.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  126. },
  127. {
  128. id: "6",
  129. href: "/listing-stay-map",
  130. name: "In the billionaire's house",
  131. taxonomy: "category",
  132. count: 188288,
  133. thumbnail:
  134. "https://images.pexels.com/photos/9828170/pexels-photo-9828170.jpeg?auto=compress&cs=tinysrgb&w=1600&lazy=load",
  135. },
  136. {
  137. id: "7",
  138. href: "/listing-stay-map",
  139. name: "Cool in the deep forest",
  140. taxonomy: "category",
  141. count: 188288,
  142. thumbnail:
  143. "https://images.pexels.com/photos/247532/pexels-photo-247532.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
  144. },
  145. ];
  146. function PageHome() {
  147. return (
  148. <main className="nc-PageHome relative overflow-hidden">
  149. {/* GLASSMOPHIN */}
  150. <BgGlassmorphism />
  151. <div className="container relative space-y-24 mb-24 lg:space-y-28 lg:mb-28">
  152. {/* SECTION HERO */}
  153. <SectionHero className="pt-10 lg:pt-16 lg:pb-16" />
  154. {/* SECTION 1 */}
  155. <SectionSliderNewCategories categories={DEMO_CATS} />
  156. <SectionOurFeatures />
  157. <SectionGridFeaturePlaces cardType="card2" />
  158. <SectionHowItWork />
  159. <div className="relative py-16">
  160. <BackgroundSection className="bg-orange-50 dark:bg-black/20" />
  161. <SectionSliderNewCategories
  162. categories={DEMO_CATS_2}
  163. categoryCardType="card4"
  164. itemPerRow={4}
  165. heading="Suggestions for discovery"
  166. subHeading="Popular places to stay that Chisfis recommends for you"
  167. sliderStyle="style2"
  168. />
  169. </div>
  170. <SectionSubscribe2 />
  171. <div className="relative py-16">
  172. <BackgroundSection className="bg-orange-50 dark:bg-black dark:bg-opacity-20 " />
  173. <SectionGridAuthorBox />
  174. </div>
  175. <SectionGridCategoryBox />
  176. <div className="relative py-16">
  177. <BackgroundSection />
  178. <SectionBecomeAnAuthor />
  179. </div>
  180. <SectionSliderNewCategories
  181. heading="Explore by types of stays"
  182. subHeading="Explore houses based on 10 types of stays"
  183. categoryCardType="card5"
  184. itemPerRow={5}
  185. />
  186. <SectionVideos />
  187. <div className="relative py-16">
  188. <BackgroundSection />
  189. <SectionClientSay />
  190. </div>
  191. </div>
  192. </main>
  193. );
  194. }
  195. export default PageHome;