@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.
Files changed (255) hide show
  1. package/package.json +2 -1
  2. package/src/app/photo-sessions/photo-packages.ts +75 -0
  3. package/src/assets/icons/partner-logos/getyourguide.svg +8 -0
  4. package/src/assets/icons/plus.svg +3 -0
  5. package/src/colours.css +23 -0
  6. package/src/components/BookingDetails.module.css +1591 -0
  7. package/src/components/BookingDetails.tsx +2072 -354
  8. package/src/components/BookingWidget.tsx +28 -248
  9. package/src/components/JobApplicationDialog.module.css +440 -0
  10. package/src/components/JobApplicationDialog.tsx +620 -0
  11. package/src/components/ManageBookingView.tsx +28 -36
  12. package/src/components/PhoneInputWithCountry.module.css +131 -0
  13. package/src/components/PhoneInputWithCountry.tsx +44 -0
  14. package/src/components/PickupLocationDialog.module.css +360 -0
  15. package/src/components/PickupLocationDialog.tsx +357 -0
  16. package/src/components/PickupLocationMap.tsx +110 -0
  17. package/src/components/PostBookingDependentAddOnUpsell.module.css +174 -0
  18. package/src/components/PostBookingDependentAddOnUpsell.tsx +407 -0
  19. package/src/components/accordion.css +27 -0
  20. package/src/components/accordion.tsx +29 -0
  21. package/src/components/analytics/AnalyticsConsentRestore.tsx +19 -0
  22. package/src/components/analytics/AnalyticsScripts.tsx +106 -0
  23. package/src/components/analytics/CookieConsentBanner.css +86 -0
  24. package/src/components/analytics/CookieConsentBanner.tsx +102 -0
  25. package/src/components/booking/AddOnsSection.module.css +10 -0
  26. package/src/components/booking/AddOnsSection.tsx +184 -0
  27. package/src/components/booking/AdminPaymentChoiceModal.tsx +98 -0
  28. package/src/components/booking/BookingDialog.module.css +643 -0
  29. package/src/components/booking/BookingDialog.tsx +356 -0
  30. package/src/components/booking/BookingFlow.tsx +4385 -0
  31. package/src/components/booking/BookingFlowCollage.module.css +148 -0
  32. package/src/components/booking/BookingFlowCollage.tsx +184 -0
  33. package/src/components/booking/BookingFlowPlaceholder.module.css +27 -0
  34. package/src/components/booking/BookingFlowPlaceholder.tsx +25 -0
  35. package/src/components/booking/BookingFlowPreview.tsx +51 -0
  36. package/src/components/booking/BookingProductGrid.module.css +359 -0
  37. package/src/components/booking/BookingProductGrid.tsx +497 -0
  38. package/src/components/booking/Calendar.module.css +616 -0
  39. package/src/components/{Calendar.tsx → booking/Calendar.tsx} +464 -247
  40. package/src/components/booking/CancellationPolicySelector.module.css +124 -0
  41. package/src/components/booking/CancellationPolicySelector.tsx +142 -0
  42. package/src/components/booking/ChangeBookingDialog.tsx +562 -0
  43. package/src/components/booking/CheckoutForm.module.css +244 -0
  44. package/src/components/booking/CheckoutForm.tsx +364 -0
  45. package/src/components/{CheckoutModal.tsx → booking/CheckoutModal.tsx} +176 -19
  46. package/src/components/booking/DapFlowCollage.tsx +88 -0
  47. package/src/components/booking/DapTourDescription.tsx +35 -0
  48. package/src/components/booking/DependentAddOnBookingDialog.tsx +1350 -0
  49. package/src/components/booking/DependentAddOnPaymentForm.tsx +124 -0
  50. package/src/components/booking/InfoTooltip.tsx +108 -0
  51. package/src/components/booking/ItineraryBox.module.css +258 -0
  52. package/src/components/booking/ItineraryBox.tsx +550 -0
  53. package/src/components/{ItineraryBuilder.tsx → booking/ItineraryBuilder.tsx} +1 -2
  54. package/src/components/booking/ItineraryPlaceholder.module.css +45 -0
  55. package/src/components/booking/ItineraryPlaceholder.tsx +26 -0
  56. package/src/components/{MealDrinkAddOnSelector.tsx → booking/MealDrinkAddOnSelector.tsx} +21 -13
  57. package/src/components/booking/PickupLocationSelector.module.css +124 -0
  58. package/src/components/{PickupLocationSelector.tsx → booking/PickupLocationSelector.tsx} +315 -290
  59. package/src/components/booking/PickupTimeSelector.module.css +134 -0
  60. package/src/components/booking/PickupTimeSelector.tsx +112 -0
  61. package/src/components/{PriceBreakdown.tsx → booking/PriceBreakdown.tsx} +3 -3
  62. package/src/components/{PriceSummary.tsx → booking/PriceSummary.tsx} +51 -28
  63. package/src/components/booking/PrivateShuttleBookingFlow.module.css +357 -0
  64. package/src/components/booking/PrivateShuttleBookingFlow.tsx +2662 -0
  65. package/src/components/booking/PromoCodeInput.module.css +166 -0
  66. package/src/components/booking/PromoCodeInput.tsx +99 -0
  67. package/src/components/booking/ReturnTimeSelector.module.css +173 -0
  68. package/src/components/booking/ReturnTimeSelector.tsx +145 -0
  69. package/src/components/{TermsAcceptance.tsx → booking/TermsAcceptance.tsx} +9 -8
  70. package/src/components/booking/TicketSelector.module.css +164 -0
  71. package/src/components/booking/TicketSelector.tsx +199 -0
  72. package/src/components/booking/TourDescription.module.css +304 -0
  73. package/src/components/booking/TourDescription.tsx +273 -0
  74. package/src/components/booking/booking-flow-ui.ts +15 -1
  75. package/src/components/booking/booking-flow.css +944 -0
  76. package/src/components/bottom-sheet.module.css +78 -0
  77. package/src/components/bottom-sheet.tsx +60 -0
  78. package/src/components/breadcrumb.module.css +40 -0
  79. package/src/components/breadcrumb.tsx +36 -0
  80. package/src/components/button.css +245 -0
  81. package/src/components/button.tsx +152 -0
  82. package/src/components/client-bottom-sheet.tsx +14 -0
  83. package/src/components/colorable-svg.tsx +29 -0
  84. package/src/components/conditional-footer.tsx +27 -0
  85. package/src/components/contact-us.module.css +147 -0
  86. package/src/components/contact-us.tsx +49 -0
  87. package/src/components/email-signup.css +151 -0
  88. package/src/components/email-signup.tsx +63 -0
  89. package/src/components/faq-wrapper.module.css +47 -0
  90. package/src/components/faq-wrapper.tsx +15 -0
  91. package/src/components/footer.css +187 -0
  92. package/src/components/footer.tsx +143 -0
  93. package/src/components/global-simple-modal.tsx +33 -0
  94. package/src/components/google-review-summary.module.css +77 -0
  95. package/src/components/google-review-summary.tsx +50 -0
  96. package/src/components/hero-image.css +13 -0
  97. package/src/components/hero-image.tsx +44 -0
  98. package/src/components/image.css +29 -0
  99. package/src/components/image.tsx +113 -0
  100. package/src/components/language-aware-link.tsx +72 -0
  101. package/src/components/language-switcher.module.css +124 -0
  102. package/src/components/language-switcher.tsx +75 -0
  103. package/src/components/map-section.css +59 -0
  104. package/src/components/map-section.tsx +63 -0
  105. package/src/components/navbar.module.css +152 -0
  106. package/src/components/navbar.tsx +125 -0
  107. package/src/components/parallax-provider.tsx +11 -0
  108. package/src/components/partner/PartnerBookingPage.module.css +130 -0
  109. package/src/components/partner/PartnerBookingPage.tsx +390 -0
  110. package/src/components/partner/PartnerBookingPageWithBrowserMetadata.tsx +19 -35
  111. package/src/components/product-tag.module.css +30 -0
  112. package/src/components/product-tag.tsx +34 -0
  113. package/src/components/product-theme-pages/best-option.module.css +70 -0
  114. package/src/components/product-theme-pages/best-option.tsx +35 -0
  115. package/src/components/product-theme-pages/extended-tour-options.module.css +22 -0
  116. package/src/components/product-theme-pages/extended-tour-options.tsx +11 -0
  117. package/src/components/product-theme-pages/image-modal.tsx +248 -0
  118. package/src/components/product-theme-pages/photo-gallery.module.css +200 -0
  119. package/src/components/product-theme-pages/photo-gallery.tsx +90 -0
  120. package/src/components/product-theme-pages/product-theme-page-layout.module.css +13 -0
  121. package/src/components/product-theme-pages/product-theme-page-layout.tsx +67 -0
  122. package/src/components/product-theme-pages/top-of-fold.module.css +179 -0
  123. package/src/components/product-theme-pages/top-of-fold.tsx +80 -0
  124. package/src/components/product-tile/image-only-product-tile-desktop.module.css +106 -0
  125. package/src/components/product-tile/image-only-product-tile-desktop.tsx +56 -0
  126. package/src/components/product-tile/image-only-product-tile-mobile.module.css +122 -0
  127. package/src/components/product-tile/image-only-product-tile-mobile.tsx +89 -0
  128. package/src/components/product-tile/image-only-product-tile.tsx +44 -0
  129. package/src/components/product-tile/product-tile-card.module.css +84 -0
  130. package/src/components/product-tile/product-tile-card.tsx +61 -0
  131. package/src/components/review-highlights-section.css +85 -0
  132. package/src/components/review-highlights-section.tsx +127 -0
  133. package/src/components/season-closure-overlay.module.css +99 -0
  134. package/src/components/season-closure-overlay.tsx +98 -0
  135. package/src/components/simple-modal.tsx +69 -0
  136. package/src/components/simple-top-of-fold.module.css +76 -0
  137. package/src/components/simple-top-of-fold.tsx +34 -0
  138. package/src/components/spacer.css +41 -0
  139. package/src/components/spacer.tsx +23 -0
  140. package/src/components/star-rating.module.css +74 -0
  141. package/src/components/star-rating.tsx +48 -0
  142. package/src/components/terms/TermsContent.tsx +178 -0
  143. package/src/components/title-subtitle.module.css +10 -0
  144. package/src/components/title-subtitle.tsx +30 -0
  145. package/src/components/translatable-reviews.tsx +75 -0
  146. package/src/components/value-pill.module.css +59 -0
  147. package/src/components/value-pill.tsx +46 -0
  148. package/src/components/value-props.css +185 -0
  149. package/src/components/value-props.tsx +88 -0
  150. package/src/constants/booking-guide-quiz.ts +64 -0
  151. package/src/constants/contact-info.ts +2 -0
  152. package/src/constants/faq.ts +44 -0
  153. package/src/constants/images.ts +556 -0
  154. package/src/constants/json-ld/faq-json-ld.tsx +170 -0
  155. package/src/constants/json-ld/homepage-json-ld.tsx +138 -0
  156. package/src/constants/json-ld/job-posting-json-ld.tsx +92 -0
  157. package/src/constants/json-ld/organization-json-ld.tsx +62 -0
  158. package/src/constants/json-ld/page-json-ld.tsx +6 -0
  159. package/src/constants/json-ld/product-json-ld.tsx +154 -0
  160. package/src/constants/json-ld/review-json-ld.tsx +377 -0
  161. package/src/constants/navigation-links/footer-links.ts +48 -0
  162. package/src/constants/navigation-links/nav-bar-links.ts +41 -0
  163. package/src/constants/navigation-links/navigation-link.ts +6 -0
  164. package/src/constants/pill-values.ts +210 -0
  165. package/src/constants/products.ts +155 -0
  166. package/src/constants/quiz-recommendations.ts +506 -0
  167. package/src/constants/reviews.ts +75 -0
  168. package/src/constants/staff.ts +197 -0
  169. package/src/constants/value-props.ts +58 -0
  170. package/src/data/dap-descriptions/session-couples-families-friends.en.json +61 -0
  171. package/src/data/dap-descriptions/session-elopements.en.json +60 -0
  172. package/src/data/dap-descriptions/session-proposals.en.json +60 -0
  173. package/src/data/product-descriptions/afternoon-delight.en.json +35 -0
  174. package/src/data/product-descriptions/emerald-lake-escape.en.json +68 -0
  175. package/src/data/product-descriptions/lake-louise-adventure.en.json +74 -0
  176. package/src/data/product-descriptions/moraine-lake-adventure.en.json +78 -0
  177. package/src/data/product-descriptions/moraine-lake-sunrise-lake-louise-golden-hour.en.json +65 -0
  178. package/src/data/product-descriptions/moraine-lake-sunrise.en.json +64 -0
  179. package/src/data/product-descriptions/private-tour.en.json +80 -0
  180. package/src/data/product-descriptions/two-lakes-combo.en.json +65 -0
  181. package/src/data/products-config.json +101 -0
  182. package/src/hooks/use-bottom-sheet.tsx +15 -0
  183. package/src/hooks/use-simple-modal.tsx +27 -0
  184. package/src/hooks/useBookingSourceMetadataFromLocation.ts +21 -0
  185. package/src/hooks/useEmailSubscription.tsx +103 -0
  186. package/src/hooks/useEmbeddedInIframe.ts +16 -0
  187. package/src/hooks/useIsBookingLaunchLive.ts +49 -0
  188. package/src/hooks/useQuiz.tsx +210 -0
  189. package/src/index.ts +27 -2
  190. package/src/lib/analytics.ts +197 -0
  191. package/src/lib/booking/booking-source.ts +20 -2
  192. package/src/lib/{checkout-breakdown.ts → booking/checkout-breakdown.ts} +1 -1
  193. package/src/lib/booking/correlation-id.ts +46 -0
  194. package/src/lib/{i18n → booking/i18n}/messages/en.json +48 -4
  195. package/src/lib/{i18n → booking/i18n}/messages/fr.json +48 -4
  196. package/src/lib/booking/itinerary-display.ts +36 -0
  197. package/src/lib/{itinerary-labels.ts → booking/itinerary-labels.ts} +1 -1
  198. package/src/lib/{location-calculations.ts → booking/location-calculations.ts} +4 -4
  199. package/src/lib/{location-utils.ts → booking/location-utils.ts} +26 -0
  200. package/src/lib/{map-utils.ts → booking/map-utils.ts} +3 -3
  201. package/src/lib/booking/normalize-booking-product-id.ts +7 -0
  202. package/src/lib/{pickup-location-types.ts → booking/pickup-location-types.ts} +2 -2
  203. package/src/lib/{pricing.ts → booking/pricing.ts} +2 -2
  204. package/src/lib/booking/product-option-id.ts +35 -0
  205. package/src/lib/booking/source-metadata.ts +72 -7
  206. package/src/lib/booking/sunday-week.ts +14 -0
  207. package/src/lib/booking/trace-context.ts +62 -0
  208. package/src/lib/booking-api.ts +1793 -0
  209. package/src/lib/{constants.ts → booking-constants.ts} +11 -5
  210. package/src/lib/booking-types.ts +36 -0
  211. package/src/lib/currency.ts +38 -45
  212. package/src/lib/dap-descriptions.ts +50 -0
  213. package/src/lib/dap-itinerary-preview.ts +315 -0
  214. package/src/lib/dependent-add-on-api.ts +434 -0
  215. package/src/lib/env.ts +89 -5
  216. package/src/lib/firebase.ts +20 -0
  217. package/src/lib/job-application-api.ts +83 -0
  218. package/src/lib/manage-booking-embed-print.ts +16 -0
  219. package/src/lib/manage-booking-post-checkout.ts +68 -0
  220. package/src/lib/photo-dap-config.ts +228 -0
  221. package/src/lib/pickup/map-utils.ts +56 -0
  222. package/src/lib/pickup/marker-icons.ts +19 -0
  223. package/src/lib/product-descriptions.ts +66 -0
  224. package/src/lib/products-config.ts +73 -0
  225. package/src/providers/booking-dialog-provider.tsx +107 -38
  226. package/src/providers/bottom-sheet-provider.tsx +40 -0
  227. package/src/providers/dependent-add-on-dialog-provider.tsx +105 -0
  228. package/src/radius.css +5 -0
  229. package/src/spacing.css +7 -0
  230. package/src/strings/en.json +1774 -0
  231. package/src/strings/es.json +1573 -0
  232. package/src/strings/fr.json +1573 -0
  233. package/src/strings/index.js +23 -0
  234. package/src/text-style.css +97 -0
  235. package/src/types/fareharbor.d.ts +12 -0
  236. package/src/types/quiz.ts +59 -0
  237. package/src/utils/currency-converter.ts +101 -0
  238. package/src/components/BookingFlow.tsx +0 -2952
  239. package/src/components/LanguageSwitcher.tsx +0 -30
  240. package/src/components/PrivateShuttleBookingFlow.tsx +0 -2290
  241. package/src/components/ProductList.tsx +0 -78
  242. package/src/components/WhatsAppPhoneInput.tsx +0 -224
  243. package/src/components/index.ts +0 -31
  244. package/src/lib/api.ts +0 -801
  245. package/src/lib/booking-api-auth.ts +0 -9
  246. package/src/lib/checkout-breakdown.test.ts +0 -70
  247. package/src/types/google-maps.d.ts +0 -2
  248. /package/src/components/{CurrencySwitcher.tsx → booking/CurrencySwitcher.tsx} +0 -0
  249. /package/src/components/{ErrorBoundary.tsx → booking/ErrorBoundary.tsx} +0 -0
  250. /package/src/lib/{i18n → booking/i18n}/config.ts +0 -0
  251. /package/src/lib/{i18n → booking/i18n}/index.tsx +0 -0
  252. /package/src/lib/{marker-icons.ts → booking/marker-icons.ts} +0 -0
  253. /package/src/lib/{places-api.ts → booking/places-api.ts} +0 -0
  254. /package/src/lib/{theme.ts → booking/theme.ts} +0 -0
  255. /package/src/lib/{utils.ts → booking/utils.ts} +0 -0
@@ -0,0 +1,75 @@
1
+ 'use client';
2
+
3
+ import { useState, useEffect } from 'react';
4
+ import { usePathname } from 'next/navigation';
5
+ import Link from 'next/link';
6
+ import styles from './language-switcher.module.css';
7
+
8
+ interface Language {
9
+ code: string;
10
+ name: string;
11
+ flag: string;
12
+ }
13
+
14
+ const languages: Language[] = [
15
+ { code: 'en', name: 'english', flag: '🇨🇦' },
16
+ { code: 'es', name: 'español', flag: '🇪🇸' },
17
+ { code: 'fr', name: 'français', flag: '🇫🇷' },
18
+ // Future languages
19
+ // { code: 'nl', name: 'Nederlands', flag: '🇳🇱' },
20
+ ];
21
+
22
+ export default function LanguageSwitcher() {
23
+ const [isHovered, setIsHovered] = useState(false);
24
+ const pathname = usePathname();
25
+
26
+ // Get current language from pathname
27
+ const currentLanguage = pathname?.startsWith('/es') ? 'es' :
28
+ pathname?.startsWith('/fr') ? 'fr' : 'en';
29
+
30
+ const getLanguageUrl = (langCode: string) => {
31
+ if (langCode === 'en') {
32
+ // Go to English version (remove any language prefix)
33
+ return pathname?.replace(/^\/(es|fr)/, '') || '/';
34
+ } else if (langCode === 'es') {
35
+ // Go to Spanish version (add /es prefix)
36
+ const basePath = pathname?.replace(/^\/(es|fr)/, '') || '/';
37
+ return `/es${basePath}`;
38
+ } else if (langCode === 'fr') {
39
+ // Go to French version (add /fr prefix)
40
+ const basePath = pathname?.replace(/^\/(es|fr)/, '') || '/';
41
+ return `/fr${basePath}`;
42
+ }
43
+ return '/';
44
+ };
45
+
46
+ const currentLang = languages.find(lang => lang.code === currentLanguage) || languages[0];
47
+
48
+ return (
49
+ <div
50
+ className={styles.languageSwitcher}
51
+ onMouseEnter={() => setIsHovered(true)}
52
+ onMouseLeave={() => setIsHovered(false)}
53
+ >
54
+ <div className={styles.currentLanguage}>
55
+ <span className={styles.flag}>{currentLang.flag}</span>
56
+ <span className={styles.languageCode}>{currentLang.code.toUpperCase()}</span>
57
+ </div>
58
+
59
+ <div className={`${styles.languageDropdown} ${isHovered ? styles.visible : ''}`}>
60
+ {languages.map((language) => (
61
+ <Link
62
+ key={language.code}
63
+ href={getLanguageUrl(language.code)}
64
+ className={`${styles.languageOption} ${
65
+ language.code === currentLanguage ? styles.active : ''
66
+ }`}
67
+ >
68
+ <span className={styles.flag}>{language.flag}</span>
69
+ <span className={styles.languageName}>{language.name}</span>
70
+ </Link>
71
+ ))}
72
+ </div>
73
+ </div>
74
+ );
75
+ }
@@ -0,0 +1,59 @@
1
+ .map-section-wrapper {
2
+ width: 100%;
3
+ background-color: var(--light-orange-background);
4
+ overflow: hidden;
5
+ padding-top: var(--spacing-medium);
6
+ }
7
+
8
+ .map-section-container {
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ justify-content: center;
13
+ width: fit-content;
14
+ min-height: 100px;
15
+ padding: 2rem 4rem;
16
+ background-color: var(--accent-map-green);
17
+ margin: 0 auto;
18
+ border-radius: 20px 20px 0px 0px;
19
+ }
20
+
21
+ .map-section-image {
22
+ width: 100%;
23
+ min-height: fit-content;
24
+ object-fit: fit;
25
+ overflow: hidden;
26
+ }
27
+
28
+ .via-via-map {
29
+ width: 100%;
30
+ height: auto;
31
+ display: block;
32
+ }
33
+
34
+ @media (max-width: 1023px) {
35
+ .map-section-container {
36
+ width: 90%;
37
+ padding: 2rem 0.5rem; /* Reduce padding on mobile */
38
+ }
39
+
40
+ .via-via-map {
41
+ width: 100%;
42
+ }
43
+ }
44
+
45
+ @media (min-width: 1024px) {
46
+ .map-section-container {
47
+ width: 70%;
48
+ }
49
+
50
+ .map-section-image {
51
+ width: 100%;
52
+ margin-top: 1rem;
53
+ }
54
+
55
+ .via-via-map {
56
+ width: 60%;
57
+ margin: 0 auto;
58
+ }
59
+ }
@@ -0,0 +1,63 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import ViaViaImage from "@/components/image";
5
+ import { IMAGES } from "@/constants/images";
6
+ import "./map-section.css";
7
+ import { motion } from "motion/react";
8
+ import { useState } from "react";
9
+
10
+ interface MapSectionProps {
11
+ title: string;
12
+ }
13
+
14
+ const variants = {
15
+ hidden: { x: 0, y: 200 },
16
+ visible: { x: 0, y: 0 }
17
+ };
18
+
19
+ export default function MapSection(
20
+ { title }: MapSectionProps
21
+ ) {
22
+ const [hasAnimated, setHasAnimated] = useState(false);
23
+
24
+ const handleViewportEnter = (entry: IntersectionObserverEntry | null) => {
25
+ if (!hasAnimated) {
26
+ setHasAnimated(true);
27
+ }
28
+ };
29
+
30
+ const handleViewportLeave = (entry: IntersectionObserverEntry | null) => {
31
+ if (entry?.boundingClientRect.top! > 0) {
32
+ setHasAnimated(false);
33
+ }
34
+ };
35
+
36
+ return (
37
+ <div className="map-section-wrapper">
38
+ <motion.div className="map-section-container"
39
+ variants={variants}
40
+ initial="hidden"
41
+ animate={hasAnimated ? "visible" : "hidden"}
42
+ transition={{
43
+ type: "spring",
44
+ bounce: 0.1,
45
+ duration: 1,
46
+ }}
47
+ viewport={{ once: false }}
48
+ onViewportEnter={handleViewportEnter}
49
+ onViewportLeave={handleViewportLeave}
50
+ >
51
+ <h2>{title}</h2>
52
+ <div className="map-section-image">
53
+ <ViaViaImage
54
+ imageId={IMAGES.VIA_VIA_OPERATIONS_MAP.id}
55
+ alt={IMAGES.VIA_VIA_OPERATIONS_MAP.alt}
56
+ context="GALLERY"
57
+ maintainAspectRatio={true}
58
+ />
59
+ </div>
60
+ </motion.div>
61
+ </div>
62
+ );
63
+ }
@@ -0,0 +1,152 @@
1
+ .hideAndSlideNavbar {
2
+ position: fixed;
3
+ top: -150px; /* Start hidden above the viewport */
4
+ transition: transform 0.5s ease;
5
+ }
6
+
7
+ .showAndSlideNavbar {
8
+ transform: translateY(150px); /* Slide down to become visible */
9
+ }
10
+
11
+ .navbarContainer {
12
+ left: 0;
13
+ right: 0;
14
+ z-index: 100;
15
+ }
16
+
17
+ .navbarContent {
18
+ width: 100%;
19
+ height: 100%;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+
24
+ .navbarRow {
25
+ display: flex;
26
+ flex-direction: row;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ }
30
+
31
+ /* Desktop Navbar */
32
+ @media (min-width: 1024px) {
33
+ .navbarContainer {
34
+ background-color: rgba(255, 238, 232, 0.7);
35
+ backdrop-filter: blur(8px);
36
+ padding: 1rem;
37
+ }
38
+
39
+ .navigationBarIcon {
40
+ width: 60px;
41
+ height: 60px;
42
+ }
43
+
44
+ .navbarContent {
45
+ max-width: 95%;
46
+ margin: 0 auto;
47
+ }
48
+
49
+ .mobileNavbarContent {
50
+ display: none;
51
+ }
52
+
53
+ .mobileNavbarLinks {
54
+ display: none;
55
+ }
56
+
57
+ .desktopNavbarContent {
58
+ display: flex;
59
+ flex-direction: row;
60
+ justify-content: space-between;
61
+ align-items: center;
62
+ width: 100%;
63
+ }
64
+
65
+ .navbarLinks {
66
+ display: flex;
67
+ flex-direction: row;
68
+ justify-content: space-between;
69
+ align-items: center;
70
+ padding: 0 2rem;
71
+ width: 100%;
72
+ text-align: center;
73
+ }
74
+
75
+ .bookNowButton {
76
+ min-width: 160px;
77
+ }
78
+
79
+ .showAndStickyOrMobileOverlapNavbar {
80
+ position: sticky;
81
+ top: 0;
82
+ }
83
+
84
+ .showAndStickyNavbar {
85
+ position: sticky;
86
+ top: 0;
87
+ }
88
+ }
89
+
90
+ /* Mobile Navbar */
91
+ @media (max-width: 1023px) {
92
+ .navbarContainer {
93
+ border-color: var(--accent-orange);
94
+ border-width: 2px;
95
+ border-style: solid;
96
+ border-radius: 40px;
97
+ margin: 0.5rem;
98
+ overflow: hidden;
99
+ padding: 1rem;
100
+ background-color: var(--light-orange-background);
101
+ }
102
+
103
+ .navigationBarIcon {
104
+ width: 32px;
105
+ height: 32px;
106
+ }
107
+
108
+ .desktopNavbarContent {
109
+ display: none;
110
+ }
111
+
112
+ .navbarLinks {
113
+ display: flex;
114
+ flex-direction: column;
115
+ align-items: center;
116
+ height: 100%;
117
+ justify-content: space-between;
118
+ }
119
+
120
+ .showAndStickyOrMobileOverlapNavbar {
121
+ position: fixed;
122
+ top: 0.5rem;
123
+ }
124
+
125
+ .showAndStickyNavbar {
126
+ position: sticky;
127
+ top: 0.5rem;
128
+ }
129
+ }
130
+
131
+ .navbarLinks a {
132
+ text-decoration: none;
133
+ color: var(--accent-orange);
134
+ font-size: 1.5rem;
135
+ font-weight: 800;
136
+ font-family: 'Poppins', sans-serif;
137
+ text-transform: lowercase;
138
+ padding: 0 var(--spacing-small);
139
+ }
140
+ .nonCurrentLink:hover {
141
+ text-decoration: underline;
142
+ }
143
+
144
+ .mobileNavbarLinks {
145
+ height: 0;
146
+ overflow: hidden;
147
+ transition: height 0.5s ease;
148
+ }
149
+
150
+ .mobileNavbarLinks.open {
151
+ height: 300px;
152
+ }
@@ -0,0 +1,125 @@
1
+ 'use client';
2
+
3
+ import styles from './navbar.module.css';
4
+ import { usePathname } from 'next/navigation';
5
+ import { useEffect, useState } from 'react';
6
+ import Link from 'next/link';
7
+ import LanguageAwareLink from './language-aware-link';
8
+ import Button, { MenuButton, PresetButtonActions } from '@/components/button';
9
+ import Image from 'next/image';
10
+ import defaultStrings from '@/strings';
11
+ import { getProducts } from '@/constants/products';
12
+
13
+ export default function Navbar(
14
+ {
15
+ stickyMode,
16
+ strings = defaultStrings,
17
+ }: {
18
+ stickyMode: string | "hideAndSlide" | "showAndStickyOrMobileOverlap" | "showAndSticky",
19
+ strings?: any,
20
+ }
21
+ ) {
22
+ const pathname = usePathname() || '/';
23
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
24
+ const [isVisible, setIsVisible] = useState(false);
25
+
26
+ if (stickyMode == "hideAndSlide") {
27
+ useEffect(() => {
28
+ const handleScroll = () => {
29
+ const scrollPosition = window.scrollY;
30
+
31
+ // Show navbar when scrolled past yHeightForSlide
32
+ setIsVisible(scrollPosition > 50);
33
+ };
34
+
35
+ window.addEventListener('scroll', handleScroll);
36
+ return () => window.removeEventListener('scroll', handleScroll);
37
+ }, []);
38
+ }
39
+
40
+ return (
41
+ <nav className={`${styles.navbarContainer} ${stickyMode == "hideAndSlide" ? styles.hideAndSlideNavbar : ''} ${isVisible && stickyMode == "hideAndSlide" ? styles.showAndSlideNavbar : ''} ${stickyMode == "showAndStickyOrMobileOverlap" ? styles.showAndStickyOrMobileOverlapNavbar : ''} ${stickyMode == "showAndSticky" ? styles.showAndStickyNavbar : ''}`}>
42
+ <div className={styles.navbarContent}>
43
+ <div className={styles.navbarRow}>
44
+ <LanguageAwareLink href="/">
45
+ <Image
46
+ src="logo192.png"
47
+ alt="Via Via Moraine Lake Shuttle Logo"
48
+ className={styles.navigationBarIcon}
49
+ width={60}
50
+ height={60}
51
+ />
52
+ </LanguageAwareLink>
53
+ <div className={styles.desktopNavbarContent}>
54
+ <NavbarLinks setIsMenuOpen={setIsMenuOpen} currentPath={pathname} strings={strings} />
55
+ <Button isLarge={true} className={styles.bookNowButton} action={PresetButtonActions.BOOK_ALL}>{strings.common.bookNow}</Button>
56
+ </div>
57
+ <div className={styles.mobileNavbarContent}>
58
+ <MenuButton onClick={() => setIsMenuOpen(!isMenuOpen)} isOpen={isMenuOpen} strings={strings} />
59
+ </div>
60
+ </div>
61
+ <div className={`${styles.mobileNavbarLinks} ${isMenuOpen ? styles.open : ''}`}>
62
+ <NavbarLinks setIsMenuOpen={setIsMenuOpen} currentPath={pathname} strings={strings} />
63
+ </div>
64
+ </div>
65
+ </nav>
66
+ );
67
+ }
68
+
69
+ function NavbarLinks({ setIsMenuOpen, currentPath, strings }: {
70
+ setIsMenuOpen: (open: boolean) => void,
71
+ currentPath: string,
72
+ strings: any
73
+ }) {
74
+
75
+ const products = getProducts(strings);
76
+ const navbarLinks = [
77
+ {
78
+ name: strings.navigationLinks.home,
79
+ path: '/',
80
+ },
81
+ {
82
+ name: strings.navigationLinks.sunriseTours,
83
+ path: products.MORAINE_LAKE_SUNRISE.path,
84
+ },
85
+ {
86
+ name: strings.navigationLinks.moraineLake,
87
+ path: products.MORAINE_LAKE_ADVENTURE.path,
88
+ },
89
+ {
90
+ name: strings.navigationLinks.lakeLouise,
91
+ path: products.LAKE_LOUISE_ADVENTURE.path,
92
+ },
93
+ {
94
+ name: strings.navigationLinks.emeraldLake,
95
+ path: products.EMERALD_LAKE_ESCAPE.path,
96
+ },
97
+ {
98
+ name: strings.navigationLinks.privateTours,
99
+ path: products.PRIVATE_TOUR.path,
100
+ },
101
+ {
102
+ name: strings.navigationLinks.photoSessions,
103
+ path: '/photo-sessions',
104
+ },
105
+ {
106
+ name: strings.navigationLinks.faq,
107
+ path: '/faq',
108
+ },
109
+ ];
110
+
111
+ return (
112
+ <div className={styles.navbarLinks}>
113
+ {navbarLinks.map((link) => (
114
+ <LanguageAwareLink
115
+ onClick={() => setIsMenuOpen(false)}
116
+ className={link.path == '/' && currentPath == '/' || link.path == '/' && currentPath == '/es' || link.path === currentPath.replace(/\/$/, '') ? styles.currentLink : styles.nonCurrentLink}
117
+ key={link.name}
118
+ href={link.path}
119
+ >
120
+ {link.name}
121
+ </LanguageAwareLink>
122
+ ))}
123
+ </div>
124
+ );
125
+ }
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+
3
+ import { ParallaxProvider } from 'react-scroll-parallax';
4
+
5
+ export default function ParallaxWrapper({ children }: { children: React.ReactNode }) {
6
+ return (
7
+ <ParallaxProvider>
8
+ {children}
9
+ </ParallaxProvider>
10
+ );
11
+ }
@@ -0,0 +1,130 @@
1
+ .root {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: flex-start;
6
+ padding: 1.5rem 1rem 3rem;
7
+ background-color: var(--light-orange-background);
8
+ }
9
+
10
+ .card {
11
+ width: 100%;
12
+ max-width: 1120px;
13
+ background: var(--accent-white);
14
+ border-radius: 1rem;
15
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
16
+ display: flex;
17
+ flex-direction: column;
18
+ }
19
+
20
+ .header {
21
+ display: grid;
22
+ grid-template-columns: auto 1fr auto;
23
+ align-items: center;
24
+ gap: 0.75rem;
25
+ padding: 1rem 0.75rem;
26
+ border-bottom: 1px solid #e5e7eb;
27
+ }
28
+
29
+ .headerLeft {
30
+ display: flex;
31
+ justify-content: flex-start;
32
+ }
33
+
34
+ .headerSpacer {
35
+ display: block;
36
+ width: 2.5rem;
37
+ height: 2.5rem;
38
+ }
39
+
40
+ .backButton {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 0.25rem;
44
+ padding: 0.5rem;
45
+ font-size: 0.875rem;
46
+ font-family: 'Figtree', sans-serif;
47
+ color: var(--accent-turquoise);
48
+ background: none;
49
+ border: none;
50
+ cursor: pointer;
51
+ font-weight: 500;
52
+ }
53
+
54
+ .backButton:hover {
55
+ text-decoration: underline;
56
+ }
57
+
58
+ .title {
59
+ font-size: 1.375rem;
60
+ font-weight: 700;
61
+ margin: 0;
62
+ justify-self: center;
63
+ text-align: center;
64
+ }
65
+
66
+ /* Book flow header (partner portal + provider dashboard embedded): matches marketing booking chrome */
67
+ .titleBookFlow {
68
+ font-size: 1.375rem;
69
+ font-weight: 700;
70
+ margin: 0;
71
+ justify-self: center;
72
+ text-align: center;
73
+ font-family: 'Poppins', sans-serif;
74
+ color: var(--accent-orange, #ff4d00);
75
+ }
76
+
77
+ .titleBookPrefix,
78
+ .titleBookProduct {
79
+ text-transform: lowercase;
80
+ }
81
+
82
+ .titleBookSeparator {
83
+ font-weight: 700;
84
+ }
85
+
86
+ .titleProductGrid {
87
+ font-size: 1.5rem;
88
+ }
89
+
90
+ .headerRight {
91
+ display: flex;
92
+ justify-content: flex-end;
93
+ }
94
+
95
+ .logoRow {
96
+ display: flex;
97
+ justify-content: center;
98
+ align-items: center;
99
+ gap: 1.25rem;
100
+ padding: 0.75rem 1.5rem 1rem;
101
+ }
102
+
103
+ .logoDivider {
104
+ font-size: 0.875rem;
105
+ font-weight: 600;
106
+ letter-spacing: 0.08em;
107
+ text-transform: uppercase;
108
+ color: #9ca3af;
109
+ }
110
+
111
+ .partnerLogo,
112
+ .viaViaLogo {
113
+ max-height: 100px;
114
+ width: auto;
115
+ }
116
+
117
+ .content {
118
+ padding: 1.25rem;
119
+ }
120
+
121
+ .contentEmbedded {
122
+ padding: 0;
123
+ }
124
+
125
+ @media (min-width: 1024px) {
126
+ .root {
127
+ padding-top: 2rem;
128
+ }
129
+ }
130
+