diff --git a/app/arak/page.tsx b/app/arak/page.tsx index e632a5e..bbef88d 100644 --- a/app/arak/page.tsx +++ b/app/arak/page.tsx @@ -102,6 +102,17 @@ export default function PricingPage() { ? ["1-3 fő (Mercedes E-class): 75.000 Ft", "4-6 fő (Mercedes Vito / Ford Tourneo Custom): 95.000 Ft"] : ["1-3 pax (Mercedes E-class): 75.000 Ft", "4-6 pax (Mercedes Vito / Ford Tourneo Custom): 95.000 Ft"] + + const expressInfoText = (price: string) => + language === "hu" + ? `Amennyiben nincs más utas a viteldíj ${price}. (22:00-05:00 utasfelvétel esetén Private transzfer keretében tudjuk vállalni, ha nincs más)` + : `If there are no other passengers, the fare is ${price}. (For pickups between 22:00-05:00 we can only provide Private transfer if there are no other passengers.)` + + const expressInfoBecs = expressInfoText("23.500 HUF") + const expressInfoBudapest = expressInfoText("28.000 HUF") + const expressInfoPozsony = expressInfoText("23.500 HUF") + const expressInfoBudapestBecs = expressInfoText("50.000 HUF") + const routeNav = [ { id: "gyor-becs", @@ -202,44 +213,48 @@ export default function PricingPage() { {/* Tables */}
+ route={language === "hu" ? "GYŐR – BÉCS REPTÉR (SCHWECHAT) vagy BÉCS REPTÉR - GYŐR" : "GYŐR – VIENNA AIRPORT (SCHWECHAT) or VIENNA AIRPORT - GYŐR"} + rows={getFaresHub(becsRows)} + specials={specials} + vipInfo={vipInfo} + effectiveFrom={`${t.pricing.table.effective}: 2026.01.15`} + expressInfo={expressInfoBecs} + />
+ route={language === "hu" ? "GYŐR – BUDAPEST REPTÉR vagy BUDAPEST REPTÉR - GYŐR" : "GYŐR – BUDAPEST AIRPORT or BUDAPEST AIRPORT - GYŐR"} + rows={getFaresHub(budapestRows)} + specials={specials} + vipInfo={vipInfo} + effectiveFrom={`${t.pricing.table.effective}: 2026.01.15`} + expressInfo={expressInfoBudapest} + />
+ route={language === "hu" ? "GYŐR – POZSONY REPTÉR vagy POZSONY REPTÉR - GYŐR" : "GYŐR – BRATISLAVA AIRPORT or BRATISLAVA AIRPORT - GYŐR"} + rows={getFaresHub(pozsonyRows)} + specials={specialsPozsony} + vipInfo={vipInfo} + effectiveFrom={`${t.pricing.table.effective}: 2026.01.15`} + expressInfo={expressInfoPozsony} + />
+ route={language === "hu" ? "BUDAPEST – BÉCS REPTÉR (SCHWECHAT) vagy BÉCS REPTÉR (SCHWECHAT) - BUDAPEST" : "BUDAPEST – VIENNA AIRPORT (SCHWECHAT) or VIENNA AIRPORT (SCHWECHAT) - BUDAPEST"} + rows={getFaresHub(budapestViennaRows)} + specials={specialsBudapestVienna} + vipInfo={vipInfoBudapestVienna} + effectiveFrom={`${t.pricing.table.effective}: 2026.01.15`} + expressInfo={expressInfoBudapestBecs} + />
{/* Additional Info Cards */}
diff --git a/components/pricing-table.tsx b/components/pricing-table.tsx index 966c83f..ab6ff23 100644 --- a/components/pricing-table.tsx +++ b/components/pricing-table.tsx @@ -23,6 +23,7 @@ interface PricingTableProps { specials?: SpecialPackage[] vipInfo?: string[] effectiveFrom?: string + expressInfo?: string } const PricingTable = ({ @@ -30,7 +31,8 @@ const PricingTable = ({ rows, specials, vipInfo, - effectiveFrom + effectiveFrom, + expressInfo }: PricingTableProps) => { const { t } = useLanguage() @@ -51,12 +53,47 @@ const PricingTable = ({
-
+ {/* Mobile cards */} +
+ {rows.map((row, idx) => ( +
+
+
+ {row.persons} +
+
+
+
{t.pricing.table.express}
+
+ {row.express} + {idx === 0 && expressInfo && ( + + + + {expressInfo} + + + )} +
+
+
+
{t.pricing.table.private}
+
+ {row.private} +
+
+
+
+ ))} +
+ + {/* Desktop table */} +
- - + -
{t.pricing.table.passengers} + {t.pricing.table.passengers}
{t.pricing.table.classic} {t.pricing.table.classicNote} @@ -89,19 +126,26 @@ const PricingTable = ({ idx % 2 === 0 ? "bg-white" : "bg-slate-50/20" )} > -
+
{row.persons}
+
{row.express} - + {idx === 0 && expressInfo && ( + + + + {expressInfo} + + + )}