From 0dc11b63cfc620a4ce98fd988a8a60557e1cefb3 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 18 Mar 2026 16:05:17 +0000 Subject: [PATCH] Update src/app/contact/page.tsx --- src/app/contact/page.tsx | 334 +++++++++++++++++++++++++++------------ 1 file changed, 230 insertions(+), 104 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index eaceacd..5de6bc7 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -3,59 +3,82 @@ import Link from "next/link"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered"; +import HeroSplit from "@/components/sections/hero/HeroSplit"; +import ContactSplit from "@/components/sections/contact/ContactSplit"; import FeatureCardTen from "@/components/sections/feature/FeatureCardTen"; import FooterMedia from "@/components/sections/footer/FooterMedia"; -import { Heart, Zap } from "lucide-react"; +import { Phone, MessageCircle, Facebook, MessageSquare, MapPin, Clock } from "lucide-react"; +import { useState } from "react"; export default function ContactPage() { + const [showLiveChat, setShowLiveChat] = useState(false); + const [chatMessages, setChatMessages] = useState>([]); + const [chatInput, setChatInput] = useState(""); + const navItems = [ - { name: "Home", id: "home" }, - { name: "Menu", id: "menu" }, - { name: "About Us", id: "about" }, - { name: "Gallery", id: "gallery" }, - { name: "Reviews", id: "reviews" }, - { name: "Locations", id: "locations" }, + { name: "Home", id: "/" }, + { name: "Order Online", id: "/order-online" }, + { name: "Contact", id: "/contact" }, + { name: "Gallery", id: "/" }, + { name: "Reviews", id: "/" }, + { name: "Locations", id: "/" }, ]; const footerColumns = [ { - title: "Quick Links", - items: [ + title: "Quick Links", items: [ { label: "Home", href: "/" }, - { label: "Menu", href: "/menu" }, - { label: "Gallery", href: "/gallery" }, - { label: "Reviews", href: "/reviews" }, + { label: "Order Online", href: "/order-online" }, + { label: "Gallery", href: "/" }, + { label: "Reviews", href: "/" }, ], }, { - title: "Order & Contact", - items: [ - { label: "Order Online", href: "/order" }, + title: "Order & Contact", items: [ + { label: "Order Online", href: "/order-online" }, { label: "Call Us", href: "tel:2397850423" }, - { label: "Locations & Hours", href: "/locations" }, + { label: "Locations & Hours", href: "/" }, { label: "Contact", href: "/contact" }, ], }, { - title: "Connect With Us", - items: [ + title: "Connect With Us", items: [ { label: "Facebook", href: "https://facebook.com/caribbeanflair" }, - { label: "About Us", href: "/about" }, - { label: "Privacy Policy", href: "#privacy" }, - { label: "Terms of Service", href: "#terms" }, + { label: "About Us", href: "/" }, + { label: "Privacy Policy", href: "/" }, + { label: "Terms of Service", href: "/" }, ], }, { - title: "Located In", - items: [ - { label: "801 Leeland Heights Blvd W", href: "#map" }, - { label: "Lehigh Acres, FL 33936", href: "#map" }, - { label: "Open Until 9PM", href: "/locations" }, - { label: "Delivery Available", href: "/order" }, + title: "Located In", items: [ + { label: "801 Leeland Heights Blvd W", href: "/" }, + { label: "Lehigh Acres, FL 33936", href: "/" }, + { label: "Open Until 9PM", href: "/" }, + { label: "Delivery Available", href: "/" }, ], }, ]; + const handleChatSend = () => { + if (!chatInput.trim()) return; + + const newMessage = { id: Date.now().toString(), sender: "user" as const, text: chatInput }; + setChatMessages([...chatMessages, newMessage]); + setChatInput(""); + + // Simulate bot response + setTimeout(() => { + const responses = [ + "Thanks for reaching out! How can we help you today?", "Great question! Our team is here to assist you.", "We appreciate your inquiry. One moment while we connect you with our team.", "Caribbean Flair is committed to excellent customer service. What can we do for you?"]; + const botResponse = { + id: (Date.now() + 1).toString(), + sender: "bot" as const, + text: responses[Math.floor(Math.random() * responses.length)], + }; + setChatMessages((prev) => [...prev, botResponse]); + }, 800); + }; + return ( + {/* Navbar */} + + {/* Hero Section */} +
+ +
+ + {/* Contact Methods Section */} +
+
+

Contact Us

+
+ {/* Call Button */} +
+ +

Call Us

+

Speak directly with our team

+ + Call (239) 785-0423 + +
+ + {/* Text Option */} +
+ +

Text Us

+

Quick responses via SMS

+ + Send a Text + +
+ + {/* Facebook Link */} +
+ +

Facebook

+

Follow and message us

+ + Visit Page + +
+ + {/* Live Chat */} +
+ +

Live Chat

+

Chat with our support team

+ +
+
+
+
+ + {/* Live Chat Widget */} + {showLiveChat && ( +
+
+

Caribbean Flair Support

+ +
+
+ {chatMessages.length === 0 ? ( +
+

👋 Welcome to Caribbean Flair!

+

How can we assist you today?

+
+ ) : ( + chatMessages.map((msg) => ( +
+
+

{msg.text}

+
+
+ )) + )} +
+
+ setChatInput(e.target.value)} + onKeyPress={(e) => e.key === "Enter" && handleChatSend()} + placeholder="Type your message..." + className="flex-1 px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:border-primary-cta" + /> + +
+
+ )} + + {/* Contact Form Section */} +
+ { + console.log("Contact form submitted:", email); + alert("Thank you for contacting us! We'll be in touch soon."); }} />
-
+ {/* Location & Hours Section */} +
-
- -
- + {/* Footer */}