connected backend to service page and detail

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-16 15:57:19 +05:00
parent 91fe13f9bf
commit 1d34ea1d47
21 changed files with 820 additions and 158 deletions

View File

@@ -61,7 +61,10 @@ export function Footer() {
const handleSubscribe = (e: React.FormEvent) => {
e.preventDefault();
if (email) {
formRequest.mutate({ number: email });
// Telefon raqamni tozalash (faqat raqamlar)
const cleanPhone = email.replace(/\D/g, "");
console.log("without 998: ",cleanPhone.slice(3))
formRequest.mutate({ number: Number(cleanPhone.slice(3))});
}
};
@@ -239,7 +242,9 @@ export function Footer() {
<div className="border-t border-gray-800 px-4 py-8">
<div className="mx-auto max-w-6xl">
<div className="font-almarai flex flex-col justify-center gap-4 text-lg text-gray-400 md:flex-row md:items-center">
<a href="http://felix-its.uz/" className="hover:text-red-600">{t("footer.create", { name: "Felix-its.uz" })}</a>
<a href="http://felix-its.uz/" className="hover:text-red-600">
{t("footer.create", { name: "Felix-its.uz" })}
</a>
{/* <div className="flex gap-6">
<a href="#terms" className="hover:text-white">
Terms & Conditions