diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index ed1dd57..5671705 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -293,7 +293,7 @@ export function AppRouter({ - + } /> diff --git a/src/components/FooterBottom.tsx b/src/components/FooterBottom.tsx index f11d8ca..c32da0b 100644 --- a/src/components/FooterBottom.tsx +++ b/src/components/FooterBottom.tsx @@ -17,13 +17,13 @@ export function FooterBottom({ onPrivacyPolicyClick }: FooterBottomProps) {
{/* Copyright */}

- © 2024 CityCards. All rights reserved. + © 2026 CityCards. All rights reserved.

{/* Right Section - Legal Links and Social Icons */}
{/* Legal Links */} -
+ {/*
Cookie Policy -
+
*/} {/* Social Icons - Horizontal Layout */}
diff --git a/src/components/FooterNavigation.tsx b/src/components/FooterNavigation.tsx index f05d37d..a6dad8f 100644 --- a/src/components/FooterNavigation.tsx +++ b/src/components/FooterNavigation.tsx @@ -1,37 +1,21 @@ import { motion } from 'motion/react'; import { footerSections } from '../utils/footerConstants'; +import { Link } from 'react-router-dom'; -interface FooterNavigationProps { - onHomeClick?: () => void; - onMelbourneClick?: () => void; - onPassesClick?: () => void; - onSignInClick?: () => void; - onAttractionsClick?: () => void; - onBlogsClick?: () => void; - onHowItWorksClick?: () => void; - onFAQClick?: () => void; - onPrivacyPolicyClick?: () => void; - onAboutUsClick?: () => void; - onContactUsClick?: () => void; - currentPage?: string; -} +const linkRoutes: Record = { + 'Home': '/', + // 'Cancellation policy': '/cancellation-policy', + 'How It Works': '/how-it-works', + 'FAQ': '/faq', + 'Blog': '/blogs', + 'Contact Us': '/contact-us', + 'Privacy Policy': '/privacy-policy', + // 'Terms of Service': '/terms', +}; -export function FooterNavigation({ - onHomeClick, - onMelbourneClick, - onPassesClick, - onSignInClick, - onAttractionsClick, - onBlogsClick, - onHowItWorksClick, - onFAQClick, - onPrivacyPolicyClick, - onAboutUsClick, - onContactUsClick, - currentPage -}: FooterNavigationProps) { +export function FooterNavigation() { return ( -
+
{Object.entries(footerSections).map(([key, section]) => (

{section.title}

+
    - {section.links.map((link, index) => { - const getClickHandler = () => { - switch (link) { - case 'Home': return onHomeClick; - case 'Melbourne': return onMelbourneClick; - case 'Passes': return onPassesClick; - case 'Sign In': return onSignInClick; - case 'Attractions': return onAttractionsClick; - case 'Blog': return onBlogsClick; - case 'How It Works': return onHowItWorksClick; - case 'FAQ': return onFAQClick; - case 'Privacy Policy': return onPrivacyPolicyClick; - case 'Contact Us': return onContactUsClick; - default: return undefined; - } - }; - - const clickHandler = getClickHandler(); - - return ( -
  • - {clickHandler ? ( - { - e.preventDefault(); - clickHandler(); - }} - className="text-white/80 hover:text-white transition-colors duration-200 text-sm text-left" - whileHover={{ x: 4 }} - transition={{ duration: 0.2 }} - > - {link} - - ) : ( - - {link} - - )} -
  • - ); - })} + {section.links.map((link) => ( +
  • + + + {link} + + +
  • + ))}
))} diff --git a/src/components/MelbourneFAQ.tsx b/src/components/MelbourneFAQ.tsx index b9c4e83..bf7d1f4 100644 --- a/src/components/MelbourneFAQ.tsx +++ b/src/components/MelbourneFAQ.tsx @@ -19,12 +19,12 @@ import { } from "./ui/accordion"; const faqData = [ - { - id: "refund", - question: "Can I get a refund on my Melbourne CityCard?", - answer: "Yes, you can cancel your Melbourne CityCard and receive a full refund if you cancel at least 24 hours in advance of your selected start date. For cancellations within 24 hours, refunds are subject to our cancellation policy. Digital cards can be refunded instantly through your account.", - icon: CreditCard - }, + // { + // id: "refund", + // question: "Can I get a refund on my Melbourne CityCard?", + // answer: "Yes, you can cancel your Melbourne CityCard and receive a full refund if you cancel at least 24 hours in advance of your selected start date. For cancellations within 24 hours, refunds are subject to our cancellation policy. Digital cards can be refunded instantly through your account.", + // icon: CreditCard + // }, { id: "duration", question: "How long is my Melbourne CityCard valid?", diff --git a/src/utils/footerConstants.ts b/src/utils/footerConstants.ts index 86afdeb..ef31a2b 100644 --- a/src/utils/footerConstants.ts +++ b/src/utils/footerConstants.ts @@ -1,16 +1,20 @@ export const footerSections = { explore: { title: 'Explore', - links: ['Home', 'My Adventures', 'Cancellation policy'] + links: ['Home', + 'Cancellation policy' + ] }, learn: { title: 'Learn', - links: ['How It Works', 'Safety Tips', 'FAQ', 'Blog'] - }, - community: { - title: 'Community', - links: ['Testimonials', 'Partner Stories', 'Events & Meetups', 'Newsletter'] + links: ['How It Works', + // 'Safety Tips', + 'FAQ', 'Blog'] }, + // community: { + // title: 'Community', + // links: ['Testimonials', 'Partner Stories', 'Events & Meetups', 'Newsletter'] + // }, support: { title: 'Support', links: ['Contact Us', 'Privacy Policy', 'Terms of Service']