@ticketboothapp/booking 0.1.11 → 0.1.13
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/package.json +2 -1
- package/src/app/photo-sessions/photo-packages.ts +75 -0
- package/src/assets/icons/partner-logos/getyourguide.svg +8 -0
- package/src/assets/icons/plus.svg +3 -0
- package/src/colours.css +23 -0
- package/src/components/BookingDetails.module.css +1591 -0
- package/src/components/BookingDetails.tsx +2072 -354
- package/src/components/BookingWidget.tsx +28 -248
- package/src/components/JobApplicationDialog.module.css +440 -0
- package/src/components/JobApplicationDialog.tsx +620 -0
- package/src/components/ManageBookingView.tsx +28 -36
- package/src/components/PhoneInputWithCountry.module.css +131 -0
- package/src/components/PhoneInputWithCountry.tsx +44 -0
- package/src/components/PickupLocationDialog.module.css +360 -0
- package/src/components/PickupLocationDialog.tsx +357 -0
- package/src/components/PickupLocationMap.tsx +110 -0
- package/src/components/PostBookingDependentAddOnUpsell.module.css +174 -0
- package/src/components/PostBookingDependentAddOnUpsell.tsx +407 -0
- package/src/components/accordion.css +27 -0
- package/src/components/accordion.tsx +29 -0
- package/src/components/analytics/AnalyticsConsentRestore.tsx +19 -0
- package/src/components/analytics/AnalyticsScripts.tsx +106 -0
- package/src/components/analytics/CookieConsentBanner.css +86 -0
- package/src/components/analytics/CookieConsentBanner.tsx +102 -0
- package/src/components/booking/AddOnsSection.module.css +10 -0
- package/src/components/booking/AddOnsSection.tsx +184 -0
- package/src/components/booking/AdminPaymentChoiceModal.tsx +98 -0
- package/src/components/booking/BookingDialog.module.css +643 -0
- package/src/components/booking/BookingDialog.tsx +356 -0
- package/src/components/booking/BookingFlow.tsx +4385 -0
- package/src/components/booking/BookingFlowCollage.module.css +148 -0
- package/src/components/booking/BookingFlowCollage.tsx +184 -0
- package/src/components/booking/BookingFlowPlaceholder.module.css +27 -0
- package/src/components/booking/BookingFlowPlaceholder.tsx +25 -0
- package/src/components/booking/BookingFlowPreview.tsx +51 -0
- package/src/components/booking/BookingProductGrid.module.css +359 -0
- package/src/components/booking/BookingProductGrid.tsx +497 -0
- package/src/components/booking/Calendar.module.css +616 -0
- package/src/components/{Calendar.tsx → booking/Calendar.tsx} +464 -247
- package/src/components/booking/CancellationPolicySelector.module.css +124 -0
- package/src/components/booking/CancellationPolicySelector.tsx +142 -0
- package/src/components/booking/ChangeBookingDialog.tsx +562 -0
- package/src/components/booking/CheckoutForm.module.css +244 -0
- package/src/components/booking/CheckoutForm.tsx +364 -0
- package/src/components/{CheckoutModal.tsx → booking/CheckoutModal.tsx} +176 -19
- package/src/components/booking/DapFlowCollage.tsx +88 -0
- package/src/components/booking/DapTourDescription.tsx +35 -0
- package/src/components/booking/DependentAddOnBookingDialog.tsx +1350 -0
- package/src/components/booking/DependentAddOnPaymentForm.tsx +124 -0
- package/src/components/booking/InfoTooltip.tsx +108 -0
- package/src/components/booking/ItineraryBox.module.css +258 -0
- package/src/components/booking/ItineraryBox.tsx +550 -0
- package/src/components/{ItineraryBuilder.tsx → booking/ItineraryBuilder.tsx} +1 -2
- package/src/components/booking/ItineraryPlaceholder.module.css +45 -0
- package/src/components/booking/ItineraryPlaceholder.tsx +26 -0
- package/src/components/{MealDrinkAddOnSelector.tsx → booking/MealDrinkAddOnSelector.tsx} +21 -13
- package/src/components/booking/PickupLocationSelector.module.css +124 -0
- package/src/components/{PickupLocationSelector.tsx → booking/PickupLocationSelector.tsx} +315 -290
- package/src/components/booking/PickupTimeSelector.module.css +134 -0
- package/src/components/booking/PickupTimeSelector.tsx +112 -0
- package/src/components/{PriceBreakdown.tsx → booking/PriceBreakdown.tsx} +3 -3
- package/src/components/{PriceSummary.tsx → booking/PriceSummary.tsx} +51 -28
- package/src/components/booking/PrivateShuttleBookingFlow.module.css +357 -0
- package/src/components/booking/PrivateShuttleBookingFlow.tsx +2662 -0
- package/src/components/booking/PromoCodeInput.module.css +166 -0
- package/src/components/booking/PromoCodeInput.tsx +99 -0
- package/src/components/booking/ReturnTimeSelector.module.css +173 -0
- package/src/components/booking/ReturnTimeSelector.tsx +145 -0
- package/src/components/{TermsAcceptance.tsx → booking/TermsAcceptance.tsx} +9 -8
- package/src/components/booking/TicketSelector.module.css +164 -0
- package/src/components/booking/TicketSelector.tsx +199 -0
- package/src/components/booking/TourDescription.module.css +304 -0
- package/src/components/booking/TourDescription.tsx +273 -0
- package/src/components/booking/booking-flow-ui.ts +15 -1
- package/src/components/booking/booking-flow.css +944 -0
- package/src/components/bottom-sheet.module.css +78 -0
- package/src/components/bottom-sheet.tsx +60 -0
- package/src/components/breadcrumb.module.css +40 -0
- package/src/components/breadcrumb.tsx +36 -0
- package/src/components/button.css +245 -0
- package/src/components/button.tsx +152 -0
- package/src/components/client-bottom-sheet.tsx +14 -0
- package/src/components/colorable-svg.tsx +29 -0
- package/src/components/conditional-footer.tsx +27 -0
- package/src/components/contact-us.module.css +147 -0
- package/src/components/contact-us.tsx +49 -0
- package/src/components/email-signup.css +151 -0
- package/src/components/email-signup.tsx +63 -0
- package/src/components/faq-wrapper.module.css +47 -0
- package/src/components/faq-wrapper.tsx +15 -0
- package/src/components/footer.css +187 -0
- package/src/components/footer.tsx +143 -0
- package/src/components/global-simple-modal.tsx +33 -0
- package/src/components/google-review-summary.module.css +77 -0
- package/src/components/google-review-summary.tsx +50 -0
- package/src/components/hero-image.css +13 -0
- package/src/components/hero-image.tsx +44 -0
- package/src/components/image.css +29 -0
- package/src/components/image.tsx +113 -0
- package/src/components/language-aware-link.tsx +72 -0
- package/src/components/language-switcher.module.css +124 -0
- package/src/components/language-switcher.tsx +75 -0
- package/src/components/map-section.css +59 -0
- package/src/components/map-section.tsx +63 -0
- package/src/components/navbar.module.css +152 -0
- package/src/components/navbar.tsx +125 -0
- package/src/components/parallax-provider.tsx +11 -0
- package/src/components/partner/PartnerBookingPage.module.css +130 -0
- package/src/components/partner/PartnerBookingPage.tsx +390 -0
- package/src/components/partner/PartnerBookingPageWithBrowserMetadata.tsx +19 -35
- package/src/components/product-tag.module.css +30 -0
- package/src/components/product-tag.tsx +34 -0
- package/src/components/product-theme-pages/best-option.module.css +70 -0
- package/src/components/product-theme-pages/best-option.tsx +35 -0
- package/src/components/product-theme-pages/extended-tour-options.module.css +22 -0
- package/src/components/product-theme-pages/extended-tour-options.tsx +11 -0
- package/src/components/product-theme-pages/image-modal.tsx +248 -0
- package/src/components/product-theme-pages/photo-gallery.module.css +200 -0
- package/src/components/product-theme-pages/photo-gallery.tsx +90 -0
- package/src/components/product-theme-pages/product-theme-page-layout.module.css +13 -0
- package/src/components/product-theme-pages/product-theme-page-layout.tsx +67 -0
- package/src/components/product-theme-pages/top-of-fold.module.css +179 -0
- package/src/components/product-theme-pages/top-of-fold.tsx +80 -0
- package/src/components/product-tile/image-only-product-tile-desktop.module.css +106 -0
- package/src/components/product-tile/image-only-product-tile-desktop.tsx +56 -0
- package/src/components/product-tile/image-only-product-tile-mobile.module.css +122 -0
- package/src/components/product-tile/image-only-product-tile-mobile.tsx +89 -0
- package/src/components/product-tile/image-only-product-tile.tsx +44 -0
- package/src/components/product-tile/product-tile-card.module.css +84 -0
- package/src/components/product-tile/product-tile-card.tsx +61 -0
- package/src/components/review-highlights-section.css +85 -0
- package/src/components/review-highlights-section.tsx +127 -0
- package/src/components/season-closure-overlay.module.css +99 -0
- package/src/components/season-closure-overlay.tsx +98 -0
- package/src/components/simple-modal.tsx +69 -0
- package/src/components/simple-top-of-fold.module.css +76 -0
- package/src/components/simple-top-of-fold.tsx +34 -0
- package/src/components/spacer.css +41 -0
- package/src/components/spacer.tsx +23 -0
- package/src/components/star-rating.module.css +74 -0
- package/src/components/star-rating.tsx +48 -0
- package/src/components/terms/TermsContent.tsx +178 -0
- package/src/components/title-subtitle.module.css +10 -0
- package/src/components/title-subtitle.tsx +30 -0
- package/src/components/translatable-reviews.tsx +75 -0
- package/src/components/value-pill.module.css +59 -0
- package/src/components/value-pill.tsx +46 -0
- package/src/components/value-props.css +185 -0
- package/src/components/value-props.tsx +88 -0
- package/src/constants/booking-guide-quiz.ts +64 -0
- package/src/constants/contact-info.ts +2 -0
- package/src/constants/faq.ts +44 -0
- package/src/constants/images.ts +556 -0
- package/src/constants/json-ld/faq-json-ld.tsx +170 -0
- package/src/constants/json-ld/homepage-json-ld.tsx +138 -0
- package/src/constants/json-ld/job-posting-json-ld.tsx +92 -0
- package/src/constants/json-ld/organization-json-ld.tsx +62 -0
- package/src/constants/json-ld/page-json-ld.tsx +6 -0
- package/src/constants/json-ld/product-json-ld.tsx +154 -0
- package/src/constants/json-ld/review-json-ld.tsx +377 -0
- package/src/constants/navigation-links/footer-links.ts +48 -0
- package/src/constants/navigation-links/nav-bar-links.ts +41 -0
- package/src/constants/navigation-links/navigation-link.ts +6 -0
- package/src/constants/pill-values.ts +210 -0
- package/src/constants/products.ts +155 -0
- package/src/constants/quiz-recommendations.ts +506 -0
- package/src/constants/reviews.ts +75 -0
- package/src/constants/staff.ts +197 -0
- package/src/constants/value-props.ts +58 -0
- package/src/data/dap-descriptions/session-couples-families-friends.en.json +61 -0
- package/src/data/dap-descriptions/session-elopements.en.json +60 -0
- package/src/data/dap-descriptions/session-proposals.en.json +60 -0
- package/src/data/product-descriptions/afternoon-delight.en.json +35 -0
- package/src/data/product-descriptions/emerald-lake-escape.en.json +68 -0
- package/src/data/product-descriptions/lake-louise-adventure.en.json +74 -0
- package/src/data/product-descriptions/moraine-lake-adventure.en.json +78 -0
- package/src/data/product-descriptions/moraine-lake-sunrise-lake-louise-golden-hour.en.json +65 -0
- package/src/data/product-descriptions/moraine-lake-sunrise.en.json +64 -0
- package/src/data/product-descriptions/private-tour.en.json +80 -0
- package/src/data/product-descriptions/two-lakes-combo.en.json +65 -0
- package/src/data/products-config.json +101 -0
- package/src/hooks/use-bottom-sheet.tsx +15 -0
- package/src/hooks/use-simple-modal.tsx +27 -0
- package/src/hooks/useBookingSourceMetadataFromLocation.ts +21 -0
- package/src/hooks/useEmailSubscription.tsx +103 -0
- package/src/hooks/useEmbeddedInIframe.ts +16 -0
- package/src/hooks/useIsBookingLaunchLive.ts +49 -0
- package/src/hooks/useQuiz.tsx +210 -0
- package/src/index.ts +27 -2
- package/src/lib/analytics.ts +197 -0
- package/src/lib/booking/booking-source.ts +20 -2
- package/src/lib/{checkout-breakdown.ts → booking/checkout-breakdown.ts} +1 -1
- package/src/lib/booking/correlation-id.ts +46 -0
- package/src/lib/{i18n → booking/i18n}/messages/en.json +48 -4
- package/src/lib/{i18n → booking/i18n}/messages/fr.json +48 -4
- package/src/lib/booking/itinerary-display.ts +36 -0
- package/src/lib/{itinerary-labels.ts → booking/itinerary-labels.ts} +1 -1
- package/src/lib/{location-calculations.ts → booking/location-calculations.ts} +4 -4
- package/src/lib/{location-utils.ts → booking/location-utils.ts} +26 -0
- package/src/lib/{map-utils.ts → booking/map-utils.ts} +3 -3
- package/src/lib/booking/normalize-booking-product-id.ts +7 -0
- package/src/lib/{pickup-location-types.ts → booking/pickup-location-types.ts} +2 -2
- package/src/lib/{pricing.ts → booking/pricing.ts} +2 -2
- package/src/lib/booking/product-option-id.ts +35 -0
- package/src/lib/booking/source-metadata.ts +72 -7
- package/src/lib/booking/sunday-week.ts +14 -0
- package/src/lib/booking/trace-context.ts +62 -0
- package/src/lib/booking-api.ts +1793 -0
- package/src/lib/{constants.ts → booking-constants.ts} +11 -5
- package/src/lib/booking-types.ts +36 -0
- package/src/lib/currency.ts +38 -45
- package/src/lib/dap-descriptions.ts +50 -0
- package/src/lib/dap-itinerary-preview.ts +315 -0
- package/src/lib/dependent-add-on-api.ts +434 -0
- package/src/lib/env.ts +89 -5
- package/src/lib/firebase.ts +20 -0
- package/src/lib/job-application-api.ts +83 -0
- package/src/lib/manage-booking-embed-print.ts +16 -0
- package/src/lib/manage-booking-post-checkout.ts +68 -0
- package/src/lib/photo-dap-config.ts +228 -0
- package/src/lib/pickup/map-utils.ts +56 -0
- package/src/lib/pickup/marker-icons.ts +19 -0
- package/src/lib/product-descriptions.ts +66 -0
- package/src/lib/products-config.ts +73 -0
- package/src/providers/booking-dialog-provider.tsx +107 -38
- package/src/providers/bottom-sheet-provider.tsx +40 -0
- package/src/providers/dependent-add-on-dialog-provider.tsx +105 -0
- package/src/radius.css +5 -0
- package/src/spacing.css +7 -0
- package/src/strings/en.json +1774 -0
- package/src/strings/es.json +1573 -0
- package/src/strings/fr.json +1573 -0
- package/src/strings/index.js +23 -0
- package/src/text-style.css +97 -0
- package/src/types/fareharbor.d.ts +12 -0
- package/src/types/quiz.ts +59 -0
- package/src/utils/currency-converter.ts +101 -0
- package/src/components/BookingFlow.tsx +0 -2952
- package/src/components/LanguageSwitcher.tsx +0 -30
- package/src/components/PrivateShuttleBookingFlow.tsx +0 -2290
- package/src/components/ProductList.tsx +0 -78
- package/src/components/WhatsAppPhoneInput.tsx +0 -224
- package/src/components/index.ts +0 -31
- package/src/lib/api.ts +0 -801
- package/src/lib/booking-api-auth.ts +0 -9
- package/src/lib/checkout-breakdown.test.ts +0 -70
- package/src/types/google-maps.d.ts +0 -2
- /package/src/components/{CurrencySwitcher.tsx → booking/CurrencySwitcher.tsx} +0 -0
- /package/src/components/{ErrorBoundary.tsx → booking/ErrorBoundary.tsx} +0 -0
- /package/src/lib/{i18n → booking/i18n}/config.ts +0 -0
- /package/src/lib/{i18n → booking/i18n}/index.tsx +0 -0
- /package/src/lib/{marker-icons.ts → booking/marker-icons.ts} +0 -0
- /package/src/lib/{places-api.ts → booking/places-api.ts} +0 -0
- /package/src/lib/{theme.ts → booking/theme.ts} +0 -0
- /package/src/lib/{utils.ts → booking/utils.ts} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import './footer.css';
|
|
4
|
+
import { getStrings } from '@/strings';
|
|
5
|
+
import FacebookIcon from '@/assets/icons/facebook.svg';
|
|
6
|
+
import InstagramIcon from '@/assets/icons/instagram.svg';
|
|
7
|
+
import TikTokIcon from '@/assets/icons/tiktok.svg';
|
|
8
|
+
import GoogleIcon from '@/assets/icons/google-g-white.svg';
|
|
9
|
+
import Spacer from './spacer';
|
|
10
|
+
import Button, { ButtonHoverColor } from './button';
|
|
11
|
+
import { getFooterLinks } from '@/constants/navigation-links/footer-links';
|
|
12
|
+
import VIcon from '@/assets/icons/viavia-v.svg';
|
|
13
|
+
import IIcon from '@/assets/icons/viavia-i.svg';
|
|
14
|
+
import AIcon from '@/assets/icons/viavia-a.svg';
|
|
15
|
+
import Link from 'next/link';
|
|
16
|
+
import LanguageAwareLink from './language-aware-link';
|
|
17
|
+
import { useBottomSheet } from '@/providers/bottom-sheet-provider';
|
|
18
|
+
import ContactUs from './contact-us';
|
|
19
|
+
import { useEffect, Suspense } from 'react';
|
|
20
|
+
import { usePathname, useSearchParams } from 'next/navigation';
|
|
21
|
+
import MoraineMagicIcon from '@/assets/moraine-magic-white.svg';
|
|
22
|
+
import EmailSignup from './email-signup';
|
|
23
|
+
|
|
24
|
+
function ContactHandler() {
|
|
25
|
+
const { openSheet } = useBottomSheet();
|
|
26
|
+
const pathname = usePathname();
|
|
27
|
+
const searchParams = useSearchParams();
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (window.location.hash === '#contact') {
|
|
31
|
+
// Detect language from pathname inside the effect
|
|
32
|
+
const language = pathname?.startsWith('/es') ? 'es' : pathname?.startsWith('/fr') ? 'fr' : 'en';
|
|
33
|
+
const strings = getStrings(language);
|
|
34
|
+
|
|
35
|
+
// Prevent default scroll behavior
|
|
36
|
+
const handleHashChange = (e: HashChangeEvent) => {
|
|
37
|
+
if (e.newURL.includes('#contact')) {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
window.addEventListener('hashchange', handleHashChange);
|
|
43
|
+
openSheet(<ContactUs strings={strings} />);
|
|
44
|
+
// Removed the history.replaceState line to keep the hash in URL
|
|
45
|
+
|
|
46
|
+
return () => {
|
|
47
|
+
window.removeEventListener('hashchange', handleHashChange);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, [pathname, searchParams, openSheet]);
|
|
51
|
+
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default function Footer() {
|
|
56
|
+
const { openSheet } = useBottomSheet();
|
|
57
|
+
const pathname = usePathname();
|
|
58
|
+
|
|
59
|
+
// Detect language from pathname
|
|
60
|
+
const language = pathname?.startsWith('/es') ? 'es' : pathname?.startsWith('/fr') ? 'fr' : 'en';
|
|
61
|
+
const strings = getStrings(language);
|
|
62
|
+
|
|
63
|
+
const handleContactClick = () => {
|
|
64
|
+
openSheet(<ContactUs strings={strings} />);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<div className={`footer-container`}>
|
|
69
|
+
<Suspense>
|
|
70
|
+
<ContactHandler />
|
|
71
|
+
</Suspense>
|
|
72
|
+
<LanguageAwareLink href="/" className="footer-logo-container">
|
|
73
|
+
<div className="footer-via-via-name">
|
|
74
|
+
<VIcon className="footer-logo-letter" />
|
|
75
|
+
<IIcon className="footer-logo-letter" />
|
|
76
|
+
<AIcon className="footer-logo-letter" />
|
|
77
|
+
</div>
|
|
78
|
+
<Spacer horizontal = {true} />
|
|
79
|
+
<div className="footer-via-via-name">
|
|
80
|
+
<VIcon className="footer-logo-letter" />
|
|
81
|
+
<IIcon className="footer-logo-letter" />
|
|
82
|
+
<AIcon className="footer-logo-letter" />
|
|
83
|
+
</div>
|
|
84
|
+
</LanguageAwareLink>
|
|
85
|
+
<Spacer />
|
|
86
|
+
<div style={{ display: 'flex', gap: '1rem', marginBottom: '1rem' }}>
|
|
87
|
+
<a href="https://instagram.com/viaviamorainelake" target="_blank" rel="noopener noreferrer">
|
|
88
|
+
<InstagramIcon className="footer-icon" />
|
|
89
|
+
</a>
|
|
90
|
+
<a href="https://www.facebook.com/profile.php?id=61557238871790" target="_blank" rel="noopener noreferrer">
|
|
91
|
+
<FacebookIcon className="footer-icon" />
|
|
92
|
+
</a>
|
|
93
|
+
<a href="https://www.tiktok.com/@viaviamorainelake" target="_blank" rel="noopener noreferrer">
|
|
94
|
+
<TikTokIcon className="footer-icon" />
|
|
95
|
+
</a>
|
|
96
|
+
<a href="https://maps.app.goo.gl/FxRqxTjgN43ttWac9" target="_blank" rel="noopener noreferrer">
|
|
97
|
+
<GoogleIcon className="footer-icon" />
|
|
98
|
+
</a>
|
|
99
|
+
</div>
|
|
100
|
+
<Spacer />
|
|
101
|
+
<FooterLinks strings={strings} />
|
|
102
|
+
<Spacer size='L' />
|
|
103
|
+
<Button
|
|
104
|
+
onClick={handleContactClick}
|
|
105
|
+
variant="secondary"
|
|
106
|
+
>
|
|
107
|
+
{strings.footer.contactUs}
|
|
108
|
+
</Button>
|
|
109
|
+
<Spacer />
|
|
110
|
+
<p onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} style={{ cursor: 'pointer' }}>
|
|
111
|
+
↑ <a><u>{strings.footer.returnToTop}</u></a> ↑
|
|
112
|
+
</p>
|
|
113
|
+
<Spacer />
|
|
114
|
+
<MoraineMagicIcon className="footer-moraine-magic-icon" />
|
|
115
|
+
<Spacer />
|
|
116
|
+
<EmailSignup strings={strings} source="footer" />
|
|
117
|
+
<Spacer />
|
|
118
|
+
<p><LanguageAwareLink href="/terms-conditions">{strings.footer["terms-and-conditions"]}</LanguageAwareLink></p>
|
|
119
|
+
<p><LanguageAwareLink href="/privacy-policy">{strings.footer["privacy-policy"]}</LanguageAwareLink></p>
|
|
120
|
+
<p><LanguageAwareLink href="/sitemap.xml">{strings.footer["sitemap"]}</LanguageAwareLink></p>
|
|
121
|
+
<Spacer />
|
|
122
|
+
<p>{strings.footer.copyright}</p>
|
|
123
|
+
<p className="footer-company-text" style={{ textTransform: 'uppercase', textAlign: 'center' }}>{strings.footer.company}</p>
|
|
124
|
+
</div>
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function FooterLinks({ strings }: { strings: any }) {
|
|
129
|
+
const footerLinks = getFooterLinks(strings);
|
|
130
|
+
return (
|
|
131
|
+
<div className="footer-links-container">
|
|
132
|
+
{Object.values(footerLinks).map((link) => (
|
|
133
|
+
link.external ? (
|
|
134
|
+
<a key={link.name} href={link.url} target="_blank" rel="noopener noreferrer">
|
|
135
|
+
{link.name}
|
|
136
|
+
</a>
|
|
137
|
+
) : (
|
|
138
|
+
<LanguageAwareLink key={link.name} href={link.path ?? link.url ?? '/'}>{link.name}</LanguageAwareLink>
|
|
139
|
+
)
|
|
140
|
+
))}
|
|
141
|
+
</div>
|
|
142
|
+
)
|
|
143
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useSimpleModal } from '@/hooks/use-simple-modal';
|
|
4
|
+
import SimpleModal from './simple-modal';
|
|
5
|
+
import { useEffect } from 'react';
|
|
6
|
+
|
|
7
|
+
export default function GlobalSimpleModal() {
|
|
8
|
+
const { isModalOpen, closeModal } = useSimpleModal();
|
|
9
|
+
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
const handleBookNowClick = (e: Event) => {
|
|
12
|
+
const target = e.target as HTMLElement;
|
|
13
|
+
const link = target.closest('a[href="#book-now"]');
|
|
14
|
+
if (link) {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
window.dispatchEvent(new CustomEvent('openSimpleModal'));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
document.addEventListener('click', handleBookNowClick);
|
|
21
|
+
|
|
22
|
+
return () => {
|
|
23
|
+
document.removeEventListener('click', handleBookNowClick);
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<SimpleModal
|
|
29
|
+
isOpen={isModalOpen}
|
|
30
|
+
onClose={closeModal}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.googleReviewSummary {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: 1rem;
|
|
6
|
+
transition: transform 0.2s ease, filter 0.2s ease;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.googleReviewSummary:hover {
|
|
11
|
+
transform: scale(1.05);
|
|
12
|
+
filter: brightness(1.1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.googleReviewSummary:active {
|
|
16
|
+
transform: scale(1.02);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.centerSection {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.logoRow {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
gap: 0;
|
|
31
|
+
margin-bottom: 0.5rem;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
width: 100%;
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sideLogo {
|
|
38
|
+
filter: brightness(0) invert(1);
|
|
39
|
+
position: absolute;
|
|
40
|
+
z-index: 0;
|
|
41
|
+
opacity: 0.7;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
top: 50%;
|
|
44
|
+
transform: translateY(5%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sideLogo:first-child {
|
|
48
|
+
left: 5%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sideLogo:last-child {
|
|
52
|
+
right: 5%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.googleIcon {
|
|
56
|
+
--google-blue: var(--accent-white);
|
|
57
|
+
--google-red: var(--accent-white);
|
|
58
|
+
--google-yellow: var(--accent-white);
|
|
59
|
+
--google-green: var(--accent-white);
|
|
60
|
+
--google-lightblue: var(--accent-white);
|
|
61
|
+
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
|
|
62
|
+
position: relative;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
margin-bottom: -2.5px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.googleReviewsCount {
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
color: var(--accent-white);
|
|
70
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
|
71
|
+
font-family: 'Poppins', sans-serif;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.googleReviewSummary :global(.starRating) {
|
|
75
|
+
position: relative;
|
|
76
|
+
z-index: 1;
|
|
77
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import GoogleIcon from '@/assets/icons/google-g.svg';
|
|
2
|
+
import TripAdvisorIcon from '@/assets/icons/partner-logos/tripadvisor.svg';
|
|
3
|
+
import GetYourGuideIcon from '@/assets/icons/partner-logos/getyourguide.svg';
|
|
4
|
+
import styles from './google-review-summary.module.css';
|
|
5
|
+
import StarRating from './star-rating';
|
|
6
|
+
|
|
7
|
+
export default function GoogleReviewSummary({ strings }: { strings: any }) {
|
|
8
|
+
const scrollToReviews = () => {
|
|
9
|
+
const reviewsSection = document.getElementById('reviews-section');
|
|
10
|
+
if (reviewsSection) {
|
|
11
|
+
const elementTop = reviewsSection.offsetTop;
|
|
12
|
+
const offset = 100; // Adjust this value to control how high the section appears
|
|
13
|
+
window.scrollTo({
|
|
14
|
+
top: elementTop - offset,
|
|
15
|
+
behavior: 'smooth'
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div
|
|
22
|
+
className={styles.googleReviewSummary}
|
|
23
|
+
onClick={scrollToReviews}
|
|
24
|
+
style={{ cursor: 'pointer' }}
|
|
25
|
+
title="Click to see all reviews"
|
|
26
|
+
>
|
|
27
|
+
<div className={styles.centerSection}>
|
|
28
|
+
<div className={styles.logoRow}>
|
|
29
|
+
<TripAdvisorIcon
|
|
30
|
+
width={28}
|
|
31
|
+
height={28}
|
|
32
|
+
className={styles.sideLogo}
|
|
33
|
+
/>
|
|
34
|
+
<GoogleIcon
|
|
35
|
+
width={42}
|
|
36
|
+
height={42}
|
|
37
|
+
className={styles.googleIcon}
|
|
38
|
+
/>
|
|
39
|
+
<GetYourGuideIcon
|
|
40
|
+
width={28}
|
|
41
|
+
height={28}
|
|
42
|
+
className={styles.sideLogo}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
<StarRating rating={5} showVerified={false} useGradientSize={true} />
|
|
46
|
+
</div>
|
|
47
|
+
<p className={styles.googleReviewsCount}>{strings.home.hero.googleReviewsCount}</p>
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import ViaViaImage from './image';
|
|
4
|
+
import './hero-image.css';
|
|
5
|
+
import { useEffect, useRef } from 'react';
|
|
6
|
+
|
|
7
|
+
interface HeroImageProps {
|
|
8
|
+
imageId: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
objectPosition?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const HeroImage = ({ imageId, alt, objectPosition }: HeroImageProps) => {
|
|
14
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
15
|
+
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const container = containerRef.current;
|
|
18
|
+
if (!container) return;
|
|
19
|
+
|
|
20
|
+
const handleScroll = () => {
|
|
21
|
+
const scrolled = Math.max(0, Math.min(window.scrollY, container.offsetHeight));
|
|
22
|
+
const rate = scrolled * 0.5;
|
|
23
|
+
container.style.transform = `translate3d(0, ${rate}px, 0)`;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
window.addEventListener('scroll', handleScroll, { passive: true });
|
|
27
|
+
return () => window.removeEventListener('scroll', handleScroll);
|
|
28
|
+
}, []);
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<div className="hero-image-container">
|
|
32
|
+
<div className="parallax-container" ref={containerRef}>
|
|
33
|
+
<ViaViaImage
|
|
34
|
+
imageId={imageId}
|
|
35
|
+
context="HERO"
|
|
36
|
+
alt={alt}
|
|
37
|
+
style={objectPosition ? { objectPosition } : undefined}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default HeroImage;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.image-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.image-natural {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Make sure images are responsive within their containers */
|
|
14
|
+
.image-container img {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
object-fit: cover;
|
|
18
|
+
/* This centers the image content vertically when cropped */
|
|
19
|
+
object-position: 50% 50%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.image-natural img {
|
|
23
|
+
display: block;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: auto;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
max-height: 100%;
|
|
28
|
+
object-fit: contain;
|
|
29
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import './image.css';
|
|
5
|
+
|
|
6
|
+
interface ImageWidths {
|
|
7
|
+
mobile: number;
|
|
8
|
+
tablet: number;
|
|
9
|
+
desktop: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface ImageWidthsMap {
|
|
13
|
+
HERO: ImageWidths;
|
|
14
|
+
GALLERY: ImageWidths;
|
|
15
|
+
THUMBNAIL: ImageWidths;
|
|
16
|
+
MODAL: ImageWidths;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const IMAGE_WIDTHS: ImageWidthsMap = {
|
|
20
|
+
HERO: {
|
|
21
|
+
mobile: 768,
|
|
22
|
+
tablet: 1024,
|
|
23
|
+
desktop: 1920
|
|
24
|
+
},
|
|
25
|
+
GALLERY: {
|
|
26
|
+
mobile: 400,
|
|
27
|
+
tablet: 600,
|
|
28
|
+
desktop: 800
|
|
29
|
+
},
|
|
30
|
+
THUMBNAIL: {
|
|
31
|
+
mobile: 200,
|
|
32
|
+
tablet: 300,
|
|
33
|
+
desktop: 400
|
|
34
|
+
},
|
|
35
|
+
MODAL: {
|
|
36
|
+
mobile: 1024,
|
|
37
|
+
tablet: 1280,
|
|
38
|
+
desktop: 1920
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
type ImageContext = 'HERO' | 'GALLERY' | 'THUMBNAIL' | 'MODAL';
|
|
43
|
+
|
|
44
|
+
interface ImageProps {
|
|
45
|
+
imageId: string;
|
|
46
|
+
context?: ImageContext;
|
|
47
|
+
alt: string;
|
|
48
|
+
className?: string;
|
|
49
|
+
maintainAspectRatio?: boolean;
|
|
50
|
+
style?: React.CSSProperties;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Pre-compute sizes strings for each context to ensure consistency
|
|
54
|
+
const SIZES = {
|
|
55
|
+
HERO: '(min-width: 1024px) 1920px, (min-width: 768px) 1024px, 768px',
|
|
56
|
+
GALLERY: '(min-width: 1024px) 800px, (min-width: 768px) 600px, 400px',
|
|
57
|
+
THUMBNAIL: '(min-width: 1024px) 400px, (min-width: 768px) 300px, 200px',
|
|
58
|
+
MODAL: '(min-width: 1024px) 1920px, (min-width: 768px) 1280px, 1024px'
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// Pre-compute quality values
|
|
62
|
+
const QUALITY = {
|
|
63
|
+
HERO: 85,
|
|
64
|
+
GALLERY: 75,
|
|
65
|
+
THUMBNAIL: 75,
|
|
66
|
+
MODAL: 85
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const ViaViaImage = ({
|
|
70
|
+
className = '',
|
|
71
|
+
imageId,
|
|
72
|
+
context = 'THUMBNAIL',
|
|
73
|
+
alt,
|
|
74
|
+
maintainAspectRatio = false,
|
|
75
|
+
style
|
|
76
|
+
}: ImageProps) => {
|
|
77
|
+
const normalizedContext = context.toUpperCase() as ImageContext;
|
|
78
|
+
const widths = IMAGE_WIDTHS[normalizedContext];
|
|
79
|
+
|
|
80
|
+
if (maintainAspectRatio) {
|
|
81
|
+
return (
|
|
82
|
+
<div className={`image-container image-natural ${className}`}>
|
|
83
|
+
<Image
|
|
84
|
+
src={imageId}
|
|
85
|
+
alt={alt}
|
|
86
|
+
fill={false}
|
|
87
|
+
width={widths.desktop}
|
|
88
|
+
height={widths.desktop * 9 / 16}
|
|
89
|
+
sizes={SIZES[normalizedContext]}
|
|
90
|
+
priority={normalizedContext === 'HERO'}
|
|
91
|
+
quality={QUALITY[normalizedContext]}
|
|
92
|
+
style={{ width: '100%', height: 'auto', ...style }}
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<div className={`image-container image-${normalizedContext.toLowerCase()} ${className}`}>
|
|
100
|
+
<Image
|
|
101
|
+
src={imageId}
|
|
102
|
+
alt={alt}
|
|
103
|
+
fill={true}
|
|
104
|
+
sizes={SIZES[normalizedContext]}
|
|
105
|
+
priority={normalizedContext === 'HERO'}
|
|
106
|
+
quality={QUALITY[normalizedContext]}
|
|
107
|
+
style={style}
|
|
108
|
+
/>
|
|
109
|
+
</div>
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export default ViaViaImage;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { usePathname } from 'next/navigation';
|
|
5
|
+
|
|
6
|
+
interface LanguageAwareLinkProps {
|
|
7
|
+
href: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
target?: string;
|
|
11
|
+
rel?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default function LanguageAwareLink({
|
|
16
|
+
href,
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
target,
|
|
20
|
+
rel,
|
|
21
|
+
onClick
|
|
22
|
+
}: LanguageAwareLinkProps) {
|
|
23
|
+
const pathname = usePathname();
|
|
24
|
+
|
|
25
|
+
// Check if we're currently on a non-English page
|
|
26
|
+
const isSpanishPage = pathname?.startsWith('/es');
|
|
27
|
+
const isFrenchPage = pathname?.startsWith('/fr');
|
|
28
|
+
|
|
29
|
+
// Define which pages have translated versions (currently only the homepage)
|
|
30
|
+
const translatedPages = ['/'];
|
|
31
|
+
|
|
32
|
+
const getLocalizedHref = () => {
|
|
33
|
+
// If we're on a Spanish page
|
|
34
|
+
if (isSpanishPage && href.startsWith('/') && !href.startsWith('/es')) {
|
|
35
|
+
// Only prepend /es if this page has a Spanish version
|
|
36
|
+
if (translatedPages.includes(href)) {
|
|
37
|
+
return `/es${href}`;
|
|
38
|
+
}
|
|
39
|
+
// Otherwise, go to the English version (remove any /es prefix if present)
|
|
40
|
+
return href;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// If we're on a French page
|
|
44
|
+
if (isFrenchPage && href.startsWith('/') && !href.startsWith('/fr')) {
|
|
45
|
+
// Only prepend /fr if this page has a French version
|
|
46
|
+
if (translatedPages.includes(href)) {
|
|
47
|
+
return `/fr${href}`;
|
|
48
|
+
}
|
|
49
|
+
// Otherwise, go to the English version (remove any /fr prefix if present)
|
|
50
|
+
return href;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// If we're on an English page, always go to English version
|
|
54
|
+
if (!isSpanishPage && !isFrenchPage && (href.startsWith('/es') || href.startsWith('/fr'))) {
|
|
55
|
+
return href.replace(/^\/(es|fr)/, '') || '/';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return href;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Link
|
|
63
|
+
href={getLocalizedHref()}
|
|
64
|
+
className={className}
|
|
65
|
+
target={target}
|
|
66
|
+
rel={rel}
|
|
67
|
+
onClick={onClick}
|
|
68
|
+
>
|
|
69
|
+
{children}
|
|
70
|
+
</Link>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.languageSwitcher {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 20px;
|
|
4
|
+
left: 20px;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.currentLanguage {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: 8px;
|
|
13
|
+
padding: 8px 12px;
|
|
14
|
+
background: rgba(255, 255, 255, 0.95);
|
|
15
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
16
|
+
border-radius: var(--border-radius-pill);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition: all 0.2s ease;
|
|
19
|
+
backdrop-filter: blur(10px);
|
|
20
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.currentLanguage:hover {
|
|
24
|
+
background: rgba(255, 255, 255, 1);
|
|
25
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
26
|
+
transform: translateY(-1px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.flag {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
line-height: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.languageCode {
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
color: #333;
|
|
38
|
+
letter-spacing: 0.5px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.languageDropdown {
|
|
42
|
+
position: absolute;
|
|
43
|
+
bottom: 100%;
|
|
44
|
+
left: 0;
|
|
45
|
+
margin-bottom: 8px;
|
|
46
|
+
background: rgba(255, 255, 255, 0.95);
|
|
47
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
backdrop-filter: blur(10px);
|
|
50
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
51
|
+
opacity: 0;
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
transform: translateY(8px);
|
|
54
|
+
transition: all 0.2s ease;
|
|
55
|
+
min-width: 140px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.languageDropdown.visible {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
visibility: visible;
|
|
61
|
+
transform: translateY(0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.languageOption {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
padding: 10px 12px;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
color: #333;
|
|
71
|
+
transition: background-color 0.15s ease;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
margin: 4px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.languageOption:hover {
|
|
77
|
+
background: rgba(0, 0, 0, 0.05);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.languageOption.active {
|
|
81
|
+
background: rgba(59, 130, 246, 0.1);
|
|
82
|
+
color: #3b82f6;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.languageOption.active .flag {
|
|
86
|
+
opacity: 0.8;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.languageName {
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Mobile responsiveness */
|
|
95
|
+
@media (max-width: 768px) {
|
|
96
|
+
.languageSwitcher {
|
|
97
|
+
bottom: 15px;
|
|
98
|
+
left: 15px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.currentLanguage {
|
|
102
|
+
padding: 6px 10px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.flag {
|
|
106
|
+
font-size: 14px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.languageCode {
|
|
110
|
+
font-size: 11px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.languageDropdown {
|
|
114
|
+
min-width: 120px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.languageOption {
|
|
118
|
+
padding: 8px 10px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.languageName {
|
|
122
|
+
font-size: 13px;
|
|
123
|
+
}
|
|
124
|
+
}
|