@mirai/core 0.4.35 → 0.4.37
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.
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +7 -4
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +4 -3
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +4 -4
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +2 -2
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +2 -2
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
- package/package.json +1 -1
- package/.env +0 -22
- package/.gitlab-ci.yml +0 -4
- package/.nvmrc +0 -1
- package/__tests__/Booking/__mocks__/booking-delete.json +0 -1
- package/__tests__/Booking/__mocks__/booking-get.json +0 -105
- package/__tests__/Booking/booking.constants.js +0 -8
- package/__tests__/Booking/workflows/cancel.workflow.js +0 -20
- package/__tests__/Booking/workflows/index.js +0 -5
- package/__tests__/Booking/workflows/openMobileMenu.workflow.js +0 -4
- package/__tests__/Booking/workflows/print.workflow.js +0 -13
- package/__tests__/Booking/workflows/resend.workflow.js +0 -18
- package/__tests__/Booking/workflows/review.workflow.js +0 -17
- package/__tests__/BookingQuery/__mocks__/user-booking-get.json +0 -9
- package/__tests__/BookingQuery/workflows/index.js +0 -1
- package/__tests__/BookingQuery/workflows/login.workflow.js +0 -22
- package/__tests__/Checkout/__mocks__/checkout-get.json +0 -935
- package/__tests__/Checkout/__mocks__/checkout-post-PAYLATER.json +0 -10
- package/__tests__/Checkout/__mocks__/checkout-post-TPV.json +0 -7
- package/__tests__/Checkout/__mocks__/checkout-post-TRANSFER.json +0 -10
- package/__tests__/Checkout/checkout.constants.js +0 -8
- package/__tests__/Checkout/workflows/form.workflow.js +0 -17
- package/__tests__/Checkout/workflows/index.js +0 -4
- package/__tests__/Checkout/workflows/payment.workflow.js +0 -10
- package/__tests__/Checkout/workflows/review.workflow.js +0 -19
- package/__tests__/Checkout/workflows/submit.workflow.js +0 -9
- package/__tests__/Deals/__mocks__/deals-success.json +0 -739
- package/__tests__/Deals/workflows/calendar.workflow.js +0 -14
- package/__tests__/Deals/workflows/clear.workflow.js +0 -7
- package/__tests__/Deals/workflows/index.js +0 -5
- package/__tests__/Deals/workflows/occupation.workflow.js +0 -6
- package/__tests__/Deals/workflows/promocode.workflow.js +0 -3
- package/__tests__/Deals/workflows/submit.workflow.js +0 -6
- package/__tests__/Finder/workflows/calendar.workflow.js +0 -10
- package/__tests__/Finder/workflows/index.js +0 -3
- package/__tests__/Finder/workflows/occupation.workflow.js +0 -27
- package/__tests__/Finder/workflows/promocode.workflow.js +0 -8
- package/__tests__/Rates/__mocks__/extras-one-success.json +0 -138
- package/__tests__/Rates/__mocks__/extras-success.json +0 -397
- package/__tests__/Rates/__mocks__/rates-success.json +0 -731
- package/__tests__/Rates/workflows/extras.js +0 -9
- package/__tests__/Rates/workflows/extrasExpect.js +0 -11
- package/__tests__/Rates/workflows/index.js +0 -4
- package/__tests__/Rates/workflows/multiroom.js +0 -26
- package/__tests__/Rates/workflows/rates.js +0 -9
- package/__tests__/Session/workflows/bookings.workflow.js +0 -18
- package/__tests__/Session/workflows/forgotPassword.workflow.js +0 -20
- package/__tests__/Session/workflows/index.js +0 -5
- package/__tests__/Session/workflows/login.workflow.js +0 -29
- package/__tests__/Session/workflows/logout.workflow.js +0 -8
- package/__tests__/Session/workflows/profile.workflow.js +0 -49
- package/__tests__/Signup/workflows/index.js +0 -2
- package/__tests__/Signup/workflows/signup.workflow.js +0 -26
- package/__tests__/Signup/workflows/signupError.workflow.js +0 -22
- package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-one-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-some-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-one-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-some-extras-1.png +0 -0
- package/__tests__/booking.spec.jsx +0 -34
- package/__tests__/bookingQuey.spec.js +0 -43
- package/__tests__/buttonFinder.spec.js +0 -16
- package/__tests__/checkout.spec.jsx +0 -52
- package/__tests__/constants.js +0 -20
- package/__tests__/deals.spec.js +0 -30
- package/__tests__/finder.spec.js +0 -75
- package/__tests__/helpers/closeNotification.js +0 -7
- package/__tests__/helpers/getWeekNumber.js +0 -8
- package/__tests__/helpers/index.js +0 -2
- package/__tests__/rates.spec.jsx +0 -39
- package/__tests__/session.spec.js +0 -32
- package/__tests__/signup.spec.js +0 -17
- package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.skeleton.test.js.snap +0 -287
- package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.test.js.snap +0 -102
- package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +0 -1302
- package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +0 -139
- package/build/components/Booking/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -108
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormCancel.test.js.snap +0 -546
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEdit.test.js.snap +0 -46
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormResend.test.js.snap +0 -166
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Information.test.js.snap +0 -110
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -82
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +0 -432
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalAgency.test.js.snap +0 -319
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Payment.test.js.snap +0 -178
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +0 -1048
- package/build/components/ButtonFinder/__tests__/__snapshots__/ButtonFinder.test.js.snap +0 -8210
- package/build/components/Chat/__tests__/__snapshots__/Chat.constants.test.js.snap +0 -30
- package/build/components/Chat/__tests__/__snapshots__/Chat.test.js.snap +0 -634
- package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +0 -97
- package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +0 -178
- package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +0 -282
- package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +0 -211
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Booking.test.js.snap +0 -65
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Card.test.js.snap +0 -29
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Environment.test.js.snap +0 -44
- package/build/components/Chat/components/Offline/__tests__/__snapshots__/Offline.test.js.snap +0 -162
- package/build/components/Chat/helpers/__tests__/__snapshots__/getVerboseDate.test.js.snap +0 -9
- package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +0 -2018
- package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +0 -347
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +0 -418
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -6754
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +0 -4449
- package/build/components/Deals/__tests__/__snapshots__/Deals.constants.js.snap +0 -15
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +0 -7828
- package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +0 -25
- package/build/components/Environment/__tests__/__snapshots__/Environment.State.test.js.snap +0 -120
- package/build/components/Environment/__tests__/__snapshots__/Environment.test.js.snap +0 -988
- package/build/components/Finder/__tests__/__snapshots__/Finder.constants.test.js.snap +0 -39
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +0 -22237
- package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +0 -11
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +0 -11108
- package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +0 -44
- package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +0 -324
- package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +0 -1382
- package/build/components/Finder/helpers/__tests__/__snapshots__/getForwarderUrl.test.js.snap +0 -7
- package/build/components/Header/__tests__/__snapshots__/Header.test.js.snap +0 -1187
- package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +0 -19
- package/build/components/Rates/__tests__/__snapshots__/Rates.Content.test.js.snap +0 -41
- package/build/components/Rates/__tests__/__snapshots__/Rates.Footer.test.js.snap +0 -50
- package/build/components/Rates/__tests__/__snapshots__/Rates.Header.test.js.snap +0 -3
- package/build/components/Rates/__tests__/__snapshots__/Rates.RoomSelector.test.js.snap +0 -3
- package/build/components/Rates/__tests__/__snapshots__/Rates.Unavailability.test.js.snap +0 -53
- package/build/components/Rates/__tests__/__snapshots__/Rates.test.js.snap +0 -11760
- package/build/components/Rates/components/CardHotel/__tests__/__snapshots__/CardHotel.test.js.snap +0 -113
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/FIlters.Button.test.js.snap +0 -32
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.Amenity.test.js.snap +0 -21
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.BookingOption.test.js.snap +0 -32
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.test.js.snap +0 -167
- package/build/components/Rates/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -3
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Preview.test.js.snap +0 -96
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Rates.test.js.snap +0 -9
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Summary.test.js.snap +0 -53
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.test.js.snap +0 -154
- package/build/components/Rates/components/Item/components/Amenities/__tests__/__snapshots__/Amenities.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Features/__tests__/__snapshots__/Features.test.js.snap +0 -40
- package/build/components/Rates/components/Item/components/ModalCancellationInfo/__tests__/__snapshots__/ModalCancellationInfo.test.js.snap +0 -35
- package/build/components/Rates/components/Item/components/ModalInfo/__tests__/__snapshots__/ModalInfo.test.js.snap +0 -72
- package/build/components/Rates/components/Item/components/ModalOfferInfo/__tests__/__snapshots__/ModalOfferInfo.test.js.snap +0 -49
- package/build/components/Rates/components/Item/components/ModalUrl/__tests__/__snapshots__/ModalUrl.test.js.snap +0 -50
- package/build/components/Rates/components/Item/components/Option/__tests__/__snapshots__/Option.test.js.snap +0 -18
- package/build/components/Rates/components/Item/components/PriceDetails/__tests__/__snapshots__/PriceDetails.test.js.snap +0 -23
- package/build/components/Rates/components/Item/components/RateDetails/__tests__/__snapshots__/RateDetails.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +0 -27
- package/build/components/Rates/components/Item/components/TooltipDates/__tests__/__snapshots__/TooltipDates.test.js.snap +0 -3
- package/build/components/Rates/components/ModalClubRate/__tests__/__snapshots__/ModalClubRate.test.js.snap +0 -257
- package/build/components/Rates/components/ModalExtras/__tests__/__snapshots__/ModalExtras.test.js.snap +0 -68
- package/build/components/Rates/components/ModalMapView/__tests__/__snapshots__/ModalMapView.test.js.snap +0 -78
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +0 -260
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +0 -1091
- package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +0 -208
- package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +0 -2190
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +0 -500
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +0 -745
- package/build/components/__shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap +0 -450
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +0 -115
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +0 -206
- package/build/components/__shared__/ButtonPayment/components/Form/__tests__/__snapshots__/Form.test.js.snap +0 -65
- package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +0 -68
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +0 -356
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/__tests__/__snapshots__/getStyle.test.js.snap +0 -23
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +0 -165
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +0 -161
- package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +0 -190
- package/build/components/__shared__/Card/__tests__/__snapshots__/Card.test.js.snap +0 -34
- package/build/components/__shared__/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -42
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +0 -1018
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +0 -2243
- package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +0 -373
- package/build/components/__shared__/Footer/__tests__/__snapshots__/Footer.test.js.snap +0 -178
- package/build/components/__shared__/NotificationRequiredFields/__tests__/__snapshots__/NotificationRequiredFields.test.js.snap +0 -118
- package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +0 -17
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +0 -3754
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -1109
- package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +0 -23
- package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +0 -33
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +0 -933
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +0 -474
- package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +0 -98
- package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.Line.test.js.snap +0 -49
- package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.test.js.snap +0 -337
- package/build/components/__shared__/SelectEnvironment/__tests__/__snapshots__/SelectEnvironment.test.js.snap +0 -1192
- package/build/components/__shared__/Skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +0 -66
- package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +0 -41
- package/build/components/helpers/__tests__/__mocks__/hotels.json +0 -87
- package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +0 -317
- package/playwright.config.js +0 -50
- package/public/App.Container.jsx +0 -147
- package/public/App.jsx +0 -34
- package/public/App.module.css +0 -153
- package/public/index.html +0 -32
- package/public/index.template.html +0 -19
- package/public/performance/index.html +0 -159
- package/public/routes/Deals.jsx +0 -20
- package/public/routes/Finder.jsx +0 -19
- package/public/routes/Home.constants.js +0 -52
- package/public/routes/Home.jsx +0 -131
- package/public/routes/NotFound.jsx +0 -23
- package/public/routes/Profile.jsx +0 -21
- package/public/routes/Signup.jsx +0 -20
- package/public/routes/Step0-Accommodations.jsx +0 -4
- package/public/routes/Step1-Rates.jsx +0 -12
- package/public/routes/Step2-Checkout.jsx +0 -4
- package/public/routes/Step3-Booking.jsx +0 -4
- package/public/routes/components/Logo.jsx +0 -18
- package/public/routes/components/index.js +0 -1
- package/public/routes/index.js +0 -10
- package/public/routes/routes.module.css +0 -259
- package/public/themes/monalisa.theme.css +0 -45
package/public/routes/Home.jsx
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/no-unescaped-entities */
|
|
2
|
-
/* eslint-disable react/prop-types */
|
|
3
|
-
import { Event } from '@mirai/data-sources';
|
|
4
|
-
import { InputOption, ScrollView, Text, useDevice, View } from '@mirai/ui';
|
|
5
|
-
import React, { useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { TESTIMONIALS } from './Home.constants';
|
|
8
|
-
import * as style from './routes.module.css';
|
|
9
|
-
|
|
10
|
-
const EVENT_INTENT_ENVIRONMENT = 'intentEnvironment';
|
|
11
|
-
|
|
12
|
-
export const Home = () => {
|
|
13
|
-
const { isMobile } = useDevice();
|
|
14
|
-
|
|
15
|
-
const [locale, setLocale] = useState();
|
|
16
|
-
const [resident, setResident] = useState();
|
|
17
|
-
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const handleIntentEnvironment = ({ locale: value } = {}) => setLocale(value);
|
|
20
|
-
|
|
21
|
-
Event.subscribe(EVENT_INTENT_ENVIRONMENT, handleIntentEnvironment);
|
|
22
|
-
|
|
23
|
-
return () => Event.unsubscribe(EVENT_INTENT_ENVIRONMENT, handleIntentEnvironment);
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
Event.publish('setStore', { promocode: resident ? 'RESIDENT' : '' });
|
|
28
|
-
}, [resident]);
|
|
29
|
-
|
|
30
|
-
const showResident = locale === 'es-ES';
|
|
31
|
-
const testId = window.IS_PLAYWRIGHT ? 'finder' : undefined;
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<>
|
|
35
|
-
<View tag="section" className={[style.section, style.content, style.home]}>
|
|
36
|
-
<View className={[style.wrapper, style.centered]}>
|
|
37
|
-
<Text bold brand className={[style.slogan, style.text]}>
|
|
38
|
-
Discover the Serenity of a Perfect Stay
|
|
39
|
-
</Text>
|
|
40
|
-
<Text headline={!isMobile} level={3} className={[style.pitch, style.text]}>
|
|
41
|
-
Experience the calming atmosphere of our serene guest rooms, each designed with your comfort in mind.
|
|
42
|
-
</Text>
|
|
43
|
-
</View>
|
|
44
|
-
<View className={style.backgroundImage} />
|
|
45
|
-
</View>
|
|
46
|
-
|
|
47
|
-
<View className={[style.finder, style.centered, showResident && style.resident]}>
|
|
48
|
-
{showResident && (
|
|
49
|
-
<View>
|
|
50
|
-
<InputOption
|
|
51
|
-
checked={resident}
|
|
52
|
-
name="resident"
|
|
53
|
-
label="I am resident"
|
|
54
|
-
onChange={setResident}
|
|
55
|
-
className={style.resident}
|
|
56
|
-
/>
|
|
57
|
-
</View>
|
|
58
|
-
)}
|
|
59
|
-
|
|
60
|
-
<View data-mirai-component="finder" data-test-id={testId} />
|
|
61
|
-
</View>
|
|
62
|
-
|
|
63
|
-
<View row={!isMobile} tag="section" className={[style.section, style.spaceBetween, style.wrapper]}>
|
|
64
|
-
<View className={style.texts}>
|
|
65
|
-
<Text brand headline level={1}>
|
|
66
|
-
Welcome to Monalisa
|
|
67
|
-
</Text>
|
|
68
|
-
|
|
69
|
-
<Text lighten headline={!isMobile}>
|
|
70
|
-
Welcome to Monalisa, where Monalisa and convenience converge in the heart of the city. Our hotel is located
|
|
71
|
-
in the bustling city center, just steps away from the best shopping, dining, and entertainment that the city
|
|
72
|
-
has to offer.
|
|
73
|
-
</Text>
|
|
74
|
-
<Text lighten headline={!isMobile}>
|
|
75
|
-
One of our greatest strengths is our location. We are situated in the middle of the city center, which means
|
|
76
|
-
that our guests can easily explore all the sights and sounds of this vibrant metropolis. Plus, we are just a
|
|
77
|
-
stone's throw away from the train station, making it incredibly easy for our guests to arrive and depart
|
|
78
|
-
from our hotel.
|
|
79
|
-
</Text>
|
|
80
|
-
<Text lighten headline={!isMobile}>
|
|
81
|
-
So why wait? Book your stay at Monalisa today and experience the perfect blend of Monalisa, convenience, and
|
|
82
|
-
comfort in the heart of the city.
|
|
83
|
-
</Text>
|
|
84
|
-
</View>
|
|
85
|
-
</View>
|
|
86
|
-
|
|
87
|
-
<View row={!isMobile} tag="section" className={[style.section, style.accent, style.testimonials]}>
|
|
88
|
-
<View>
|
|
89
|
-
<Text brand headline level={1}>
|
|
90
|
-
Testimonials
|
|
91
|
-
</Text>
|
|
92
|
-
<Text>See what our guests are saying about their serene and tranquil experiences at Monalisa.</Text>
|
|
93
|
-
</View>
|
|
94
|
-
|
|
95
|
-
<ScrollView horizontal snap={!isMobile} className={style.cards}>
|
|
96
|
-
{TESTIMONIALS.map(({ text, rating, name, jobPosition } = {}, index) => (
|
|
97
|
-
<View key={index} className={style.card}>
|
|
98
|
-
<Text action>{text}</Text>
|
|
99
|
-
<Text accent action>
|
|
100
|
-
{'★'.repeat(rating)}
|
|
101
|
-
</Text>
|
|
102
|
-
|
|
103
|
-
<View row>
|
|
104
|
-
<View
|
|
105
|
-
className={style.avatar}
|
|
106
|
-
style={{ backgroundImage: `url(https://i.pravatar.cc/96?u=${index})` }}
|
|
107
|
-
/>
|
|
108
|
-
<View>
|
|
109
|
-
<Text action>{name}</Text>
|
|
110
|
-
<Text lighten small>
|
|
111
|
-
{jobPosition}
|
|
112
|
-
</Text>
|
|
113
|
-
</View>
|
|
114
|
-
</View>
|
|
115
|
-
</View>
|
|
116
|
-
))}
|
|
117
|
-
</ScrollView>
|
|
118
|
-
</View>
|
|
119
|
-
|
|
120
|
-
<View row tag="section" className={[style.section, style.border, style.centered]}>
|
|
121
|
-
<View>
|
|
122
|
-
<Text>FIND BEST HOTEL FOR LEAVING</Text>
|
|
123
|
-
<Text bold brand headline level={1}>
|
|
124
|
-
Find the Best Hotel in Your Next Vacation
|
|
125
|
-
</Text>
|
|
126
|
-
</View>
|
|
127
|
-
<View data-mirai-component="buttonFinder" />
|
|
128
|
-
</View>
|
|
129
|
-
</>
|
|
130
|
-
);
|
|
131
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Button, Text, View } from '@mirai/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useLocation } from 'wouter';
|
|
4
|
-
|
|
5
|
-
import * as style from './routes.module.css';
|
|
6
|
-
|
|
7
|
-
export const NotFound = () => {
|
|
8
|
-
const [, setLocation] = useLocation();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<View tag="section" className={[style.section, style.border, style.home]}>
|
|
12
|
-
<View className={[style.wrapper, style.centered]}>
|
|
13
|
-
<Text bold className={style.slogan}>
|
|
14
|
-
Oops! Something went wrong.
|
|
15
|
-
</Text>
|
|
16
|
-
<Text headline>Url {window.location.href} is not a valid.</Text>
|
|
17
|
-
<Button preventDefault={false} onPress={() => setLocation('/')}>
|
|
18
|
-
RETURN TO HOME →
|
|
19
|
-
</Button>
|
|
20
|
-
</View>
|
|
21
|
-
</View>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Text, View } from '@mirai/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import * as style from './routes.module.css';
|
|
5
|
-
|
|
6
|
-
export const Profile = () => (
|
|
7
|
-
<>
|
|
8
|
-
<View tag="section" className={[style.section, style.box, style.accent]}>
|
|
9
|
-
<View className={style.wrapper}>
|
|
10
|
-
<Text bold brand headline level={1}>
|
|
11
|
-
Your profile
|
|
12
|
-
</Text>
|
|
13
|
-
<Text>Explore and manage your personal profile settings here.</Text>
|
|
14
|
-
</View>
|
|
15
|
-
</View>
|
|
16
|
-
|
|
17
|
-
<View className={[style.wrapper, style.box]}>
|
|
18
|
-
<View data-mirai-component="profile" />
|
|
19
|
-
</View>
|
|
20
|
-
</>
|
|
21
|
-
);
|
package/public/routes/Signup.jsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Text, View } from '@mirai/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import * as style from './routes.module.css';
|
|
5
|
-
|
|
6
|
-
export const Signup = () => (
|
|
7
|
-
<>
|
|
8
|
-
<View tag="section" className={[style.section, style.box, style.accent]}>
|
|
9
|
-
<View className={style.wrapper}>
|
|
10
|
-
<Text bold brand headline level={1}>
|
|
11
|
-
Signup
|
|
12
|
-
</Text>
|
|
13
|
-
<Text>Join Club Monalisa for free and enjoy exclusive benefits</Text>
|
|
14
|
-
</View>
|
|
15
|
-
</View>
|
|
16
|
-
<View className={[style.wrapper, style.box]}>
|
|
17
|
-
<View data-mirai-component="signup" />
|
|
18
|
-
</View>
|
|
19
|
-
</>
|
|
20
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { View } from '@mirai/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
export const Step1 = () => (
|
|
5
|
-
<View data-mirai-component="rates" data-test-id={window.IS_PLAYWRIGHT ? 'rates' : undefined}>
|
|
6
|
-
{/* <span data-content-error>
|
|
7
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad itaque odio inventore eos et consequuntur molestias
|
|
8
|
-
doloremque temporibus accusantium laborum rem nobis nostrum, voluptatum dolorum, repellendus quasi esse eveniet
|
|
9
|
-
maxime?
|
|
10
|
-
</span> */}
|
|
11
|
-
</View>
|
|
12
|
-
);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Action, Text, View } from '@mirai/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useLocation } from 'wouter';
|
|
4
|
-
|
|
5
|
-
export const Logo = ({ ...others }) => {
|
|
6
|
-
const [, setLocation] = useLocation();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<Action inline href="/" onPress={() => setLocation('/')}>
|
|
10
|
-
<View {...others}>
|
|
11
|
-
<Text bold brand headline level={2}>
|
|
12
|
-
Monalisa
|
|
13
|
-
</Text>
|
|
14
|
-
<Text tiny>HOTEL & RESORT</Text>
|
|
15
|
-
</View>
|
|
16
|
-
</Action>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Logo';
|
package/public/routes/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './Deals';
|
|
2
|
-
export * from './Finder';
|
|
3
|
-
export * from './Home';
|
|
4
|
-
export * from './NotFound';
|
|
5
|
-
export * from './Profile';
|
|
6
|
-
// export * from './step0-accommodations';
|
|
7
|
-
export * from './Step1-Rates';
|
|
8
|
-
export * from './Step2-Checkout';
|
|
9
|
-
export * from './Step3-Booking';
|
|
10
|
-
export * from './Signup';
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
.section {
|
|
2
|
-
gap: var(--mirai-ui-space-M);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* colors */
|
|
6
|
-
.section.border {
|
|
7
|
-
background-color: var(--mirai-ui-content-border);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.section.content {
|
|
11
|
-
background-color: var(--mirai-ui-content);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.section.accent {
|
|
15
|
-
background-color: var(--mirai-ui-accent);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.section.accent > * > ui-text {
|
|
19
|
-
color: var(--mirai-ui-base);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* layout */
|
|
23
|
-
.section.centered {
|
|
24
|
-
justify-content: center;
|
|
25
|
-
gap: var(--mirai-ui-space-L);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section.box {
|
|
29
|
-
padding-bottom: calc(var(--mirai-ui-space-XXL) + var(--mirai-ui-space-L));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.section.spaceBetween {
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.texts {
|
|
37
|
-
align-self: flex-start;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.image {
|
|
41
|
-
background-color: var(--mirai-ui-content-background);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.image.square {
|
|
45
|
-
min-height: var(--mirai-ui-breakpoint-S);
|
|
46
|
-
min-width: var(--mirai-ui-breakpoint-S);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.wrapper {
|
|
50
|
-
align-self: center;
|
|
51
|
-
max-width: var(--mirai-ui-breakpoint-content);
|
|
52
|
-
width: 100%;
|
|
53
|
-
gap: var(--mirai-ui-space-S);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.wrapper.box {
|
|
57
|
-
margin-top: calc(var(--mirai-ui-space-XXL) * -1);
|
|
58
|
-
background-color: var(--mirai-ui-base);
|
|
59
|
-
box-shadow: var(--mirai-ui-shadow);
|
|
60
|
-
border-radius: var(--mirai-ui-border-radius);
|
|
61
|
-
margin-bottom: var(--mirai-ui-space-XL);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.wrapper.centered {
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* -- home --------------------------------------------------------------- */
|
|
69
|
-
.home {
|
|
70
|
-
position: relative;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.home .wrapper {
|
|
75
|
-
z-index: 1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.home .backgroundImage {
|
|
79
|
-
background-position: center;
|
|
80
|
-
background-size: cover;
|
|
81
|
-
bottom: 0;
|
|
82
|
-
left: 0;
|
|
83
|
-
opacity: 0.66;
|
|
84
|
-
position: absolute;
|
|
85
|
-
right: 0;
|
|
86
|
-
top: 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.home .text {
|
|
90
|
-
color: var(--mirai-ui-base);
|
|
91
|
-
text-align: center;
|
|
92
|
-
text-shadow: 0 0 var(--mirai-ui-space-M) rgba(0, 0, 0, 0.33);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.testimonials > :first-child {
|
|
96
|
-
max-width: var(--mirai-ui-breakpoint-S);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.cards {
|
|
100
|
-
gap: var(--mirai-ui-space-L);
|
|
101
|
-
width: 100%;
|
|
102
|
-
flex: 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.card {
|
|
106
|
-
background-color: var(--mirai-ui-base);
|
|
107
|
-
border-radius: var(--mirai-ui-border-radius);
|
|
108
|
-
gap: var(--mirai-ui-space-S);
|
|
109
|
-
height: 320px;
|
|
110
|
-
min-width: 256px;
|
|
111
|
-
padding: var(--mirai-ui-space-L) var(--mirai-ui-space-L);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.card .avatar {
|
|
115
|
-
background-color: var(--mirai-ui-content-border);
|
|
116
|
-
background-size: cover;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
height: var(--mirai-ui-space-XL);
|
|
119
|
-
width: var(--mirai-ui-space-XL);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.card .avatar + * {
|
|
123
|
-
margin-bottom: calc(var(--mirai-ui-space-XS) / 2);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.card > :last-child {
|
|
127
|
-
align-items: flex-end;
|
|
128
|
-
flex: 1;
|
|
129
|
-
gap: var(--mirai-ui-space-S);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.finder.centered {
|
|
133
|
-
margin: 0 auto;
|
|
134
|
-
position: sticky;
|
|
135
|
-
top: var(--mirai-ui-space-M);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.finder .resident > [data-role='text'] {
|
|
139
|
-
color: var(--mirai-ui-base);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
[data-mirai-component='finder'].column {
|
|
143
|
-
background-color: var(--mirai-ui-content-background);
|
|
144
|
-
max-width: calc(var(--mirai-ui-breakpoint-S) - var(--mirai-ui-space-M));
|
|
145
|
-
margin: var(--mirai-ui-space-M);
|
|
146
|
-
padding: var(--mirai-ui-space-M);
|
|
147
|
-
align-self: center;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@media only screen and (max-width: 480px) {
|
|
151
|
-
.section {
|
|
152
|
-
padding: var(--mirai-ui-space-XL) var(--mirai-ui-space-M);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.section.accent.testimonials {
|
|
156
|
-
gap: var(--mirai-ui-space-L);
|
|
157
|
-
padding: var(--mirai-ui-space-XL) 0;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.testimonials > :first-child {
|
|
161
|
-
padding: 0 var(--mirai-ui-space-M);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.cards > :first-child {
|
|
165
|
-
margin-left: var(--mirai-ui-space-M);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.home {
|
|
169
|
-
padding: var(--mirai-ui-space-XXL) var(--mirai-ui-space-M) calc(var(--mirai-ui-space-XXL) * 2)
|
|
170
|
-
var(--mirai-ui-space-M);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.home .wrapper {
|
|
174
|
-
gap: var(--mirai-ui-space-L);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.home .slogan {
|
|
178
|
-
font-size: calc(var(--mirai-ui-font-size-headline-1) * 1.66);
|
|
179
|
-
line-height: calc(var(--mirai-ui-line-height-headline-1) * 1.66);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.home .backgroundImage {
|
|
183
|
-
background-image: url('https://framerusercontent.com/images/wMnYXmJb2xSPIDf60AukEywhD8A.jpg?scale-down-to=960');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.texts {
|
|
187
|
-
gap: var(--mirai-ui-space-M);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.image.square {
|
|
191
|
-
min-height: 90svw;
|
|
192
|
-
min-width: 90svw;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.finder {
|
|
196
|
-
margin-top: calc(var(--mirai-ui-space-L) * -1) !important;
|
|
197
|
-
width: 90svw;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@media only screen and (min-width: 481px) {
|
|
202
|
-
.section {
|
|
203
|
-
padding: var(--mirai-ui-space-XXL) var(--mirai-ui-space-M);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.section.accent.testimonials {
|
|
207
|
-
gap: var(--mirai-ui-space-XXL);
|
|
208
|
-
padding: var(--mirai-ui-space-XXL) 0 var(--mirai-ui-space-XXL) var(--mirai-ui-space-XXL);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.home {
|
|
212
|
-
min-height: 66svh;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.home .wrapper {
|
|
216
|
-
gap: var(--mirai-ui-space-XL);
|
|
217
|
-
margin-bottom: var(--mirai-ui-space-M);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.home .slogan {
|
|
221
|
-
font-size: calc(var(--mirai-ui-font-size-headline-1) * 3);
|
|
222
|
-
line-height: calc(var(--mirai-ui-line-height-headline-1) * 3);
|
|
223
|
-
max-width: calc(var(--mirai-ui-breakpoint-content) * 0.8);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.home .backgroundImage {
|
|
227
|
-
background-image: url('https://framerusercontent.com/images/wMnYXmJb2xSPIDf60AukEywhD8A.jpg?scale-down-to=1920');
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.home .pitch {
|
|
231
|
-
max-width: 50%;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
body:not([data-mirai-modal='true']) .finder.centered {
|
|
235
|
-
z-index: 1;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.texts {
|
|
239
|
-
gap: var(--mirai-ui-space-L);
|
|
240
|
-
max-width: 50%;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.image.square {
|
|
244
|
-
min-height: var(--mirai-ui-breakpoint-S);
|
|
245
|
-
min-width: var(--mirai-ui-breakpoint-S);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.finder.centered {
|
|
249
|
-
margin-top: calc(var(--mirai-ui-space-XXS) * 8.75 * -1);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.finder.centered.resident {
|
|
253
|
-
margin-top: calc(var(--mirai-ui-space-S) * 5.75 * -1);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
[data-mirai-component='finder'].column {
|
|
257
|
-
min-width: calc(var(--mirai-ui-breakpoint-S) - var(--mirai-ui-space-M));
|
|
258
|
-
}
|
|
259
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=MuseoModerno:wght@600&display=swap');
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
/* == legacy ====================================================================================================== */
|
|
5
|
-
/* booking */
|
|
6
|
-
/* --corporative-color: #003580; */
|
|
7
|
-
/* pinterest */
|
|
8
|
-
/* --corporative-color: #bd081c; */
|
|
9
|
-
|
|
10
|
-
/* == @mirai/ui =================================================================================================== */
|
|
11
|
-
/* typography */
|
|
12
|
-
--mirai-ui-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
13
|
-
--mirai-ui-font-weight: 400;
|
|
14
|
-
--mirai-ui-font-medium-weight: 500;
|
|
15
|
-
--mirai-ui-font-bold-weight: 600;
|
|
16
|
-
|
|
17
|
-
/* palette */
|
|
18
|
-
--mirai-ui-accent: #f7931a;
|
|
19
|
-
--mirai-ui-accent-background: #fff5e6;
|
|
20
|
-
--mirai-ui-accent-light: #ffb84d;
|
|
21
|
-
--mirai-ui-accent-border: #ffcd94;
|
|
22
|
-
--mirai-ui-accent-dark: #c66e0e;
|
|
23
|
-
|
|
24
|
-
/* text */
|
|
25
|
-
--mirai-ui-text-brand-font: 'MuseoModerno', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
26
|
-
--mirai-ui-text-brand-font-weight: 600
|
|
27
|
-
--mirai-ui-text-brand-font-medium: var(--mirai-ui-text-brand-font);
|
|
28
|
-
--mirai-ui-text-brand-font-medium-weight: var(--mirai-ui-text-brand-font-weight);
|
|
29
|
-
--mirai-ui-text-brand-font-bold: var(--mirai-ui-text-brand-font);
|
|
30
|
-
--mirai-ui-text-brand-font-bold-weight: var(--mirai-ui-text-brand-font-weight);
|
|
31
|
-
|
|
32
|
-
/* button */
|
|
33
|
-
/* --mirai-ui-button-font-weight: var(--mirai-ui-font-bold-weight); */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* == @mirai/core ================================================================================================= */
|
|
37
|
-
/* Finder */
|
|
38
|
-
--mirai-finder-button-font-family: var(--mirai-ui-text-brand-font);
|
|
39
|
-
--mirai-finder-button-font-weight: var(--mirai-ui-text-brand-font-weight);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
body {
|
|
43
|
-
margin: 0;
|
|
44
|
-
padding: 0;
|
|
45
|
-
}
|