stay_commerce-frontend 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +8 -0
  5. data/app/assets/builds/404error-RVKQJ4S4.digested.jpg +0 -0
  6. data/app/assets/builds/Facebook-5HJUILVR.digested.svg +3 -0
  7. data/app/assets/builds/Google-CZ3UPVSC.digested.svg +6 -0
  8. data/app/assets/builds/application.js +95 -0
  9. data/app/assets/builds/application.js.map +7 -0
  10. data/app/assets/builds/beach-KAZW5GM3.digested.jpg +0 -0
  11. data/app/assets/builds/beach2-3ARC34NS.digested.jpg +0 -0
  12. data/app/assets/builds/beach3-PSTOH5FV.digested.jpg +0 -0
  13. data/app/assets/builds/beach4-PWNRPD3S.digested.jpg +0 -0
  14. data/app/assets/builds/beach5-SBOKKRHF.digested.jpg +0 -0
  15. data/app/assets/builds/beach6-SXZ5Y5AI.digested.jpg +0 -0
  16. data/app/assets/builds/beach7-FNBMFVKK.digested.jpg +0 -0
  17. data/app/assets/builds/beach8-TD7LTRQM.digested.jpg +0 -0
  18. data/app/assets/builds/bg-image-H7UGUMV2.digested.jpg +0 -0
  19. data/app/assets/builds/bgimage-DU3PCXKN.digested.jpg +0 -0
  20. data/app/assets/builds/bundle.css +30914 -0
  21. data/app/assets/builds/bundle.css.map +7 -0
  22. data/app/assets/builds/bundle.js +74569 -0
  23. data/app/assets/builds/bundle.js.map +7 -0
  24. data/app/assets/builds/hotel1-HGBXPKJK.digested.jpg +0 -0
  25. data/app/assets/builds/logo_updated-KQWAXLYL.digested.png +0 -0
  26. data/app/assets/builds/styles.css +6422 -0
  27. data/app/assets/builds/styles.css.map +7 -0
  28. data/app/assets/config/manifest.js +2 -0
  29. data/app/assets/images/favicon.ico +0 -0
  30. data/app/assets/images/stay_commerce/frontend/beach-666122_1280 (1).jpg +0 -0
  31. data/app/assets/images/stay_commerce/frontend/beach-666122_1280.jpg +0 -0
  32. data/app/assets/stylesheets/stay_commerce/frontend/application.css +15 -0
  33. data/app/controllers/stay_commerce/frontend/application_controller.rb +8 -0
  34. data/app/controllers/stay_commerce/frontend/welcome_controller.rb +6 -0
  35. data/app/helpers/stay_commerce/frontend/application_helper.rb +6 -0
  36. data/app/javascript/Images/404error.jpg +0 -0
  37. data/app/javascript/Images/Facebook.svg +3 -0
  38. data/app/javascript/Images/Google.svg +6 -0
  39. data/app/javascript/Images/beach-2245867_1280.jpg +0 -0
  40. data/app/javascript/Images/beach.jpg +0 -0
  41. data/app/javascript/Images/beach2.jpg +0 -0
  42. data/app/javascript/Images/beach3.jpg +0 -0
  43. data/app/javascript/Images/beach4.jpg +0 -0
  44. data/app/javascript/Images/beach5.jpg +0 -0
  45. data/app/javascript/Images/beach6.jpg +0 -0
  46. data/app/javascript/Images/beach7.jpg +0 -0
  47. data/app/javascript/Images/beach8.jpg +0 -0
  48. data/app/javascript/Images/bg-image.jpg +0 -0
  49. data/app/javascript/Images/bgimage.jpg +0 -0
  50. data/app/javascript/Images/blog-1.jpg +0 -0
  51. data/app/javascript/Images/gallery.png +0 -0
  52. data/app/javascript/Images/home 5.jpg +0 -0
  53. data/app/javascript/Images/home1.jpg +0 -0
  54. data/app/javascript/Images/home2.jpg +0 -0
  55. data/app/javascript/Images/home3.jpg +0 -0
  56. data/app/javascript/Images/home6.jpg +0 -0
  57. data/app/javascript/Images/hotel1.jpg +0 -0
  58. data/app/javascript/Images/room1.jpg +0 -0
  59. data/app/javascript/Images/room2.jpg +0 -0
  60. data/app/javascript/Images/room3.jpg +0 -0
  61. data/app/javascript/Images/room4.jpg +0 -0
  62. data/app/javascript/Images/wine-4520213_1280.jpg +0 -0
  63. data/app/javascript/application.js +1 -0
  64. data/app/javascript/react/Api/apiConstants.js +47 -0
  65. data/app/javascript/react/assets/beach-2245867_1280.jpg +0 -0
  66. data/app/javascript/react/assets/logo.png +0 -0
  67. data/app/javascript/react/assets/logo_updated.png +0 -0
  68. data/app/javascript/react/components/AboutUsPage/AboutPage.jsx +41 -0
  69. data/app/javascript/react/components/AboutusFront/About.jsx +37 -0
  70. data/app/javascript/react/components/Accommodation/Accommodation.jsx +32 -0
  71. data/app/javascript/react/components/Accommodation/NormalListing.jsx +50 -0
  72. data/app/javascript/react/components/Accommodation/SpecialListing.jsx +51 -0
  73. data/app/javascript/react/components/Accountpage/AccountInfo.jsx +217 -0
  74. data/app/javascript/react/components/Accountpage/AccountPage.jsx +27 -0
  75. data/app/javascript/react/components/Accountpage/CommonPage.jsx +24 -0
  76. data/app/javascript/react/components/AddNewProperty/CommonLayout.jsx +68 -0
  77. data/app/javascript/react/components/AddNewProperty/Description.jsx +229 -0
  78. data/app/javascript/react/components/AddNewProperty/Details.jsx +234 -0
  79. data/app/javascript/react/components/AddNewProperty/Images.jsx +196 -0
  80. data/app/javascript/react/components/AddNewProperty/Location.jsx +239 -0
  81. data/app/javascript/react/components/AddNewProperty/Room.jsx +1132 -0
  82. data/app/javascript/react/components/AvatarDropdown/AvatarDropDown.jsx +142 -0
  83. data/app/javascript/react/components/BlogDesign/BlogsLatest.jsx +67 -0
  84. data/app/javascript/react/components/ContactUs/Contact.jsx +89 -0
  85. data/app/javascript/react/components/FacilitiesSection/Facilities.jsx +66 -0
  86. data/app/javascript/react/components/FixedNavbar/FixedNav.jsx +88 -0
  87. data/app/javascript/react/components/ForgetPassword/ForgetPassword.jsx +103 -0
  88. data/app/javascript/react/components/Gallery/Gallery.jsx +164 -0
  89. data/app/javascript/react/components/GalleryModalLight/GalleryModalLight.jsx +35 -0
  90. data/app/javascript/react/components/GallerySlider/GallerySlider.jsx +58 -0
  91. data/app/javascript/react/components/Headers/PropertyCard.jsx +46 -0
  92. data/app/javascript/react/components/HeroSectionDesign/BookingForm.jsx +178 -0
  93. data/app/javascript/react/components/HeroSectionDesign/HeroSection.jsx +29 -0
  94. data/app/javascript/react/components/HeroSectionDesign/MyPropertiesListing.jsx +104 -0
  95. data/app/javascript/react/components/HeroSectionDesign/PropertiesPage.jsx +122 -0
  96. data/app/javascript/react/components/HotelListing/Listing.jsx +48 -0
  97. data/app/javascript/react/components/Layout/Layout.js +18 -0
  98. data/app/javascript/react/components/Listing-stay-Detail/AmenitiesFeatures.jsx +58 -0
  99. data/app/javascript/react/components/Listing-stay-Detail/AmenitiesModal.jsx +250 -0
  100. data/app/javascript/react/components/Listing-stay-Detail/ApartmentCard.jsx +120 -0
  101. data/app/javascript/react/components/Listing-stay-Detail/BookingModal.jsx +398 -0
  102. data/app/javascript/react/components/Listing-stay-Detail/CheckoutForm.jsx +296 -0
  103. data/app/javascript/react/components/Listing-stay-Detail/ListingStayDetailPage.jsx +512 -0
  104. data/app/javascript/react/components/Listing-stay-Detail/PropertyDescription.jsx +76 -0
  105. data/app/javascript/react/components/Listing-stay-Detail/PropertyDetailsCard.jsx +62 -0
  106. data/app/javascript/react/components/Listing-stay-Detail/Reviews.jsx +132 -0
  107. data/app/javascript/react/components/Listing-stay-Detail/RoomDescriptionModal.jsx +105 -0
  108. data/app/javascript/react/components/Listing-stay-Detail/Rules.jsx +23 -0
  109. data/app/javascript/react/components/ListingImageGallery/ListingImageGallery.jsx +30 -0
  110. data/app/javascript/react/components/LoginPage/LoginPage.jsx +115 -0
  111. data/app/javascript/react/components/MobileNav/MobileMenu.jsx +47 -0
  112. data/app/javascript/react/components/Navbar/Navbar.jsx +25 -0
  113. data/app/javascript/react/components/Page404/Page404.jsx +30 -0
  114. data/app/javascript/react/components/PropertyListing/MyProperties.jsx +146 -0
  115. data/app/javascript/react/components/PropertyListing/StayBooking/BookingDetails.jsx +178 -0
  116. data/app/javascript/react/components/PropertyListing/StayBooking/MyBooking.jsx +83 -0
  117. data/app/javascript/react/components/ResetPassword/ResetPassword.jsx +117 -0
  118. data/app/javascript/react/components/SignupPage/SignupPage.jsx +185 -0
  119. data/app/javascript/react/components/SmallNavbar/SmallNav.jsx +51 -0
  120. data/app/javascript/react/components/SocialAuth/SocialAuth.jsx +21 -0
  121. data/app/javascript/react/components/StayCard/StayCard.jsx +69 -0
  122. data/app/javascript/react/components/StayCard/StayCard2.jsx +45 -0
  123. data/app/javascript/react/components/StayCard/StayCard3.jsx +45 -0
  124. data/app/javascript/react/components/TestimonialSection/Testimonial.jsx +113 -0
  125. data/app/javascript/react/components/Unauthorized/Unauthorized.jsx +12 -0
  126. data/app/javascript/react/data/jsons/__countryListing.json +201 -0
  127. data/app/javascript/react/packs/App.js +26 -0
  128. data/app/javascript/react/packs/index.jsx +38 -0
  129. data/app/javascript/react/packs/routes/ParentRoute.jsx +14 -0
  130. data/app/javascript/react/packs/routes/Route.jsx +163 -0
  131. data/app/javascript/react/pages/AccommodationList.jsx +21 -0
  132. data/app/javascript/react/pages/Home.jsx +32 -0
  133. data/app/javascript/react/redux/slices/AuthSlice/AuthSlice.jsx +100 -0
  134. data/app/javascript/react/redux/slices/PropertySlice/PropertySlice.jsx +722 -0
  135. data/app/javascript/react/redux/slices/PropertySlice/Searchslice.jsx +36 -0
  136. data/app/javascript/react/redux/slices/UserSlice/UserSlice.jsx +215 -0
  137. data/app/javascript/react/redux/store.js +35 -0
  138. data/app/javascript/react/shared/Avatar/Avatar.jsx +32 -0
  139. data/app/javascript/react/shared/Badge/Badge.jsx +33 -0
  140. data/app/javascript/react/shared/Button/Button.jsx +67 -0
  141. data/app/javascript/react/shared/Button/ButtonPrimary.jsx +11 -0
  142. data/app/javascript/react/shared/Button/ButtonSelect.jsx +9 -0
  143. data/app/javascript/react/shared/Checkbox/Checkbox.jsx +38 -0
  144. data/app/javascript/react/shared/CurrencySymbol.jsx +6 -0
  145. data/app/javascript/react/shared/DateField/CustomDatePicker.jsx +69 -0
  146. data/app/javascript/react/shared/FooterSection/Footer.jsx +75 -0
  147. data/app/javascript/react/shared/FormField/FormField.jsx +75 -0
  148. data/app/javascript/react/shared/FormItem/FormItem.jsx +20 -0
  149. data/app/javascript/react/shared/Input/Input.jsx +27 -0
  150. data/app/javascript/react/shared/Label/Label.jsx +12 -0
  151. data/app/javascript/react/shared/Modal.jsx +20 -0
  152. data/app/javascript/react/shared/NcImage/NcImage.jsx +101 -0
  153. data/app/javascript/react/shared/NcImage/PlaceIcon.jsx +31 -0
  154. data/app/javascript/react/shared/NcImage/placecImageIcon.svg +6 -0
  155. data/app/javascript/react/shared/Select/Select.jsx +20 -0
  156. data/app/javascript/react/styles/404error.scss +58 -0
  157. data/app/javascript/react/styles/ApartmentCard.scss +126 -0
  158. data/app/javascript/react/styles/BookingDetails.scss +457 -0
  159. data/app/javascript/react/styles/Modal.scss +36 -0
  160. data/app/javascript/react/styles/PropertiesPage.scss +219 -0
  161. data/app/javascript/react/styles/RenderSection.scss +480 -0
  162. data/app/javascript/react/styles/about.scss +97 -0
  163. data/app/javascript/react/styles/accountinfo.scss +67 -0
  164. data/app/javascript/react/styles/accountpage.scss +36 -0
  165. data/app/javascript/react/styles/amenitiesfeatures.scss +223 -0
  166. data/app/javascript/react/styles/application.scss +87 -0
  167. data/app/javascript/react/styles/avatar.scss +39 -0
  168. data/app/javascript/react/styles/avatardropdown.scss +57 -0
  169. data/app/javascript/react/styles/badge.scss +90 -0
  170. data/app/javascript/react/styles/blog.scss +100 -0
  171. data/app/javascript/react/styles/bookingform.scss +124 -0
  172. data/app/javascript/react/styles/button.scss +44 -0
  173. data/app/javascript/react/styles/buttonprimary.scss +32 -0
  174. data/app/javascript/react/styles/checkbox.scss +37 -0
  175. data/app/javascript/react/styles/commonlayout.scss +83 -0
  176. data/app/javascript/react/styles/commonpage.scss +51 -0
  177. data/app/javascript/react/styles/contact.scss +173 -0
  178. data/app/javascript/react/styles/customdatepicker.scss +120 -0
  179. data/app/javascript/react/styles/description.scss +21 -0
  180. data/app/javascript/react/styles/details.scss +88 -0
  181. data/app/javascript/react/styles/facilities.scss +131 -0
  182. data/app/javascript/react/styles/fixednavbar.scss +137 -0
  183. data/app/javascript/react/styles/fonts.scss +22 -0
  184. data/app/javascript/react/styles/footer.scss +300 -0
  185. data/app/javascript/react/styles/forgetpassword.scss +68 -0
  186. data/app/javascript/react/styles/formfield.scss +39 -0
  187. data/app/javascript/react/styles/formitem.scss +20 -0
  188. data/app/javascript/react/styles/gallery.scss +142 -0
  189. data/app/javascript/react/styles/gallerymodallight.scss +137 -0
  190. data/app/javascript/react/styles/galleryslider.scss +114 -0
  191. data/app/javascript/react/styles/header.scss +49 -0
  192. data/app/javascript/react/styles/herosection.scss +61 -0
  193. data/app/javascript/react/styles/images.scss +112 -0
  194. data/app/javascript/react/styles/input.scss +58 -0
  195. data/app/javascript/react/styles/label.scss +11 -0
  196. data/app/javascript/react/styles/listing.scss +94 -0
  197. data/app/javascript/react/styles/listingimagegallery.scss +57 -0
  198. data/app/javascript/react/styles/listingstaydetailpage.scss +887 -0
  199. data/app/javascript/react/styles/location.scss +66 -0
  200. data/app/javascript/react/styles/loginpage.scss +150 -0
  201. data/app/javascript/react/styles/mobilemenu.scss +53 -0
  202. data/app/javascript/react/styles/mybooking.scss +104 -0
  203. data/app/javascript/react/styles/myproperty.scss +51 -0
  204. data/app/javascript/react/styles/ncimage.scss +24 -0
  205. data/app/javascript/react/styles/normallisting.scss +95 -0
  206. data/app/javascript/react/styles/property-description.scss +75 -0
  207. data/app/javascript/react/styles/propertycard.scss +48 -0
  208. data/app/javascript/react/styles/propertydetailscard.scss +302 -0
  209. data/app/javascript/react/styles/resetpassword.scss +79 -0
  210. data/app/javascript/react/styles/reviews.scss +185 -0
  211. data/app/javascript/react/styles/room.scss +275 -0
  212. data/app/javascript/react/styles/rooms.scss +0 -0
  213. data/app/javascript/react/styles/select.scss +44 -0
  214. data/app/javascript/react/styles/signuppage.scss +132 -0
  215. data/app/javascript/react/styles/smallnav.scss +94 -0
  216. data/app/javascript/react/styles/socialauth.scss +62 -0
  217. data/app/javascript/react/styles/speciallisting.scss +94 -0
  218. data/app/javascript/react/styles/staycard.scss +77 -0
  219. data/app/javascript/react/styles/staycard2.scss +115 -0
  220. data/app/javascript/react/styles/testimonial.scss +216 -0
  221. data/app/javascript/react/styles/unauthorized.scss +22 -0
  222. data/app/javascript/react/styles/variables.scss +3 -0
  223. data/app/javascript/react/styles/wrapper.scss +4 -0
  224. data/app/javascript/react/utils/formSchema.js +120 -0
  225. data/app/javascript/react/utils/helpers/APIHelper.jsx +55 -0
  226. data/app/javascript/react/utils/helpers/ErrorHandler.js +21 -0
  227. data/app/javascript/react/utils/helpers/InfoHandler.js +15 -0
  228. data/app/javascript/react/utils/helpers/SuccessHandler.js +12 -0
  229. data/app/javascript/react/utils/helpers/isInViewPortIntersectionObserver.jsx +39 -0
  230. data/app/jobs/stay_commerce/frontend/application_job.rb +6 -0
  231. data/app/mailers/stay_commerce/frontend/application_mailer.rb +8 -0
  232. data/app/models/stay_commerce/frontend/application_record.rb +7 -0
  233. data/app/views/layouts/stay_commerce/frontend/application.html.erb +61 -0
  234. data/app/views/stay_commerce/frontend/welcome/index.html.erb +2 -0
  235. data/config/initializers/cors.rb +6 -0
  236. data/config/initializers/devise.rb +359 -0
  237. data/config/routes.rb +11 -0
  238. data/lib/stay_commerce/frontend/engine.rb +14 -0
  239. data/lib/stay_commerce/frontend/version.rb +5 -0
  240. data/lib/stay_commerce/frontend.rb +8 -0
  241. data/lib/tasks/stay_commerce/frontend_tasks.rake +4 -0
  242. metadata +370 -0
@@ -0,0 +1,69 @@
1
+ import React from "react";
2
+ import { useNavigate } from "react-router-dom";
3
+ import GallerySlider from "../GallerySlider/GallerySlider";
4
+ import "../../styles/staycard.scss";
5
+ import moment from "moment";
6
+ import { useSelector } from "react-redux";
7
+
8
+ const StayCard = ({ booking }) => {
9
+ const navigate = useNavigate();
10
+ const { data: currentUser } = useSelector((state) => state.user);
11
+
12
+ if (!booking) return null;
13
+
14
+ const {
15
+ property,
16
+ status,
17
+ request_by,
18
+ invoice_no,
19
+ check_in_date,
20
+ check_out_date,
21
+ number_of_guests,
22
+ total_amount,
23
+ id,
24
+ } = booking;
25
+ const { place_images, title } = property;
26
+
27
+ const handleCardClick = () => {
28
+ navigate(`/bookingDetails/${id}`);
29
+ };
30
+
31
+ return (
32
+ <div
33
+ className="stay-card"
34
+ onClick={handleCardClick}
35
+ style={{ cursor: "pointer" }}
36
+ >
37
+ <GallerySlider images={place_images} style={{ height: "300px" }} />
38
+
39
+ <div className="stay-card__content">
40
+ <h2 className="stay-card__title">{title}</h2>
41
+ {currentUser?.is_host && (
42
+ <div className="stay-card__info">
43
+ <span>Request by:</span>{" "}
44
+ <span style={{ fontWeight: "bold" }}>{request_by}</span>
45
+ </div>
46
+ )}
47
+ <div className="stay-card__info">
48
+ <span>Period:</span>
49
+ <span style={{ fontWeight: "bold" }}>
50
+ {moment(check_in_date).format("MMM DD, YYYY")} to{" "}
51
+ {moment(check_out_date).format("MMM DD, YYYY")}
52
+ </span>
53
+ </div>
54
+ <div className="stay-card__info">
55
+ <span>Guests:</span>{" "}
56
+ <span style={{ fontWeight: "bold" }}>{number_of_guests}</span>
57
+ </div>
58
+ <div className="stay-card__info">
59
+ <span>Amount Paid:</span>{" "}
60
+ <span style={{ fontWeight: "bold" }}>
61
+ ${total_amount ? Number(total_amount).toFixed(2) : "0.00"}
62
+ </span>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ );
67
+ };
68
+
69
+ export default StayCard;
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { useNavigate } from "react-router-dom";
3
+ import GallerySlider from "../GallerySlider/GallerySlider";
4
+ import "../../styles/staycard.scss";
5
+ import { MapPin } from "lucide-react";
6
+
7
+ const StayCard2 = ({ booking }) => {
8
+ const navigate = useNavigate();
9
+ if (!booking) return null;
10
+ const { place_images, title, price_per_month, slug, city, country } = booking;
11
+ const location = `${city}, ${country}`;
12
+
13
+ const handleCardClick = () => {
14
+ navigate(`/listing-stay-detail/${slug}`);
15
+ };
16
+
17
+ return (
18
+ <div
19
+ className="stay-card"
20
+ onClick={handleCardClick}
21
+ style={{ cursor: "pointer" }}
22
+ >
23
+ <GallerySlider images={place_images} style={{ height: "300px" }} />
24
+
25
+ <div className="stay-card__content">
26
+ <h2 className="stay-card__title">{title}</h2>
27
+ <div className="stay-card__info-location">
28
+ <MapPin className="feature-icon-cards" />
29
+ <span className="listing-location">{location}</span>
30
+ </div>
31
+ <div className="stay-card__info">
32
+ <button
33
+ className="view-details-btn"
34
+ onClick={() => handleClick(property.slug)}
35
+ >
36
+ From - $
37
+ {price_per_month ? Number(price_per_month).toFixed(2) : "0.00"}
38
+ </button>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ );
43
+ };
44
+
45
+ export default StayCard2;
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { useNavigate } from "react-router-dom";
3
+ import GallerySlider from "../GallerySlider/GallerySlider";
4
+ import "../../styles/staycard.scss";
5
+ import { MapPin } from "lucide-react";
6
+
7
+ const StayCard3 = ({ booking }) => {
8
+ const navigate = useNavigate();
9
+ if (!booking) return null;
10
+ const { place_images, title, price_per_month, slug, city, country } = booking;
11
+ const location = `${city}, ${country}`;
12
+
13
+ const handleCardClick = () => {
14
+ navigate(`/listing-stay-detail/${slug}`);
15
+ };
16
+
17
+ return (
18
+ <div
19
+ className="stay-card"
20
+ onClick={handleCardClick}
21
+ style={{ cursor: "pointer" }}
22
+ >
23
+ <GallerySlider images={place_images} style={{ height: "300px" }} />
24
+
25
+ <div className="stay-card__content">
26
+ <h2 className="stay-card__title">{title}</h2>
27
+ <div className="stay-card__info-location">
28
+ <MapPin className="feature-icon-cards" />
29
+ <span className="listing-location">{location}</span>
30
+ </div>
31
+ <div className="stay-card__info">
32
+ <button
33
+ className="view-details-btn"
34
+ onClick={() => handleClick(property.slug)}
35
+ >
36
+ From - $
37
+ {price_per_month ? Number(price_per_month).toFixed(2) : "0.00"}
38
+ </button>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ );
43
+ };
44
+
45
+ export default StayCard3;
@@ -0,0 +1,113 @@
1
+ import React from "react";
2
+ import Slider from "react-slick";
3
+ import "../../styles/testimonial.scss";
4
+ import "../../styles/wrapper.scss";
5
+ import { useEffect } from "react";
6
+
7
+ const Testimonial = () => {
8
+ const testimonials = [
9
+ {
10
+ id: 1,
11
+ name: "Fanny Spencer",
12
+ text: "As conscious traveling Paupers we must always be concerned about our dear Mother Earth. If you think about it, you travel across her face, and She is the",
13
+ rating: 4.5,
14
+ image: "https://randomuser.me/api/portraits/women/44.jpg",
15
+ },
16
+ {
17
+ id: 2,
18
+ name: "Fanny Spencer",
19
+ text: "As conscious traveling Paupers we must always be concerned about our dear Mother Earth. If you think about it, you travel across her face, and She is the",
20
+ rating: 4.5,
21
+ image: "https://randomuser.me/api/portraits/women/45.jpg",
22
+ },
23
+ {
24
+ id: 3,
25
+ name: "John Doe",
26
+ text: "As conscious traveling Paupers we must always be concerned about our dear Mother Earth. If you think about it, you travel across her face, and She is the",
27
+ rating: 5,
28
+ image: "https://randomuser.me/api/portraits/women/44.jpg",
29
+ },
30
+ {
31
+ id: 4,
32
+ name: "Jane Smith",
33
+ text: "As conscious traveling Paupers we must always be concerned about our dear Mother Earth. If you think about it, you travel across her face, and She is the",
34
+ rating: 4,
35
+ image: "https://randomuser.me/api/portraits/women/45.jpg",
36
+ },
37
+ ];
38
+ const settings = {
39
+ dots: true,
40
+ infinite: true,
41
+ speed: 500,
42
+ slidesToShow: 2,
43
+ slidesToScroll: 1,
44
+ autoplay: true,
45
+ autoplaySpeed: 5000,
46
+ pauseOnHover: true,
47
+ arrows: false,
48
+ prevArrow: <button type="button" className="slick-prev"></button>,
49
+ nextArrow: <button type="button" className="slick-next"></button>,
50
+ responsive: [
51
+ {
52
+ breakpoint: 1024,
53
+ settings: {
54
+ slidesToShow: 2,
55
+ },
56
+ },
57
+ {
58
+ breakpoint: 768,
59
+ settings: {
60
+ slidesToShow: 1,
61
+ },
62
+ },
63
+ ],
64
+
65
+ customPaging: (i) => <div className="custom-dot"></div>,
66
+ };
67
+
68
+ return (
69
+ <div className="testimonial-section">
70
+ <div className="wrapper">
71
+ <div className="testimonial-container">
72
+ <h2>Testimonial from our Clients</h2>
73
+ <p className="subtitle">
74
+ The French Revolution constituted for the conscience of the dominant
75
+ aristocratic class a fall from
76
+ </p>
77
+
78
+ <Slider {...settings} className="testimonial-slider">
79
+ {testimonials.map((testimonial) => (
80
+ <div key={testimonial.id} className="testimonial-slide">
81
+ <div className="testimonial-card">
82
+ <div className="client-image">
83
+ <img src={testimonial.image} alt={testimonial.name} />
84
+ </div>
85
+ <div className="testimonial-content">
86
+ <p className="client-quote">{testimonial.text}</p>
87
+ <h3 className="client-name">{testimonial.name}</h3>
88
+ <div className="client-rating">
89
+ {Array.from({ length: 5 }, (_, i) => (
90
+ <span
91
+ key={i}
92
+ className={
93
+ i < Math.floor(testimonial.rating)
94
+ ? "star filled"
95
+ : "star empty"
96
+ }
97
+ >
98
+ {i + 0.5 === testimonial.rating ? "⭐" : "☆"}
99
+ </span>
100
+ ))}
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ ))}
106
+ </Slider>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ );
111
+ };
112
+
113
+ export default Testimonial;
@@ -0,0 +1,12 @@
1
+ // pages/Unauthorized.jsx
2
+ import React from "react";
3
+ import "../../styles/unauthorized.scss"
4
+
5
+ const Unauthorized = () => (
6
+ <div className="unauthorized">
7
+ <h1 className="unauthorized__title">403 - Unauthorized</h1>
8
+ <p className="unauthorized__message">You do not have permission to view this page.</p>
9
+ </div>
10
+ );
11
+
12
+ export default Unauthorized;
@@ -0,0 +1,201 @@
1
+ [
2
+ { "code": "AF", "name": "Afghanistan" },
3
+ { "code": "AL", "name": "Albania" },
4
+ { "code": "DZ", "name": "Algeria" },
5
+ { "code": "AS", "name": "American Samoa" },
6
+ { "code": "AD", "name": "Andorra" },
7
+ { "code": "AO", "name": "Angola" },
8
+ { "code": "AI", "name": "Anguilla" },
9
+ { "code": "AQ", "name": "Antarctica" },
10
+ { "code": "AG", "name": "Antigua and Barbuda" },
11
+ { "code": "AR", "name": "Argentina" },
12
+ { "code": "AM", "name": "Armenia" },
13
+ { "code": "AW", "name": "Aruba" },
14
+ { "code": "AU", "name": "Australia" },
15
+ { "code": "AT", "name": "Austria" },
16
+ { "code": "AZ", "name": "Azerbaijan" },
17
+ { "code": "BS", "name": "Bahamas" },
18
+ { "code": "BH", "name": "Bahrain" },
19
+ { "code": "BD", "name": "Bangladesh" },
20
+ { "code": "BB", "name": "Barbados" },
21
+ { "code": "BY", "name": "Belarus" },
22
+ { "code": "BE", "name": "Belgium" },
23
+ { "code": "BZ", "name": "Belize" },
24
+ { "code": "BJ", "name": "Benin" },
25
+ { "code": "BM", "name": "Bermuda" },
26
+ { "code": "BT", "name": "Bhutan" },
27
+ { "code": "BO", "name": "Bolivia" },
28
+ { "code": "BA", "name": "Bosnia and Herzegovina" },
29
+ { "code": "BW", "name": "Botswana" },
30
+ { "code": "BR", "name": "Brazil" },
31
+ { "code": "BN", "name": "Brunei Darussalam" },
32
+ { "code": "BG", "name": "Bulgaria" },
33
+ { "code": "BF", "name": "Burkina Faso" },
34
+ { "code": "BI", "name": "Burundi" },
35
+ { "code": "KH", "name": "Cambodia" },
36
+ { "code": "CM", "name": "Cameroon" },
37
+ { "code": "CA", "name": "Canada" },
38
+ { "code": "CV", "name": "Cape Verde" },
39
+ { "code": "KY", "name": "Cayman Islands" },
40
+ { "code": "CF", "name": "Central African Republic" },
41
+ { "code": "TD", "name": "Chad" },
42
+ { "code": "CL", "name": "Chile" },
43
+ { "code": "CN", "name": "China" },
44
+ { "code": "CO", "name": "Colombia" },
45
+ { "code": "KM", "name": "Comoros" },
46
+ { "code": "CG", "name": "Congo" },
47
+ { "code": "CD", "name": "Congo, Democratic Republic of the" },
48
+ { "code": "CR", "name": "Costa Rica" },
49
+ { "code": "HR", "name": "Croatia" },
50
+ { "code": "CU", "name": "Cuba" },
51
+ { "code": "CY", "name": "Cyprus" },
52
+ { "code": "CZ", "name": "Czech Republic" },
53
+ { "code": "DK", "name": "Denmark" },
54
+ { "code": "DJ", "name": "Djibouti" },
55
+ { "code": "DM", "name": "Dominica" },
56
+ { "code": "DO", "name": "Dominican Republic" },
57
+ { "code": "EC", "name": "Ecuador" },
58
+ { "code": "EG", "name": "Egypt" },
59
+ { "code": "SV", "name": "El Salvador" },
60
+ { "code": "GQ", "name": "Equatorial Guinea" },
61
+ { "code": "ER", "name": "Eritrea" },
62
+ { "code": "EE", "name": "Estonia" },
63
+ { "code": "ET", "name": "Ethiopia" },
64
+ { "code": "FJ", "name": "Fiji" },
65
+ { "code": "FI", "name": "Finland" },
66
+ { "code": "FR", "name": "France" },
67
+ { "code": "GA", "name": "Gabon" },
68
+ { "code": "GM", "name": "Gambia" },
69
+ { "code": "GE", "name": "Georgia" },
70
+ { "code": "DE", "name": "Germany" },
71
+ { "code": "GH", "name": "Ghana" },
72
+ { "code": "GR", "name": "Greece" },
73
+ { "code": "GD", "name": "Grenada" },
74
+ { "code": "GT", "name": "Guatemala" },
75
+ { "code": "GN", "name": "Guinea" },
76
+ { "code": "GW", "name": "Guinea-Bissau" },
77
+ { "code": "GY", "name": "Guyana" },
78
+ { "code": "HT", "name": "Haiti" },
79
+ { "code": "HN", "name": "Honduras" },
80
+ { "code": "HU", "name": "Hungary" },
81
+ { "code": "IS", "name": "Iceland" },
82
+ { "code": "IN", "name": "India" },
83
+ { "code": "ID", "name": "Indonesia" },
84
+ { "code": "IR", "name": "Iran" },
85
+ { "code": "IQ", "name": "Iraq" },
86
+ { "code": "IE", "name": "Ireland" },
87
+ { "code": "IL", "name": "Israel" },
88
+ { "code": "IT", "name": "Italy" },
89
+ { "code": "JM", "name": "Jamaica" },
90
+ { "code": "JP", "name": "Japan" },
91
+ { "code": "JO", "name": "Jordan" },
92
+ { "code": "KZ", "name": "Kazakhstan" },
93
+ { "code": "KE", "name": "Kenya" },
94
+ { "code": "KI", "name": "Kiribati" },
95
+ { "code": "KP", "name": "Korea, Democratic People's Republic of" },
96
+ { "code": "KR", "name": "Korea, Republic of" },
97
+ { "code": "KW", "name": "Kuwait" },
98
+ { "code": "KG", "name": "Kyrgyzstan" },
99
+ { "code": "LA", "name": "Lao People's Democratic Republic" },
100
+ { "code": "LV", "name": "Latvia" },
101
+ { "code": "LB", "name": "Lebanon" },
102
+ { "code": "LS", "name": "Lesotho" },
103
+ { "code": "LR", "name": "Liberia" },
104
+ { "code": "LY", "name": "Libya" },
105
+ { "code": "LI", "name": "Liechtenstein" },
106
+ { "code": "LT", "name": "Lithuania" },
107
+ { "code": "LU", "name": "Luxembourg" },
108
+ { "code": "MG", "name": "Madagascar" },
109
+ { "code": "MW", "name": "Malawi" },
110
+ { "code": "MY", "name": "Malaysia" },
111
+ { "code": "MV", "name": "Maldives" },
112
+ { "code": "ML", "name": "Mali" },
113
+ { "code": "MT", "name": "Malta" },
114
+ { "code": "MH", "name": "Marshall Islands" },
115
+ { "code": "MR", "name": "Mauritania" },
116
+ { "code": "MU", "name": "Mauritius" },
117
+ { "code": "MX", "name": "Mexico" },
118
+ { "code": "FM", "name": "Micronesia" },
119
+ { "code": "MD", "name": "Moldova" },
120
+ { "code": "MC", "name": "Monaco" },
121
+ { "code": "MN", "name": "Mongolia" },
122
+ { "code": "ME", "name": "Montenegro" },
123
+ { "code": "MA", "name": "Morocco" },
124
+ { "code": "MZ", "name": "Mozambique" },
125
+ { "code": "MM", "name": "Myanmar" },
126
+ { "code": "NA", "name": "Namibia" },
127
+ { "code": "NR", "name": "Nauru" },
128
+ { "code": "NP", "name": "Nepal" },
129
+ { "code": "NL", "name": "Netherlands" },
130
+ { "code": "NZ", "name": "New Zealand" },
131
+ { "code": "NI", "name": "Nicaragua" },
132
+ { "code": "NE", "name": "Niger" },
133
+ { "code": "NG", "name": "Nigeria" },
134
+ { "code": "NO", "name": "Norway" },
135
+ { "code": "OM", "name": "Oman" },
136
+ { "code": "PK", "name": "Pakistan" },
137
+ { "code": "PW", "name": "Palau" },
138
+ { "code": "PA", "name": "Panama" },
139
+ { "code": "PG", "name": "Papua New Guinea" },
140
+ { "code": "PY", "name": "Paraguay" },
141
+ { "code": "PE", "name": "Peru" },
142
+ { "code": "PH", "name": "Philippines" },
143
+ { "code": "PL", "name": "Poland" },
144
+ { "code": "PT", "name": "Portugal" },
145
+ { "code": "QA", "name": "Qatar" },
146
+ { "code": "RO", "name": "Romania" },
147
+ { "code": "RU", "name": "Russian Federation" },
148
+ { "code": "RW", "name": "Rwanda" },
149
+ { "code": "KN", "name": "Saint Kitts and Nevis" },
150
+ { "code": "LC", "name": "Saint Lucia" },
151
+ { "code": "VC", "name": "Saint Vincent and the Grenadines" },
152
+ { "code": "WS", "name": "Samoa" },
153
+ { "code": "SM", "name": "San Marino" },
154
+ { "code": "ST", "name": "Sao Tome and Principe" },
155
+ { "code": "SA", "name": "Saudi Arabia" },
156
+ { "code": "SN", "name": "Senegal" },
157
+ { "code": "RS", "name": "Serbia" },
158
+ { "code": "SC", "name": "Seychelles" },
159
+ { "code": "SL", "name": "Sierra Leone" },
160
+ { "code": "SG", "name": "Singapore" },
161
+ { "code": "SK", "name": "Slovakia" },
162
+ { "code": "SI", "name": "Slovenia" },
163
+ { "code": "SB", "name": "Solomon Islands" },
164
+ { "code": "SO", "name": "Somalia" },
165
+ { "code": "ZA", "name": "South Africa" },
166
+ { "code": "SS", "name": "South Sudan" },
167
+ { "code": "ES", "name": "Spain" },
168
+ { "code": "LK", "name": "Sri Lanka" },
169
+ { "code": "SD", "name": "Sudan" },
170
+ { "code": "SR", "name": "Suriname" },
171
+ { "code": "SZ", "name": "Swaziland" },
172
+ { "code": "SE", "name": "Sweden" },
173
+ { "code": "CH", "name": "Switzerland" },
174
+ { "code": "SY", "name": "Syrian Arab Republic" },
175
+ { "code": "TW", "name": "Taiwan" },
176
+ { "code": "TJ", "name": "Tajikistan" },
177
+ { "code": "TZ", "name": "Tanzania" },
178
+ { "code": "TH", "name": "Thailand" },
179
+ { "code": "TL", "name": "Timor-Leste" },
180
+ { "code": "TG", "name": "Togo" },
181
+ { "code": "TO", "name": "Tonga" },
182
+ { "code": "TT", "name": "Trinidad and Tobago" },
183
+ { "code": "TN", "name": "Tunisia" },
184
+ { "code": "TR", "name": "Turkey" },
185
+ { "code": "TM", "name": "Turkmenistan" },
186
+ { "code": "TV", "name": "Tuvalu" },
187
+ { "code": "UG", "name": "Uganda" },
188
+ { "code": "UA", "name": "Ukraine" },
189
+ { "code": "AE", "name": "United Arab Emirates" },
190
+ { "code": "GB", "name": "United Kingdom" },
191
+ { "code": "US", "name": "United States" },
192
+ { "code": "UY", "name": "Uruguay" },
193
+ { "code": "UZ", "name": "Uzbekistan" },
194
+ { "code": "VU", "name": "Vanuatu" },
195
+ { "code": "VE", "name": "Venezuela" },
196
+ { "code": "VN", "name": "Viet Nam" },
197
+ { "code": "YE", "name": "Yemen" },
198
+ { "code": "ZM", "name": "Zambia" },
199
+ { "code": "ZW", "name": "Zimbabwe" }
200
+ ]
201
+
@@ -0,0 +1,26 @@
1
+ import React, { useEffect } from "react";
2
+ import { RouterProvider } from "react-router-dom";
3
+ import router from "./routes/router"; // Adjust the path if needed
4
+ import { useDispatch } from "react-redux";
5
+ import { loginSuccess } from "../redux/slices/AuthSlice/AuthSlice";
6
+ import { getCurrentUser } from "../redux/slices/UserSlice/UserSlice";
7
+ // import "../Style/index.css";
8
+
9
+ function App() {
10
+
11
+ const dispatch = useDispatch();
12
+
13
+ useEffect(() => {
14
+ const storedUser = JSON.parse(localStorage.getItem("user"));
15
+ const token = localStorage.getItem("authToken");
16
+
17
+ if (token) {
18
+ dispatch(loginSuccess(storedUser)); // ✅ Restore user session
19
+ dispatch(getCurrentUser());
20
+ }
21
+ }, [dispatch]);
22
+
23
+ return <RouterProvider router={router} />;
24
+ }
25
+
26
+ export default App;
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ import ReactDOM from "react-dom/client";
3
+ import ParentRoute from "./routes/ParentRoute";
4
+ import "../styles/application.scss";
5
+ import "bootstrap/dist/css/bootstrap.min.css";
6
+ import { Provider } from "react-redux";
7
+ import store, { persistor } from "../redux/store";
8
+ import { ToastContainer } from "react-toastify";
9
+ import "react-toastify/dist/ReactToastify.css";
10
+ import { PersistGate } from "redux-persist/integration/react";
11
+ import { MantineProvider } from "@mantine/core";
12
+ import "@mantine/core/styles.css";
13
+ import "@mantine/dates/styles.css";
14
+ import { Elements } from "@stripe/react-stripe-js";
15
+ import { loadStripe } from "@stripe/stripe-js";
16
+ const stripePromise = loadStripe(
17
+ "pk_test_51LCfAAJQIRLPDLbLcKwKmAbKIHjTiJYCUsWXxfbQ0UlF5N3AO2tfLgKXt4GPI7UZYJUVHi94Q4TEol5YN1PQD4AI00N1uBrnnR"
18
+ );
19
+
20
+ const rootElement = document.getElementById("root");
21
+
22
+ if (rootElement) {
23
+ const root = ReactDOM.createRoot(rootElement);
24
+ root.render(
25
+ <Provider store={store}>
26
+ <PersistGate loading={null} persistor={persistor}>
27
+ <MantineProvider withGlobalStyles withNormalizeCSS>
28
+ <Elements stripe={stripePromise}>
29
+ <>
30
+ <ParentRoute />
31
+ <ToastContainer position="top-right" autoClose={5000} />
32
+ </>
33
+ </Elements>
34
+ </MantineProvider>
35
+ </PersistGate>
36
+ </Provider>
37
+ );
38
+ }
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { RouterProvider } from "react-router-dom";
3
+ import router from "./Route";
4
+
5
+ function ParentRoute() {
6
+ return (
7
+ <div>
8
+ <RouterProvider router={router} />
9
+ </div>
10
+ );
11
+ }
12
+
13
+ export default ParentRoute;
14
+