feat(contact): implement contact form submission, admin management and dynamic contact info

This commit is contained in:
parsa aghaei committed 2026-08-01 18:28:19 +03:30
1 parent 49049a7f78
commit 2aea3bded4
11 files changed
+961 -77

No files matched your search

+3 -76
View File
@@ -1,5 +1,5 @@
import type { Metadata } from "next";
import { Mail, Phone, MapPin, Clock, Send } from "lucide-react";
import ContactFormClient from "@/components/ContactFormClient";
export const metadata: Metadata = {
title: "تماس با ما - نمایندگی رسمی مکمل‌های کانینا آلمان در ایران",
@@ -35,83 +35,10 @@ export default function ContactPage() {
</p>
</div>
<div className="grid lg:grid-cols-12 gap-12 items-start">
{/* Contact Details */}
<div className="lg:col-span-5 space-y-8">
<h3 className="text-2xl font-black text-medical-gray-900">اطلاعات نمایندگی</h3>
<div className="space-y-6">
<div className="flex gap-4 p-6 bg-white border border-medical-gray-200 rounded-[2rem] shadow-sm">
<div className="w-12 h-12 bg-canina-blue/5 text-canina-blue rounded-2xl flex items-center justify-center shrink-0">
<Phone className="w-6 h-6" />
</div>
<div>
<h4 className="text-xs font-black text-medical-gray-400 uppercase tracking-wider mb-1">تلفن‌های تماس</h4>
<p className="text-lg font-black text-medical-gray-900 tracking-wider">۰۲۱-۸۸۸۸ ۴۴۴۴</p>
<p className="text-sm text-medical-gray-500 font-bold">شنبه تا چهارشنبه ۹:۰۰ الی ۱۸:۰۰</p>
</div>
</div>
<div className="flex gap-4 p-6 bg-white border border-medical-gray-200 rounded-[2rem] shadow-sm">
<div className="w-12 h-12 bg-canina-blue/5 text-canina-blue rounded-2xl flex items-center justify-center shrink-0">
<Mail className="w-6 h-6" />
</div>
<div>
<h4 className="text-xs font-black text-medical-gray-400 uppercase tracking-wider mb-1">پست الکترونیک</h4>
<p className="text-sm font-black text-medical-gray-900">info@canina-iran.com</p>
<p className="text-xs text-medical-gray-500 font-bold">پاسخگویی در کمتر از ۲۴ ساعت کاری</p>
</div>
</div>
<div className="flex gap-4 p-6 bg-white border border-medical-gray-200 rounded-[2rem] shadow-sm">
<div className="w-12 h-12 bg-canina-blue/5 text-canina-blue rounded-2xl flex items-center justify-center shrink-0">
<MapPin className="w-6 h-6" />
</div>
<div>
<h4 className="text-xs font-black text-medical-gray-400 uppercase tracking-wider mb-1">نشانی دفتر مرکزی</h4>
<p className="text-sm font-bold text-medical-gray-900 leading-relaxed">
تهران، جردن، خیابان سعیدی، ساختمان کانینا، طبقه ۵، واحد ۱۹
</p>
</div>
</div>
</div>
</div>
{/* Contact Form */}
<div className="lg:col-span-7 bg-white border border-medical-gray-200 rounded-[3rem] p-10 shadow-xl">
<h3 className="text-2xl font-black text-medical-gray-900 mb-8">ارسال پیام مستقیم</h3>
<form className="space-y-6">
<div className="grid md:grid-cols-2 gap-6">
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-500">نام و نام خانوادگی</label>
<input type="text" className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl p-4 text-sm font-bold focus:outline-none focus:ring-2 focus:ring-canina-blue/20" />
</div>
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-500">شماره موبایل</label>
<input type="text" className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl p-4 text-sm font-bold text-left focus:outline-none focus:ring-2 focus:ring-canina-blue/20" dir="ltr" />
</div>
</div>
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-500">موضوع پیام</label>
<input type="text" className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl p-4 text-sm font-bold focus:outline-none focus:ring-2 focus:ring-canina-blue/20" />
</div>
<div className="space-y-2">
<label className="text-xs font-black text-medical-gray-500">متن پیام</label>
<textarea rows={4} className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl p-4 text-sm font-bold focus:outline-none focus:ring-2 focus:ring-canina-blue/20"></textarea>
</div>
<button type="button" className="w-full bg-canina-blue text-white py-4 rounded-2xl font-black flex items-center justify-center gap-2 hover:shadow-xl hover:shadow-canina-blue/20 transition-all">
<Send className="w-5 h-5 rotate-180" />
ارسال پیام
</button>
</form>
</div>
</div>
<ContactFormClient />
</div>
</div>
);
}