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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +8 -0
- data/app/assets/builds/404error-RVKQJ4S4.digested.jpg +0 -0
- data/app/assets/builds/Facebook-5HJUILVR.digested.svg +3 -0
- data/app/assets/builds/Google-CZ3UPVSC.digested.svg +6 -0
- data/app/assets/builds/application.js +95 -0
- data/app/assets/builds/application.js.map +7 -0
- data/app/assets/builds/beach-KAZW5GM3.digested.jpg +0 -0
- data/app/assets/builds/beach2-3ARC34NS.digested.jpg +0 -0
- data/app/assets/builds/beach3-PSTOH5FV.digested.jpg +0 -0
- data/app/assets/builds/beach4-PWNRPD3S.digested.jpg +0 -0
- data/app/assets/builds/beach5-SBOKKRHF.digested.jpg +0 -0
- data/app/assets/builds/beach6-SXZ5Y5AI.digested.jpg +0 -0
- data/app/assets/builds/beach7-FNBMFVKK.digested.jpg +0 -0
- data/app/assets/builds/beach8-TD7LTRQM.digested.jpg +0 -0
- data/app/assets/builds/bg-image-H7UGUMV2.digested.jpg +0 -0
- data/app/assets/builds/bgimage-DU3PCXKN.digested.jpg +0 -0
- data/app/assets/builds/bundle.css +30914 -0
- data/app/assets/builds/bundle.css.map +7 -0
- data/app/assets/builds/bundle.js +74569 -0
- data/app/assets/builds/bundle.js.map +7 -0
- data/app/assets/builds/hotel1-HGBXPKJK.digested.jpg +0 -0
- data/app/assets/builds/logo_updated-KQWAXLYL.digested.png +0 -0
- data/app/assets/builds/styles.css +6422 -0
- data/app/assets/builds/styles.css.map +7 -0
- data/app/assets/config/manifest.js +2 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/stay_commerce/frontend/beach-666122_1280 (1).jpg +0 -0
- data/app/assets/images/stay_commerce/frontend/beach-666122_1280.jpg +0 -0
- data/app/assets/stylesheets/stay_commerce/frontend/application.css +15 -0
- data/app/controllers/stay_commerce/frontend/application_controller.rb +8 -0
- data/app/controllers/stay_commerce/frontend/welcome_controller.rb +6 -0
- data/app/helpers/stay_commerce/frontend/application_helper.rb +6 -0
- data/app/javascript/Images/404error.jpg +0 -0
- data/app/javascript/Images/Facebook.svg +3 -0
- data/app/javascript/Images/Google.svg +6 -0
- data/app/javascript/Images/beach-2245867_1280.jpg +0 -0
- data/app/javascript/Images/beach.jpg +0 -0
- data/app/javascript/Images/beach2.jpg +0 -0
- data/app/javascript/Images/beach3.jpg +0 -0
- data/app/javascript/Images/beach4.jpg +0 -0
- data/app/javascript/Images/beach5.jpg +0 -0
- data/app/javascript/Images/beach6.jpg +0 -0
- data/app/javascript/Images/beach7.jpg +0 -0
- data/app/javascript/Images/beach8.jpg +0 -0
- data/app/javascript/Images/bg-image.jpg +0 -0
- data/app/javascript/Images/bgimage.jpg +0 -0
- data/app/javascript/Images/blog-1.jpg +0 -0
- data/app/javascript/Images/gallery.png +0 -0
- data/app/javascript/Images/home 5.jpg +0 -0
- data/app/javascript/Images/home1.jpg +0 -0
- data/app/javascript/Images/home2.jpg +0 -0
- data/app/javascript/Images/home3.jpg +0 -0
- data/app/javascript/Images/home6.jpg +0 -0
- data/app/javascript/Images/hotel1.jpg +0 -0
- data/app/javascript/Images/room1.jpg +0 -0
- data/app/javascript/Images/room2.jpg +0 -0
- data/app/javascript/Images/room3.jpg +0 -0
- data/app/javascript/Images/room4.jpg +0 -0
- data/app/javascript/Images/wine-4520213_1280.jpg +0 -0
- data/app/javascript/application.js +1 -0
- data/app/javascript/react/Api/apiConstants.js +47 -0
- data/app/javascript/react/assets/beach-2245867_1280.jpg +0 -0
- data/app/javascript/react/assets/logo.png +0 -0
- data/app/javascript/react/assets/logo_updated.png +0 -0
- data/app/javascript/react/components/AboutUsPage/AboutPage.jsx +41 -0
- data/app/javascript/react/components/AboutusFront/About.jsx +37 -0
- data/app/javascript/react/components/Accommodation/Accommodation.jsx +32 -0
- data/app/javascript/react/components/Accommodation/NormalListing.jsx +50 -0
- data/app/javascript/react/components/Accommodation/SpecialListing.jsx +51 -0
- data/app/javascript/react/components/Accountpage/AccountInfo.jsx +217 -0
- data/app/javascript/react/components/Accountpage/AccountPage.jsx +27 -0
- data/app/javascript/react/components/Accountpage/CommonPage.jsx +24 -0
- data/app/javascript/react/components/AddNewProperty/CommonLayout.jsx +68 -0
- data/app/javascript/react/components/AddNewProperty/Description.jsx +229 -0
- data/app/javascript/react/components/AddNewProperty/Details.jsx +234 -0
- data/app/javascript/react/components/AddNewProperty/Images.jsx +196 -0
- data/app/javascript/react/components/AddNewProperty/Location.jsx +239 -0
- data/app/javascript/react/components/AddNewProperty/Room.jsx +1132 -0
- data/app/javascript/react/components/AvatarDropdown/AvatarDropDown.jsx +142 -0
- data/app/javascript/react/components/BlogDesign/BlogsLatest.jsx +67 -0
- data/app/javascript/react/components/ContactUs/Contact.jsx +89 -0
- data/app/javascript/react/components/FacilitiesSection/Facilities.jsx +66 -0
- data/app/javascript/react/components/FixedNavbar/FixedNav.jsx +88 -0
- data/app/javascript/react/components/ForgetPassword/ForgetPassword.jsx +103 -0
- data/app/javascript/react/components/Gallery/Gallery.jsx +164 -0
- data/app/javascript/react/components/GalleryModalLight/GalleryModalLight.jsx +35 -0
- data/app/javascript/react/components/GallerySlider/GallerySlider.jsx +58 -0
- data/app/javascript/react/components/Headers/PropertyCard.jsx +46 -0
- data/app/javascript/react/components/HeroSectionDesign/BookingForm.jsx +178 -0
- data/app/javascript/react/components/HeroSectionDesign/HeroSection.jsx +29 -0
- data/app/javascript/react/components/HeroSectionDesign/MyPropertiesListing.jsx +104 -0
- data/app/javascript/react/components/HeroSectionDesign/PropertiesPage.jsx +122 -0
- data/app/javascript/react/components/HotelListing/Listing.jsx +48 -0
- data/app/javascript/react/components/Layout/Layout.js +18 -0
- data/app/javascript/react/components/Listing-stay-Detail/AmenitiesFeatures.jsx +58 -0
- data/app/javascript/react/components/Listing-stay-Detail/AmenitiesModal.jsx +250 -0
- data/app/javascript/react/components/Listing-stay-Detail/ApartmentCard.jsx +120 -0
- data/app/javascript/react/components/Listing-stay-Detail/BookingModal.jsx +398 -0
- data/app/javascript/react/components/Listing-stay-Detail/CheckoutForm.jsx +296 -0
- data/app/javascript/react/components/Listing-stay-Detail/ListingStayDetailPage.jsx +512 -0
- data/app/javascript/react/components/Listing-stay-Detail/PropertyDescription.jsx +76 -0
- data/app/javascript/react/components/Listing-stay-Detail/PropertyDetailsCard.jsx +62 -0
- data/app/javascript/react/components/Listing-stay-Detail/Reviews.jsx +132 -0
- data/app/javascript/react/components/Listing-stay-Detail/RoomDescriptionModal.jsx +105 -0
- data/app/javascript/react/components/Listing-stay-Detail/Rules.jsx +23 -0
- data/app/javascript/react/components/ListingImageGallery/ListingImageGallery.jsx +30 -0
- data/app/javascript/react/components/LoginPage/LoginPage.jsx +115 -0
- data/app/javascript/react/components/MobileNav/MobileMenu.jsx +47 -0
- data/app/javascript/react/components/Navbar/Navbar.jsx +25 -0
- data/app/javascript/react/components/Page404/Page404.jsx +30 -0
- data/app/javascript/react/components/PropertyListing/MyProperties.jsx +146 -0
- data/app/javascript/react/components/PropertyListing/StayBooking/BookingDetails.jsx +178 -0
- data/app/javascript/react/components/PropertyListing/StayBooking/MyBooking.jsx +83 -0
- data/app/javascript/react/components/ResetPassword/ResetPassword.jsx +117 -0
- data/app/javascript/react/components/SignupPage/SignupPage.jsx +185 -0
- data/app/javascript/react/components/SmallNavbar/SmallNav.jsx +51 -0
- data/app/javascript/react/components/SocialAuth/SocialAuth.jsx +21 -0
- data/app/javascript/react/components/StayCard/StayCard.jsx +69 -0
- data/app/javascript/react/components/StayCard/StayCard2.jsx +45 -0
- data/app/javascript/react/components/StayCard/StayCard3.jsx +45 -0
- data/app/javascript/react/components/TestimonialSection/Testimonial.jsx +113 -0
- data/app/javascript/react/components/Unauthorized/Unauthorized.jsx +12 -0
- data/app/javascript/react/data/jsons/__countryListing.json +201 -0
- data/app/javascript/react/packs/App.js +26 -0
- data/app/javascript/react/packs/index.jsx +38 -0
- data/app/javascript/react/packs/routes/ParentRoute.jsx +14 -0
- data/app/javascript/react/packs/routes/Route.jsx +163 -0
- data/app/javascript/react/pages/AccommodationList.jsx +21 -0
- data/app/javascript/react/pages/Home.jsx +32 -0
- data/app/javascript/react/redux/slices/AuthSlice/AuthSlice.jsx +100 -0
- data/app/javascript/react/redux/slices/PropertySlice/PropertySlice.jsx +722 -0
- data/app/javascript/react/redux/slices/PropertySlice/Searchslice.jsx +36 -0
- data/app/javascript/react/redux/slices/UserSlice/UserSlice.jsx +215 -0
- data/app/javascript/react/redux/store.js +35 -0
- data/app/javascript/react/shared/Avatar/Avatar.jsx +32 -0
- data/app/javascript/react/shared/Badge/Badge.jsx +33 -0
- data/app/javascript/react/shared/Button/Button.jsx +67 -0
- data/app/javascript/react/shared/Button/ButtonPrimary.jsx +11 -0
- data/app/javascript/react/shared/Button/ButtonSelect.jsx +9 -0
- data/app/javascript/react/shared/Checkbox/Checkbox.jsx +38 -0
- data/app/javascript/react/shared/CurrencySymbol.jsx +6 -0
- data/app/javascript/react/shared/DateField/CustomDatePicker.jsx +69 -0
- data/app/javascript/react/shared/FooterSection/Footer.jsx +75 -0
- data/app/javascript/react/shared/FormField/FormField.jsx +75 -0
- data/app/javascript/react/shared/FormItem/FormItem.jsx +20 -0
- data/app/javascript/react/shared/Input/Input.jsx +27 -0
- data/app/javascript/react/shared/Label/Label.jsx +12 -0
- data/app/javascript/react/shared/Modal.jsx +20 -0
- data/app/javascript/react/shared/NcImage/NcImage.jsx +101 -0
- data/app/javascript/react/shared/NcImage/PlaceIcon.jsx +31 -0
- data/app/javascript/react/shared/NcImage/placecImageIcon.svg +6 -0
- data/app/javascript/react/shared/Select/Select.jsx +20 -0
- data/app/javascript/react/styles/404error.scss +58 -0
- data/app/javascript/react/styles/ApartmentCard.scss +126 -0
- data/app/javascript/react/styles/BookingDetails.scss +457 -0
- data/app/javascript/react/styles/Modal.scss +36 -0
- data/app/javascript/react/styles/PropertiesPage.scss +219 -0
- data/app/javascript/react/styles/RenderSection.scss +480 -0
- data/app/javascript/react/styles/about.scss +97 -0
- data/app/javascript/react/styles/accountinfo.scss +67 -0
- data/app/javascript/react/styles/accountpage.scss +36 -0
- data/app/javascript/react/styles/amenitiesfeatures.scss +223 -0
- data/app/javascript/react/styles/application.scss +87 -0
- data/app/javascript/react/styles/avatar.scss +39 -0
- data/app/javascript/react/styles/avatardropdown.scss +57 -0
- data/app/javascript/react/styles/badge.scss +90 -0
- data/app/javascript/react/styles/blog.scss +100 -0
- data/app/javascript/react/styles/bookingform.scss +124 -0
- data/app/javascript/react/styles/button.scss +44 -0
- data/app/javascript/react/styles/buttonprimary.scss +32 -0
- data/app/javascript/react/styles/checkbox.scss +37 -0
- data/app/javascript/react/styles/commonlayout.scss +83 -0
- data/app/javascript/react/styles/commonpage.scss +51 -0
- data/app/javascript/react/styles/contact.scss +173 -0
- data/app/javascript/react/styles/customdatepicker.scss +120 -0
- data/app/javascript/react/styles/description.scss +21 -0
- data/app/javascript/react/styles/details.scss +88 -0
- data/app/javascript/react/styles/facilities.scss +131 -0
- data/app/javascript/react/styles/fixednavbar.scss +137 -0
- data/app/javascript/react/styles/fonts.scss +22 -0
- data/app/javascript/react/styles/footer.scss +300 -0
- data/app/javascript/react/styles/forgetpassword.scss +68 -0
- data/app/javascript/react/styles/formfield.scss +39 -0
- data/app/javascript/react/styles/formitem.scss +20 -0
- data/app/javascript/react/styles/gallery.scss +142 -0
- data/app/javascript/react/styles/gallerymodallight.scss +137 -0
- data/app/javascript/react/styles/galleryslider.scss +114 -0
- data/app/javascript/react/styles/header.scss +49 -0
- data/app/javascript/react/styles/herosection.scss +61 -0
- data/app/javascript/react/styles/images.scss +112 -0
- data/app/javascript/react/styles/input.scss +58 -0
- data/app/javascript/react/styles/label.scss +11 -0
- data/app/javascript/react/styles/listing.scss +94 -0
- data/app/javascript/react/styles/listingimagegallery.scss +57 -0
- data/app/javascript/react/styles/listingstaydetailpage.scss +887 -0
- data/app/javascript/react/styles/location.scss +66 -0
- data/app/javascript/react/styles/loginpage.scss +150 -0
- data/app/javascript/react/styles/mobilemenu.scss +53 -0
- data/app/javascript/react/styles/mybooking.scss +104 -0
- data/app/javascript/react/styles/myproperty.scss +51 -0
- data/app/javascript/react/styles/ncimage.scss +24 -0
- data/app/javascript/react/styles/normallisting.scss +95 -0
- data/app/javascript/react/styles/property-description.scss +75 -0
- data/app/javascript/react/styles/propertycard.scss +48 -0
- data/app/javascript/react/styles/propertydetailscard.scss +302 -0
- data/app/javascript/react/styles/resetpassword.scss +79 -0
- data/app/javascript/react/styles/reviews.scss +185 -0
- data/app/javascript/react/styles/room.scss +275 -0
- data/app/javascript/react/styles/rooms.scss +0 -0
- data/app/javascript/react/styles/select.scss +44 -0
- data/app/javascript/react/styles/signuppage.scss +132 -0
- data/app/javascript/react/styles/smallnav.scss +94 -0
- data/app/javascript/react/styles/socialauth.scss +62 -0
- data/app/javascript/react/styles/speciallisting.scss +94 -0
- data/app/javascript/react/styles/staycard.scss +77 -0
- data/app/javascript/react/styles/staycard2.scss +115 -0
- data/app/javascript/react/styles/testimonial.scss +216 -0
- data/app/javascript/react/styles/unauthorized.scss +22 -0
- data/app/javascript/react/styles/variables.scss +3 -0
- data/app/javascript/react/styles/wrapper.scss +4 -0
- data/app/javascript/react/utils/formSchema.js +120 -0
- data/app/javascript/react/utils/helpers/APIHelper.jsx +55 -0
- data/app/javascript/react/utils/helpers/ErrorHandler.js +21 -0
- data/app/javascript/react/utils/helpers/InfoHandler.js +15 -0
- data/app/javascript/react/utils/helpers/SuccessHandler.js +12 -0
- data/app/javascript/react/utils/helpers/isInViewPortIntersectionObserver.jsx +39 -0
- data/app/jobs/stay_commerce/frontend/application_job.rb +6 -0
- data/app/mailers/stay_commerce/frontend/application_mailer.rb +8 -0
- data/app/models/stay_commerce/frontend/application_record.rb +7 -0
- data/app/views/layouts/stay_commerce/frontend/application.html.erb +61 -0
- data/app/views/stay_commerce/frontend/welcome/index.html.erb +2 -0
- data/config/initializers/cors.rb +6 -0
- data/config/initializers/devise.rb +359 -0
- data/config/routes.rb +11 -0
- data/lib/stay_commerce/frontend/engine.rb +14 -0
- data/lib/stay_commerce/frontend/version.rb +5 -0
- data/lib/stay_commerce/frontend.rb +8 -0
- data/lib/tasks/stay_commerce/frontend_tasks.rake +4 -0
- 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
|
+
|