@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,147 @@
1
+ .contactSection {
2
+ padding-bottom: 1rem; /* Reduced from 6rem */
3
+ }
4
+
5
+ .contactTiles {
6
+ display: flex;
7
+ flex-direction: column;
8
+ flex: 1;
9
+ gap: 1rem;
10
+ }
11
+
12
+ .imageContainer {
13
+ width: 100%;
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 1rem;
17
+ height: 320px;
18
+ }
19
+
20
+ .contactImageCaption {
21
+ font-size: 0.9rem;
22
+ color: var(--primary-text);
23
+ text-align: center;
24
+ }
25
+
26
+ .imageContainer img {
27
+ border-radius: var(--border-radius-small);
28
+ object-fit: cover;
29
+ }
30
+
31
+ @media (min-width: 1024px) {
32
+ .container {
33
+ padding: 4rem;
34
+ }
35
+
36
+ .title {
37
+ font-size: 4rem;
38
+ }
39
+
40
+ .contactTileTitle {
41
+ font-size: 2.5rem;
42
+ }
43
+
44
+ .contactTiles {
45
+ flex-direction: row;
46
+ align-items: flex-start;
47
+ gap: 4rem;
48
+ }
49
+
50
+ .imageContainer {
51
+ height: 500px;
52
+ flex: 1;
53
+ max-width: 50%;
54
+ }
55
+
56
+ .contactInfo {
57
+ flex: 1;
58
+ display: flex;
59
+ flex-direction: column;
60
+ justify-content: flex-start;
61
+ }
62
+
63
+ .contactLink {
64
+ font-size: 1.2rem;
65
+ }
66
+
67
+ .contactTileDescription {
68
+ font-size: 1.2rem;
69
+ }
70
+ }
71
+
72
+ @media (max-width: 1023px) {
73
+ .container {
74
+ padding: 1rem;
75
+ }
76
+
77
+ .title {
78
+ font-size: 4rem;
79
+ }
80
+
81
+ .contactTileTitle {
82
+ font-size: 1.5rem;
83
+ }
84
+
85
+ .contactLink {
86
+ font-size: 1.1rem;
87
+ }
88
+
89
+ .contactTileDescription {
90
+ font-size: 1.1rem;
91
+ }
92
+ }
93
+
94
+ .contactTile {
95
+ border-left: 4px solid var(--accent-orange);
96
+ padding-left: 1rem;
97
+ margin-bottom: 2rem;
98
+ max-width: 100%; /* Ensure it doesn't overflow container */
99
+ }
100
+
101
+ .contactLink {
102
+ text-decoration: underline;
103
+ color: var(--accent-orange);
104
+ font-family: monospace;
105
+ word-break: break-all; /* Break long email addresses */
106
+ display: inline-block; /* Helps with overflow containment */
107
+ }
108
+
109
+ .contactTileDescription {
110
+ color: inherit;
111
+ text-decoration: none;
112
+ font-family: monospace; /* For that typewriter-like feel */
113
+ }
114
+
115
+ .contactSignOff {
116
+ color: var(--accent-orange);
117
+ text-decoration: none;
118
+ font-size: 1.2rem;
119
+ font-weight: bold;
120
+ font-family: monospace; /* For that typewriter-like feel */
121
+ }
122
+
123
+ .contactTile h3 {
124
+ margin: 0 0 0.5rem 0;
125
+ font-size: 1.5rem;
126
+ }
127
+
128
+ .contactTile address {
129
+ font-style: normal;
130
+ }
131
+
132
+ .title {
133
+ font-weight: normal;
134
+ text-align: left;
135
+ margin-bottom: 1rem; /* Single margin rule here */
136
+ }
137
+
138
+ .contactTileTitle {
139
+ text-align: left;
140
+ }
141
+
142
+ .contactInfo {
143
+ display: flex;
144
+ flex-direction: column;
145
+ margin: auto 0; /* This will center it vertically */
146
+ flex: 1;
147
+ }
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+
3
+ import styles from './contact-us.module.css';
4
+ import defaultStrings from '@/strings';
5
+ import { CONTACT_EMAIL, CONTACT_PHONE } from '@/constants/contact-info';
6
+ import ViaViaImage from './image';
7
+ import { IMAGES } from '@/constants/images';
8
+
9
+ export default function ContactUs({ strings = defaultStrings }: { strings?: any }) {
10
+ return (
11
+ <section className={styles.contactSection}>
12
+ <div className={styles.container}>
13
+ <h3 className={styles.title}>{strings.contact.title}</h3>
14
+ <div className={styles.contactTiles}>
15
+ <div className={styles.contactInfo}>
16
+ <div className={styles.contactTile}>
17
+ <h4 className={styles.contactTileTitle}>{strings.contact.writeUs}</h4>
18
+ <a href={`mailto:${CONTACT_EMAIL}`} className={styles.contactLink}>
19
+ {CONTACT_EMAIL}
20
+ </a>
21
+ </div>
22
+
23
+ <div className={styles.contactTile}>
24
+ <h4 className={styles.contactTileTitle}>{strings.contact.sayHi}</h4>
25
+ <a href={`tel:${CONTACT_PHONE}`} className={styles.contactLink}>
26
+ {CONTACT_PHONE}
27
+ </a>
28
+ </div>
29
+
30
+ <div className={styles.contactTile}>
31
+ <h4 className={styles.contactTileTitle}>{strings.contact.weMightSpeakYourLanguage}</h4>
32
+ <p className={styles.contactTileDescription}>{strings.contact.weMightSpeakYourLanguageDescription}</p>
33
+ </div>
34
+ </div>
35
+
36
+ <div className={styles.imageContainer}>
37
+ <ViaViaImage
38
+ className={styles.contactImage}
39
+ imageId={IMAGES.JENNA_AND_NATHAN_VIA_VIA.id}
40
+ alt={IMAGES.JENNA_AND_NATHAN_VIA_VIA.alt}
41
+ context="GALLERY"
42
+ />
43
+ <p className={styles.contactImageCaption}>{strings.contact.contactImageCaption}</p>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </section>
48
+ );
49
+ }
@@ -0,0 +1,151 @@
1
+ /* Email signup form styles */
2
+ .email-signup {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ gap: 0.2rem;
7
+ width: 100%;
8
+ max-width: 500px;
9
+ margin: 1rem auto;
10
+ }
11
+
12
+ .email-signup h3 {
13
+ color: var(--accent-white);
14
+ font-family: 'Poppins';
15
+ font-weight: 800;
16
+ font-size: 1.5rem;
17
+ text-align: center;
18
+ margin: 0;
19
+ text-transform: lowercase;
20
+ }
21
+
22
+ .email-signup-form {
23
+ display: flex;
24
+ gap: 0.5rem;
25
+ width: 100%;
26
+ max-width: 450px;
27
+ }
28
+
29
+ .email-signup-input {
30
+ flex: 1;
31
+ padding: 0.5rem;
32
+ border: 2px solid var(--accent-white);
33
+ border-radius: 8px;
34
+ background-color: transparent;
35
+ color: var(--accent-white);
36
+ font-family: 'Figtree';
37
+ font-size: 0.92rem;
38
+ outline: none;
39
+ transition: border-color 0.3s ease;
40
+ }
41
+
42
+ .email-signup-input::placeholder {
43
+ color: var(--accent-white-70);
44
+ }
45
+
46
+ .email-signup-input:focus {
47
+ border-color: var(--accent-white);
48
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
49
+ }
50
+
51
+ .email-signup-submit {
52
+ padding: 0.75rem 1.5rem;
53
+ background-color: var(--accent-white);
54
+ color: var(--accent-orange);
55
+ border: 2px solid var(--accent-white);
56
+ border-radius: 8px;
57
+ font-family: 'Poppins';
58
+ font-size: 1rem;
59
+ font-weight: 800;
60
+ text-transform: lowercase;
61
+ cursor: pointer;
62
+ transition: all 0.3s ease;
63
+ white-space: nowrap;
64
+ }
65
+
66
+ .email-signup-submit:hover {
67
+ background-color: transparent;
68
+ color: var(--accent-white);
69
+ }
70
+
71
+ .email-signup-submit:disabled {
72
+ opacity: 0.6;
73
+ cursor: not-allowed;
74
+ }
75
+
76
+ .email-signup-success {
77
+ color: var(--accent-white);
78
+ font-family: 'Figtree';
79
+ font-size: 1rem;
80
+ text-align: center;
81
+ margin-top: 0.5rem;
82
+ }
83
+
84
+ .email-signup-error {
85
+ color: #ffcccb;
86
+ font-family: 'Figtree';
87
+ font-size: 1rem;
88
+ text-align: center;
89
+ margin-top: 0.5rem;
90
+ }
91
+
92
+ /* Modal-specific styles for white background */
93
+ .email-signup-modal .email-signup h3 {
94
+ color: var(--accent-orange) !important;
95
+ }
96
+
97
+ .email-signup-modal .email-signup-input {
98
+ border: 2px solid var(--accent-orange) !important;
99
+ background-color: #fff !important;
100
+ color: var(--primary-text) !important;
101
+ }
102
+
103
+ .email-signup-modal .email-signup-input::placeholder {
104
+ color: var(--grey-text) !important;
105
+ }
106
+
107
+ .email-signup-modal .email-signup-input:focus {
108
+ border-color: var(--accent-orange) !important;
109
+ box-shadow: 0 0 0 2px var(--accent-orange-10) !important;
110
+ }
111
+
112
+ .email-signup-modal .email-signup-submit {
113
+ background-color: var(--accent-orange) !important;
114
+ color: var(--accent-white) !important;
115
+ border: 2px solid var(--accent-orange) !important;
116
+ }
117
+
118
+ .email-signup-modal .email-signup-submit:hover {
119
+ background-color: var(--accent-orange-70) !important;
120
+ color: var(--accent-white) !important;
121
+ }
122
+
123
+ .email-signup-modal .email-signup-success {
124
+ color: #28a745 !important;
125
+ }
126
+
127
+ .email-signup-modal .email-signup-error {
128
+ color: #dc3545 !important;
129
+ }
130
+
131
+ /* Mobile styles for email signup */
132
+ @media (max-width: 768px) {
133
+ .email-signup {
134
+ max-width: 320px;
135
+ }
136
+
137
+ .email-signup h3 {
138
+ font-size: 1.25rem;
139
+ }
140
+
141
+ .email-signup-form {
142
+ flex-direction: column;
143
+ gap: 0.75rem;
144
+ }
145
+
146
+ .email-signup-input,
147
+ .email-signup-submit {
148
+ padding: 0.8rem;
149
+ font-size: 0.92rem;
150
+ }
151
+ }
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+
3
+ import { useEmailSubscription } from '@/hooks/useEmailSubscription';
4
+ import './email-signup.css';
5
+
6
+ interface EmailSignupProps {
7
+ strings: any;
8
+ initialEmail?: string;
9
+ autoSubmit?: boolean;
10
+ source?: string;
11
+ }
12
+
13
+ export default function EmailSignup({ strings, initialEmail = '', autoSubmit = false, source }: EmailSignupProps) {
14
+ const { email, setEmail, isSubmitting, submitStatus, subscribeEmail } = useEmailSubscription({
15
+ initialEmail,
16
+ autoSubmit,
17
+ source
18
+ });
19
+
20
+ const handleEmailSubmit = async (e: React.FormEvent) => {
21
+ e.preventDefault();
22
+ if (!email || isSubmitting) return;
23
+ await subscribeEmail(email);
24
+ };
25
+
26
+ return (
27
+ <div className="email-signup">
28
+ <h3>{strings.footer.emailSignup.title}</h3>
29
+ <form className="email-signup-form" onSubmit={handleEmailSubmit}>
30
+ <input
31
+ type="email"
32
+ value={email}
33
+ onChange={(e) => setEmail(e.target.value)}
34
+ placeholder={strings.footer.emailSignup.placeholder}
35
+ className="email-signup-input"
36
+ required
37
+ />
38
+ <button
39
+ type="submit"
40
+ disabled={isSubmitting || !email}
41
+ className="email-signup-submit"
42
+ >
43
+ {isSubmitting ? '...' : strings.footer.emailSignup.submit}
44
+ </button>
45
+ </form>
46
+ {submitStatus === 'success' && (
47
+ <div className="email-signup-success">
48
+ {strings.footer.emailSignup.success}
49
+ </div>
50
+ )}
51
+ {submitStatus === 'error' && (
52
+ <div className="email-signup-error">
53
+ {strings.footer.emailSignup.error}
54
+ </div>
55
+ )}
56
+ {submitStatus === 'duplicate' && (
57
+ <div className="email-signup-success">
58
+ {strings.footer.emailSignup.duplicate}
59
+ </div>
60
+ )}
61
+ </div>
62
+ );
63
+ }
@@ -0,0 +1,47 @@
1
+ .faqWrapper {
2
+ padding-top: var(--spacing-large);
3
+ padding-bottom: var(--spacing-large);
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ margin: 0 auto;
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ .faqWrapperRow {
13
+ display: flex;
14
+ padding-bottom: var(--spacing-medium);
15
+ box-sizing: border-box;
16
+ width: 100%;
17
+ }
18
+
19
+ @media (min-width: 1024px) {
20
+ .faqWrapper {
21
+ width: 70%;
22
+ }
23
+
24
+ .faqWrapperRow {
25
+ flex-direction: row;
26
+ }
27
+
28
+ .faqWrapperTitle {
29
+ width: 30%;
30
+ }
31
+
32
+ .faqSection {
33
+ width: 70%;
34
+ box-sizing: border-box;
35
+ }
36
+ }
37
+
38
+ @media (max-width: 1023px) {
39
+ .faqWrapper {
40
+ width: 100%;
41
+ }
42
+
43
+ .faqWrapperRow {
44
+ flex-direction: column;
45
+ }
46
+ }
47
+
@@ -0,0 +1,15 @@
1
+ import styles from "./faq-wrapper.module.css";
2
+ import FAQSection from "@/app/faq/faq-section";
3
+ import { faqSection } from "@/constants/faq";
4
+
5
+ export default function FAQWrapper({faqSection, strings}: {faqSection: faqSection, strings: any}) {
6
+ return (
7
+ <div className={styles.faqWrapper}>
8
+ <div className={styles.faqWrapperRow}>
9
+ <h2 className={styles.faqWrapperTitle}>{strings.productThemePages.faqSection.title}</h2>
10
+ <FAQSection className={styles.faqSection} faqSection={faqSection} selectionMode="single" />
11
+ </div>
12
+ <a href="/faq" className={styles.faqWrapperLink}>{strings.common.seeMore} →</a>
13
+ </div>
14
+ )
15
+ }
@@ -0,0 +1,187 @@
1
+ .footer-logo-container {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: fit-content;
6
+ padding: 0 20px;
7
+ }
8
+
9
+ .footer-via-via-name {
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 0.5rem;
13
+ }
14
+
15
+ .footer-logo-letter {
16
+ width: min(15vw, 60px);
17
+ height: min(15vw, 60px);
18
+ }
19
+
20
+ /* Target all SVG paths consistently */
21
+ .footer-logo-letter path {
22
+ fill: var(--accent-white) !important;
23
+ }
24
+
25
+ /* For hover states - match opacity across all letters */
26
+ .footer-container a:hover .footer-logo-letter path {
27
+ fill: var(--accent-white-70) !important; /* Back to using the CSS variable */
28
+ }
29
+
30
+ /* Adjust sizes for mobile */
31
+ @media (max-width: 768px) {
32
+ .footer-logo-letter {
33
+ width: min(12vw, 50px);
34
+ height: min(12vw, 50px);
35
+ }
36
+ }
37
+
38
+ /* Further adjust for very small screens */
39
+ @media (max-width: 360px) {
40
+ .footer-logo-letter {
41
+ width: min(10vw, 40px);
42
+ height: min(10vw, 40px);
43
+ }
44
+ }
45
+
46
+ .footer-container {
47
+ background-color: var(--accent-orange);
48
+ display: flex;
49
+ flex-direction: column;
50
+ justify-content: center;
51
+ align-items: center;
52
+ padding: 1rem;
53
+ }
54
+
55
+ .footer-container p {
56
+ color: var(--accent-white);
57
+ }
58
+
59
+ .footer-container a {
60
+ color: var(--accent-white);
61
+ }
62
+
63
+ .footer-container .footer-icon {
64
+ width: 36px;
65
+ height: 36px;
66
+ color: var(--accent-white);
67
+ fill: var(--accent-white);
68
+ }
69
+
70
+ .footer-container .footer-icon:hover {
71
+ color: var(--accent-white-70);
72
+ fill: var(--accent-white-70);
73
+ }
74
+
75
+ /* Target SVG paths to override inline fill attributes */
76
+ .footer-container .footer-icon path {
77
+ fill: var(--accent-white) !important;
78
+ }
79
+
80
+ .footer-container .footer-icon:hover path {
81
+ fill: var(--accent-white-70) !important;
82
+ }
83
+
84
+ /* Scale down Google G icon to match other social icons */
85
+ .footer-container a[href*="maps.app.goo.gl"] .footer-icon {
86
+ transform: scale(0.92);
87
+ }
88
+
89
+ /* Desktop hover */
90
+ @media (min-width: 1024px) {
91
+ .footer-container a:hover {
92
+ color: var(--accent-white-70);
93
+ }
94
+ }
95
+
96
+ /* Mobile styles */
97
+ @media screen and (max-width: 768px) {
98
+ .footer-container .button {
99
+ width: 70%;
100
+ }
101
+ }
102
+
103
+ .footer-links-container {
104
+ display: flex;
105
+ flex-wrap: wrap;
106
+ justify-content: center;
107
+ gap: 1rem;
108
+ width: 70%;
109
+ }
110
+
111
+ /* Mobile: strict 2 columns */
112
+ @media (max-width: 767px) {
113
+ .footer-links-container {
114
+ display: grid;
115
+ grid-template-columns: repeat(2, 1fr);
116
+ gap: 0.75rem;
117
+ width: 90%;
118
+ }
119
+
120
+ .footer-links-container a {
121
+ font-size: 0.8rem;
122
+ min-height: 2.5rem;
123
+ display: flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ }
127
+
128
+ /* Center the last item if it's alone */
129
+ .footer-links-container > a:last-child:nth-child(2n - 1) {
130
+ grid-column: 1 / -1;
131
+ }
132
+ }
133
+
134
+ /* Desktop: 5 columns */
135
+ @media (min-width: 768px) {
136
+ .footer-links-container {
137
+ display: flex;
138
+ gap: 2rem;
139
+ }
140
+
141
+ .footer-links-container a {
142
+ flex: 0 0 calc(20% - 1.6rem);
143
+ min-width: fit-content;
144
+ max-width: calc(20% - 1.6rem);
145
+ }
146
+ }
147
+
148
+ .footer-links-container a {
149
+ text-align: center;
150
+ white-space: normal;
151
+ text-decoration: none;
152
+ text-transform: uppercase;
153
+ font-family: 'Poppins', sans-serif;
154
+ color: var(--accent-white);
155
+ line-height: 1.2;
156
+ padding: 0.25rem;
157
+ }
158
+
159
+ .footer-company-text {
160
+ font-size: 0.75rem;
161
+ text-transform: uppercase;
162
+ text-align: center;
163
+ }
164
+
165
+ /* Mobile styles for company text */
166
+ @media (max-width: 768px) {
167
+ .footer-company-text {
168
+ font-size: 0.6rem;
169
+ }
170
+ }
171
+
172
+ .footer-moraine-magic-icon {
173
+ width: 60%;
174
+ max-width: 400px;
175
+ height: auto;
176
+ margin: 0 auto;
177
+ display: block;
178
+ }
179
+
180
+ /* Mobile styles for moraine magic icon */
181
+ @media (max-width: 768px) {
182
+ .footer-moraine-magic-icon {
183
+ width: 80%;
184
+ max-width: 500px;
185
+ }
186
+ }
187
+