diff --git a/src/app/[locale]/contact-us/page.jsx b/src/app/[locale]/contact-us/page.jsx
new file mode 100644
index 0000000..b3f8809
--- /dev/null
+++ b/src/app/[locale]/contact-us/page.jsx
@@ -0,0 +1,281 @@
+"use client"
+
+import { Mailbox } from 'lucide-react'
+import { Clock, Facebook, Globe, Instagram, Linkedin, Mail, MapPin, Phone, Send, Twitter } from 'lucide-react'
+import { useLocale, useTranslations } from 'next-intl'
+import Link from "next/link"
+import { useState } from "react"
+import { toast } from 'react-toastify'
+import graphql from 'src/utils/graphql'
+
+
+const gql = `
+mutation CreateMessage($data: MessageInput!) {
+ createMessage(data: $data) {
+ documentId
+ }
+}
+`
+export default function ContactPage() {
+ const t = useTranslations('ContactUs')
+ const locale = useLocale()
+
+
+ const [formData, setFormData] = useState({
+ name: "",
+ email: "",
+ subject: "",
+ message: "",
+ phone: ""
+ })
+ const [isSubmitting, setIsSubmitting] = useState(false)
+ const [isSubmitted, setIsSubmitted] = useState(false)
+
+ const handleChange = (e) => {
+ const { name, value } = e.target
+ setFormData(prev => ({ ...prev, [name]: value }))
+ }
+
+ const handleSubmit = async (e) => {
+ e.preventDefault()
+ setIsSubmitting(true)
+ if (!formData.email || !formData.subject || !formData.message) {
+ toast.success("Compelete All Required fields")
+ setIsSubmitting(false)
+ return
+ }
+ // Simulate form submission
+ const res = await graphql(gql, {
+ data: {
+ ...formData
+ }
+ })
+
+ toast.success("Message sent successfully")
+
+ setIsSubmitting(false)
+
+ setFormData({ name: "", email: "", subject: "", message: "", phone: "" })
+ }
+
+
+ return (
+
+
+
{t("title")}
+
+
-
- {/* Modal Overlay */}
- {open && (
-
- {/* Modal Content */}
-
-
-
{t("title")}
-
-
-
- {/* Form */}
-
-
+ {/* Form */}
+
+
+ )
}
\ No newline at end of file
diff --git a/src/components/NavBar/index.jsx b/src/components/NavBar/index.jsx
index 89a0283..34f26ec 100644
--- a/src/components/NavBar/index.jsx
+++ b/src/components/NavBar/index.jsx
@@ -19,6 +19,8 @@ const theme = 1;
const Navbar = ({ items }) => {
const router = useRouter();
+
+
const [closeNavbar, setClosNavbar] = useState(false);
diff --git a/src/messages/ar-OM.json b/src/messages/ar-OM.json
index 69e76e4..5eadb98 100644
--- a/src/messages/ar-OM.json
+++ b/src/messages/ar-OM.json
@@ -26,14 +26,11 @@
}
},
"products": {
- "title": [
- "منتجات Active",
- "الإنشاءات"
- ]
+ "title": ["منتجات Active", "الإنشاءات"]
}
},
"Footer": {
- "address": "مسقط، السيب، موالح الشمالية، شارع الموج، رقم المجمع ٣٥٨، رقم المبنى ١/٢٠٣، مكتب رقم ٥٣، صندوق البريد: ٥٧ء"
+ "address": "مكتب رقم 53، مبنى رقم 203، مجمع رقم 308 - الموالح الشمالية، شارع الموج، طریق رقم 108، السیب - محافظة مسقط، سلطنة عمان - ص.ب: 65، الرمز البريدي: 104"
},
"PLP": {
"title": "المنتجات",
@@ -72,5 +69,74 @@
"Utils": {
"showMoreLink": "عرض المزيد",
"moreDetail": "المزيد من التفاصيل"
+ },
+ "ContactUs": {
+ "pageTitle": "تواصل معنا",
+ "pageSubtitle": "نحن هنا لدعم عملك. فريقنا جاهز لمساعدتك في جميع احتياجاتك من المنتجات الاستهلاكية سريعة التداول ومنتجات البناء بالجملة",
+ "contactInfo": {
+ "title": "معلومات الاتصال",
+ "description": "املأ النموذج وسيعاود فريقنا الاتصال بك خلال 24 ساعة.",
+ "office": {
+ "title": "مكتبنا",
+ "address1": "مكتب رقم 53، مبنى رقم 203، مجمع رقم 308",
+ "address2": "الموالح الشمالية، شارع الموج، طریق رقم 108، السیب",
+ "address3": "محافظة مسقط ، سلطنة عمان",
+ "postalCode": "ص.ب: 65، الرمز البريدي: 104"
+ },
+ "phone": {
+ "title": "الهاتف",
+ "number": "+968 24 28 98 88"
+ },
+ "email": {
+ "title": "البريد الإلكتروني",
+ "address": "info@adhorizonintl.com"
+ },
+ "hours": {
+ "title": "ساعات العمل",
+ "weekdays": "الإثنين - الجمعة: 9:00 صباحاً - 5:00 مساءً",
+ "weekend": "عطلة نهاية الأسبوع: مغلق"
+ }
+ },
+ "social": {
+ "title": "تواصل معنا",
+ "facebook": "فيسبوك",
+ "twitter": "تويتر",
+ "instagram": "انستغرام",
+ "linkedin": "لينكد إن"
+ },
+ "form": {
+ "title": "أرسل لنا رسالة",
+ "name": {
+ "label": "الاسم",
+ "placeholder": "أدخل اسمك"
+ },
+ "email": {
+ "label": "البريد الإلكتروني",
+ "placeholder": "أدخل بريدك الإلكتروني"
+ },
+ "phone": {
+ "label": "الهاتف",
+ "placeholder": "+968 ..."
+ },
+ "subject": {
+ "label": "الموضوع",
+ "placeholder": "كيف يمكننا مساعدتك؟"
+ },
+ "message": {
+ "label": "الرسالة",
+ "placeholder": "اكتب رسالتك هنا..."
+ },
+ "submit": "إرسال الرسالة",
+ "sending": "جاري الإرسال...",
+ "success": "شكراً لك! تم إرسال رسالتك بنجاح. سنعاود الاتصال بك قريباً."
+ },
+ "map": {
+ "title": "ابحث عنا على الخريطة"
+ },
+ "languageSwitcher": {
+ "label": "اللغة",
+ "english": "English",
+ "arabic": "العربية"
+ }
}
}
diff --git a/src/messages/en.json b/src/messages/en.json
index 0434ae7..4b3124e 100644
--- a/src/messages/en.json
+++ b/src/messages/en.json
@@ -1,9 +1,9 @@
{
"HomePage": {
- "SEO":{
- "title":"Advanced Horizon Services LLC",
- "description":"Advanced Horizon Services LLC offers reliable wholesale supply chain solutions for high-quality detergents and food products with a focus on excellence"
- },
+ "SEO": {
+ "title": "Advanced Horizon Services LLC",
+ "description": "Advanced Horizon Services LLC offers reliable wholesale supply chain solutions for high-quality detergents and food products with a focus on excellence"
+ },
"AboutUs": {
"brandName": "ADVANCED HORIZON SERVICES LLC",
"description": [
@@ -12,7 +12,6 @@
" At AHS, we understand the complexities of the supply chain and strive to simplify the process for our partners. Our extensive network of suppliers and manufacturers allows us to source top-notch products at competitive prices, ensuring that you receive the best value for your investment"
]
},
-
"Sides": {
"title": "Discover Our Expertise",
"fmcg": {
@@ -26,32 +25,29 @@
"description": "Our Construction arm is dedicated to creating lasting infrastructure and innovative building solutions. From residential projects to commercial complexes, we bring expertise, quality, and sustainability to every construction endeavor"
}
},
- "products":{
- "title":[
-"Active Products",
-"Constructions"
- ]
+ "products": {
+ "title": ["Active Products", "Constructions"]
}
},
"Footer": {
- "address": "Unit No. 53, Building No 203, Complex No.308 , Mawaleh North ,Road No. 108 Al Mouj Street , Muscat Oman , P.o.box.607 , P.c.111 Muscat Airport"
+ "address": "Office No. 53, Building No. 203, Complex No. 308, Mawaleh North, Road No. 108, Al Mouj Street, Al Seeb, Muscat Governorate, Sultanate of Oman - P.O. Box: 65, P.C: 104"
},
- "PLP":{
- "title":"Products",
- "subtitle":"Explore Our Range of Products",
- "filter":{
- "title":"Filters",
- "categories":"Categories",
- "brands":"Brands"
+ "PLP": {
+ "title": "Products",
+ "subtitle": "Explore Our Range of Products",
+ "filter": {
+ "title": "Filters",
+ "categories": "Categories",
+ "brands": "Brands"
}
},
- "PDP":{
- "contactUs":"Contact Us",
- "home":"Home",
- "productDetails":"Product Details",
- "productDescription":"Product Description",
- "productSpecification":"Product Specification",
- "productRelated":"Frequently Bought Together"
+ "PDP": {
+ "contactUs": "Contact Us",
+ "home": "Home",
+ "productDetails": "Product Details",
+ "productDescription": "Product Description",
+ "productSpecification": "Product Specification",
+ "productRelated": "Frequently Bought Together"
},
"ContactModal": {
"title": "Contact Us",
@@ -63,15 +59,79 @@
"messagePlaceholder": "Enter your message",
"sendButton": "Send Message",
"closeButton": "Close",
- "error":{
- "fillAllFields":"Please fill all fields",
- "invalidEmail":"Please enter a valid email address"
+ "error": {
+ "fillAllFields": "Please fill all fields",
+ "invalidEmail": "Please enter a valid email address"
},
- "success":"Message sent successfully",
- "cta":"Contact Us"
+ "success": "Message sent successfully",
+ "cta": "Contact Us"
},
- "Utils":{
- "showMoreLink":"Show more",
- "moreDetail":"More detail"
+ "Utils": {
+ "showMoreLink": "Show more",
+ "moreDetail": "More detail"
+ },
+ "ContactUs": {
+ "pageTitle": "Get in Touch",
+ "pageSubtitle": "We're here to support your business. Our team is ready to assist with all your wholesale FMCG and construction product needs",
+ "contactInfo": {
+ "title": "Contact Information",
+ "description": "Fill up the form and our team will get back to you within 24 hours.",
+ "office": {
+ "title": "Our Office",
+ "address1": "Office No. 53, Building No. 203, Complex No. 308 ",
+ "address2": "Mawaleh North, Road No. 108, Al Mouj Street, Al Seeb",
+ "address3": "Muscat Governorate, Sultanate of Oman",
+ "postalCode": "P.O. Box: 65, P.C: 104"
+ },
+ "phone": {
+ "title": "Phone",
+ "number": "+968 24 28 98 88"
+ },
+ "email": {
+ "title": "Email",
+ "address": "info@adhorizonintl.com"
+ },
+ "hours": {
+ "title": "Working Hours",
+ "weekdays": "Monday - Friday: 9:00 AM - 5:00 PM",
+ "weekend": "Weekend: Closed"
+ }
+ },
+ "social": {
+ "title": "Connect With Us",
+ "facebook": "Facebook",
+ "twitter": "Twitter",
+ "instagram": "Instagram",
+ "linkedin": "LinkedIn"
+ },
+ "form": {
+ "title": "Send us a message",
+ "name": {
+ "label": "Your Name",
+ "placeholder": "John Doe"
+ },
+ "email": {
+ "label": "Email Address",
+ "placeholder": "john@example.com"
+ },
+ "phone": {
+ "label": "Phone",
+ "placeholder": "+968 ..."
+ },
+ "subject": {
+ "label": "Subject",
+ "placeholder": "How can we help you?"
+ },
+ "message": {
+ "label": "Message",
+ "placeholder": "Your message here..."
+ },
+ "submit": "Send Message",
+ "sending": "Sending...",
+ "success": "Thank you! Your message has been sent successfully. We'll get back to you soon."
+ },
+ "map": {
+ "title": "Find Us on the Map"
+ }
}
}
diff --git a/src/view/Landing/components/Footer.jsx b/src/view/Landing/components/Footer.jsx
index df320c4..2d5944d 100644
--- a/src/view/Landing/components/Footer.jsx
+++ b/src/view/Landing/components/Footer.jsx
@@ -84,7 +84,7 @@ const Footer = () => {