From f23c17f009c77fdf27fd3cd4ac232b92b8dada93 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 18 Mar 2026 16:06:48 +0000 Subject: [PATCH] Switch to version 1: modified src/app/contact/page.tsx --- src/app/contact/page.tsx | 334 ++++++++++++--------------------------- 1 file changed, 104 insertions(+), 230 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index 111ac56..eaceacd 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -3,82 +3,59 @@ 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 { Phone, MessageCircle, Facebook, MessageSquare, MapPin, Clock } from "lucide-react"; -import { useState } from "react"; +import { Heart, Zap } from "lucide-react"; export default function ContactPage() { - const [showLiveChat, setShowLiveChat] = useState(false); - const [chatMessages, setChatMessages] = useState>([]); - const [chatInput, setChatInput] = useState(""); - const navItems = [ - { name: "Home", id: "/" }, - { name: "Order Online", id: "/order-online" }, - { name: "Contact", id: "/contact" }, - { name: "Gallery", id: "/" }, - { name: "Reviews", id: "/" }, - { name: "Locations", id: "/" }, + { 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" }, ]; const footerColumns = [ { - title: "Quick Links", items: [ + title: "Quick Links", + items: [ { label: "Home", href: "/" }, - { label: "Order Online", href: "/order-online" }, - { label: "Gallery", href: "/" }, - { label: "Reviews", href: "/" }, + { label: "Menu", href: "/menu" }, + { label: "Gallery", href: "/gallery" }, + { label: "Reviews", href: "/reviews" }, ], }, { - title: "Order & Contact", items: [ - { label: "Order Online", href: "/order-online" }, + title: "Order & Contact", + items: [ + { label: "Order Online", href: "/order" }, { label: "Call Us", href: "tel:2397850423" }, - { label: "Locations & Hours", href: "/" }, + { label: "Locations & Hours", href: "/locations" }, { 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: "/" }, - { label: "Privacy Policy", href: "/" }, - { label: "Terms of Service", href: "/" }, + { label: "About Us", href: "/about" }, + { label: "Privacy Policy", href: "#privacy" }, + { label: "Terms of Service", href: "#terms" }, ], }, { - 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: "/" }, + 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" }, ], }, ]; - 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."); + text: "Order Now", + href: "/order", }} />
- {/* Location & Hours Section */} -
+
- {/* Footer */} +
+ +
+