diff --git a/components/chatbot/ChatBot.tsx b/components/chatbot/ChatBot.tsx index 209d8271..86da1e0e 100644 --- a/components/chatbot/ChatBot.tsx +++ b/components/chatbot/ChatBot.tsx @@ -119,10 +119,10 @@ export default function Chatbot() { onClick={() => setIsOpen((prevState) => !prevState)} > {isOpen && } - {!isOpen && aiNewModelChatbotFlag?._ldMeta.enabled !== false && ( + {!isOpen && aiNewModelChatbotFlag?._ldMeta?.enabled !== false && ( )} - {!isOpen && aiNewModelChatbotFlag?._ldMeta.enabled === false && ( + {!isOpen && aiNewModelChatbotFlag?._ldMeta?.enabled === false && ( )} Open Chatbot @@ -259,7 +259,7 @@ export default function Chatbot() { className="flex w-full items-center space-x-2" onSubmit={(e) => e.preventDefault()} > - {aiNewModelChatbotFlag?._ldMeta.enabled === false ? ( + {aiNewModelChatbotFlag?._ldMeta?.enabled === false ? (

We are offline for today. Please return next time!

diff --git a/components/ui/QRCodeImage.tsx b/components/ui/QRCodeImage.tsx index 79bdd22c..9c625ca6 100644 --- a/components/ui/QRCodeImage.tsx +++ b/components/ui/QRCodeImage.tsx @@ -5,7 +5,7 @@ import { Dialog, DialogContent, DialogTrigger } from "./dialog"; //Change QRURL to the URL where you'll be hosting this app -const QRCodeImage = () => { +const QRCodeImage = ({ textColor="text-black" }: { textColor: string }) => { const url = new URL(window.location.href); const QRURL = url.href; const qrCodeRef = useRef(); @@ -75,17 +75,15 @@ const QRCodeImage = () => { <> - - + +

Scan me!

-
+
{ risk, and ship your travel dreams faster than ever before */} - {destinationPickerNewAIModelLDFlag?._ldMeta.enabled !== false && ( + {destinationPickerNewAIModelLDFlag?._ldMeta?.enabled !== false && ( )} - {aiTravelPromptText?._ldMeta.enabled !== false && ( + {aiTravelPromptText?._ldMeta?.enabled !== false && ( AI Travel Insights diff --git a/pages/bank.tsx b/pages/bank.tsx index 113d8725..180ff999 100644 --- a/pages/bank.tsx +++ b/pages/bank.tsx @@ -25,12 +25,12 @@ export default function Bank() { <> Bank Home Page Background Bank Home Page Background diff --git a/pages/index.tsx b/pages/index.tsx index 4116acb0..02066368 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -7,6 +7,7 @@ import NavBar from "@/components/ui/navbar"; import Script from "next/script"; import HomePageImage from "@/public/homepage/homepage-title.svg"; import NavWrapper from "@/components/ui/NavComponent/NavWrapper"; +import NavbarRightSideWrapper from "@/components/ui/NavComponent/NavbarRightSideWrapper"; import CSNavWrapper from "@/components/ui/NavComponent/CSNavWrapper"; import NavLogo from "@/components/ui/NavComponent/NavLogo"; import { CSNav } from "@/components/ui/csnav"; @@ -14,11 +15,11 @@ import { CSNav } from "@/components/ui/csnav"; import { HOMEPAGE_CARDS } from "@/utils/constants"; import { useState, useEffect } from "react"; import { CSNAV_ITEMS } from "@/utils/constants"; -import arrow from '@/public/sidenav/arrow.svg' +import arrow from "@/public/sidenav/arrow.svg"; import { CSCard } from "@/components/ui/ldcscard"; +import QRCodeImage from "@/components/ui/QRCodeImage"; - - +import Head from "next/head"; const inter = Inter({ subsets: ["latin"] }); @@ -95,18 +96,35 @@ export default function Home() { gtag('config', 'G-2ZW2MJ75NL');`} + + + +
- - <> - + + <> + - + - - - + + + + {/* right side navbar template */} + + + +
@@ -146,10 +164,15 @@ export default function Home() { className="transition-opacity duration-300 hover:opacity-0 rounded-3xl" />
- {card.name} + + {card.name} +
-
goToVertical(card.link)} className="absolute cursor-pointer inset-0 flex flex-col items-center justify-center opacity-0 transition-opacity duration-300 hover:opacity-100 z-30 group-hover:opacity-100"> +
goToVertical(card.link)} + className="absolute cursor-pointer inset-0 flex flex-col items-center justify-center opacity-0 transition-opacity duration-300 hover:opacity-100 z-30 group-hover:opacity-100" + > {`${card.name}
- {card.name} - {card.description} - + + {card.name} + + + {card.description} + + + → +
))} ) : ( -
- {Object.entries(CSNAV_ITEMS).map(([key, item]) => { if (item.type === "usecase") { return ( @@ -182,7 +209,10 @@ export default function Home() { transition={{ delay: 0.05, duration: 0.2 }} className="cursor-pointer" > -
router.push(item.link)} className={`bg-gradient-to-r from-${key}-start to-${key}-end rounded-3xl`}> +
router.push(item.link)} + className={`bg-gradient-to-r from-${key}-start to-${key}-end rounded-3xl`} + >
- )}
-
+ ); -} \ No newline at end of file +}